Interface SecretKeys.PassphraseSupplier

  • Enclosing class:
    SecretKeys

    public static interface SecretKeys.PassphraseSupplier
    Something that can supply a passphrase to decrypt an encrypted secret key.
    • Method Detail

      • getPassphrase

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