Exemplo n.º 1
0
 /** Returns the first user ID on the key that matches the given network. */
 public String getUserId() {
   PGPPublicKey key = mAuthKey.getPublicKey();
   Iterator<?> uidIt = key.getUserIDs();
   if (!uidIt.hasNext()) throw new IllegalStateException("no UID in personal key");
   return (String) uidIt.next();
 }
Exemplo n.º 2
0
 public String getFingerprint() {
   return EncodingUtils.bytesToHex(mAuthKey.getPublicKey().getFingerprint());
 }
Exemplo n.º 3
0
 PGPPublicKey getPublicEncryptionKey() {
   return mEncryptKey.getPublicKey();
 }