Interface SecretKeys.PassphraseSupplier
- Enclosing class:
- SecretKeys
public static interface SecretKeys.PassphraseSupplier
Something that can supply a passphrase to decrypt an encrypted secret
key.
-
Method Summary
-
Method Details
-
getPassphrase
char[] getPassphrase() throws org.bouncycastle.openpgp.PGPException, CanceledException, UnsupportedCredentialItem, URISyntaxExceptionSupplies a passphrase.- Returns:
- the passphrase
- Throws:
org.bouncycastle.openpgp.PGPException
- if no passphrase can be obtainedCanceledException
- if the user canceled passphrase entryUnsupportedCredentialItem
- if an internal error occurredURISyntaxException
- if an internal error occurred
-