Package com.google.nigori.common.NigoriMessages

Examples of com.google.nigori.common.NigoriMessages.DeleteRequest


  public static DeleteRequest deleteRequestAsProtobuf(String serverName, DSASign signer, byte[] index) throws NigoriCryptographyException{
    DeleteRequest.Builder delBuilder = DeleteRequest.newBuilder()
        .setAuth(authenticateRequestAsProtobuf(serverName, signer, REQUEST_DELETE, index))
        .setKey(ByteString.copyFrom(index));

    DeleteRequest del = delBuilder.build();

    return del;
  }
View Full Code Here


      String json = getJsonAsString(req, maxJsonQueryLength);

      if (DEBUG_JSON) {
        System.out.println(json);
      }
      DeleteRequest request = MessageLibrary.deleteRequestFromJson(json);

      if (!protocol.delete(request)) {
        throw new ServletException(HttpServletResponse.SC_INTERNAL_SERVER_ERROR,
            "Internal storage error for key "
                + Base64.encodeBase64String(request.getKey().toByteArray()));
      }

      emptyBody(resp);
    }
View Full Code Here

TOP

Related Classes of com.google.nigori.common.NigoriMessages.DeleteRequest

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.