public String getFingerprint() { return EncodingUtils.bytesToHex(mAuthKey.getPublicKey().getFingerprint()); }
/** 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(); }
public PrivateKey getBridgePrivateKey() throws PGPException { return PGPUtils.convertPrivateKey(mAuthKey.getPrivateKey()); }
PGPPublicKey getPublicEncryptionKey() { return mEncryptKey.getPublicKey(); }
PGPPrivateKey getPrivateSigningKey() { return mSignKey.getPrivateKey(); }
PGPPrivateKey getPrivateEncryptionKey() { return mEncryptKey.getPrivateKey(); }