Module org.eclipse.jgit.gpg.bc
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, org.eclipse.jgit.api.errors.CanceledException, org.eclipse.jgit.errors.UnsupportedCredentialItem, URISyntaxExceptionSupplies a passphrase.- Returns:
- the passphrase
- Throws:
org.bouncycastle.openpgp.PGPException- if no passphrase can be obtainedorg.eclipse.jgit.api.errors.CanceledException- if the user canceled passphrase entryorg.eclipse.jgit.errors.UnsupportedCredentialItem- if an internal error occurredURISyntaxException- if an internal error occurred
-