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