Interface SecretKeyRingEditorInterface.WithPassphrase

    • Method Detail

      • toNewPassphrase

        SecretKeyRingEditorInterface toNewPassphrase​(Passphrase passphrase)
                                              throws org.bouncycastle.openpgp.PGPException
        Set the passphrase.
        Parameters:
        passphrase - passphrase
        Returns:
        editor builder
        Throws:
        org.bouncycastle.openpgp.PGPException - in case the passphrase cannot be changed
      • toNoPassphrase

        SecretKeyRingEditorInterface toNoPassphrase()
                                             throws org.bouncycastle.openpgp.PGPException
        Leave the key unprotected.
        Returns:
        editor builder
        Throws:
        org.bouncycastle.openpgp.PGPException - in case the passphrase cannot be changed