Interface SecretKeyRingEditorInterface.WithPassphrase
- Enclosing interface:
SecretKeyRingEditorInterface
public static interface SecretKeyRingEditorInterface.WithPassphrase
-
Method Summary
Modifier and TypeMethodDescriptiontoNewPassphrase
(Passphrase passphrase) Set the passphrase.Leave the key unprotected.
-
Method Details
-
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
Leave the key unprotected.- Returns:
- editor builder
- Throws:
org.bouncycastle.openpgp.PGPException
- in case the passphrase cannot be changed
-