Exemplo n.º 1
0
 public String getFingerprint() {
   return EncodingUtils.bytesToHex(mAuthKey.getPublicKey().getFingerprint());
 }
Exemplo n.º 2
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.º 3
0
 public PrivateKey getBridgePrivateKey() throws PGPException {
   return PGPUtils.convertPrivateKey(mAuthKey.getPrivateKey());
 }
Exemplo n.º 4
0
 PGPPublicKey getPublicEncryptionKey() {
   return mEncryptKey.getPublicKey();
 }
Exemplo n.º 5
0
 PGPPrivateKey getPrivateSigningKey() {
   return mSignKey.getPrivateKey();
 }
Exemplo n.º 6
0
 PGPPrivateKey getPrivateEncryptionKey() {
   return mEncryptKey.getPrivateKey();
 }