Package com.google.nigori.common.NigoriMessages

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


  @Override
  public List<Index> getIndices() throws NigoriCryptographyException, IOException,
      UnauthorisedException {

    try {
      GetIndicesResponse getResponse =
          protocol.getIndices(MessageLibrary.getIndicesRequestAsProtobuf(
              keyManager.getServerName(), keyManager.signer()));
      if (getResponse == null) {
        return null;
      }
      List<ByteString> indices = getResponse.getIndicesList();
      List<Index> answer = new ArrayList<Index>(indices.size());
      for (ByteString index : indices) {
        answer.add(new Index(keyManager.decrypt(index.toByteArray())));
      }
      return answer;
View Full Code Here

TOP

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

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.