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

    Modifier and Type
    Method
    Description
    char[]
    Supplies a passphrase.
  • Method Details

    • getPassphrase

      char[] getPassphrase() throws org.bouncycastle.openpgp.PGPException, org.eclipse.jgit.api.errors.CanceledException, org.eclipse.jgit.errors.UnsupportedCredentialItem, URISyntaxException
      Supplies a passphrase.
      Returns:
      the passphrase
      Throws:
      org.bouncycastle.openpgp.PGPException - if no passphrase can be obtained
      org.eclipse.jgit.api.errors.CanceledException - if the user canceled passphrase entry
      org.eclipse.jgit.errors.UnsupportedCredentialItem - if an internal error occurred
      URISyntaxException - if an internal error occurred