Package org.pgpainless.key.protection
Class UnlockSecretKey
- java.lang.Object
-
- org.pgpainless.key.protection.UnlockSecretKey
-
public class UnlockSecretKey extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description UnlockSecretKey()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static org.bouncycastle.openpgp.PGPPrivateKey
unlockSecretKey(org.bouncycastle.openpgp.PGPSecretKey secretKey, org.bouncycastle.openpgp.operator.PBESecretKeyDecryptor decryptor)
static org.bouncycastle.openpgp.PGPPrivateKey
unlockSecretKey(org.bouncycastle.openpgp.PGPSecretKey secretKey, SecretKeyRingProtector protector)
static org.bouncycastle.openpgp.PGPPrivateKey
unlockSecretKey(org.bouncycastle.openpgp.PGPSecretKey secretKey, Passphrase passphrase)
-
-
-
Method Detail
-
unlockSecretKey
public static org.bouncycastle.openpgp.PGPPrivateKey unlockSecretKey(org.bouncycastle.openpgp.PGPSecretKey secretKey, SecretKeyRingProtector protector) throws WrongPassphraseException
- Throws:
WrongPassphraseException
-
unlockSecretKey
public static org.bouncycastle.openpgp.PGPPrivateKey unlockSecretKey(org.bouncycastle.openpgp.PGPSecretKey secretKey, org.bouncycastle.openpgp.operator.PBESecretKeyDecryptor decryptor) throws WrongPassphraseException
- Throws:
WrongPassphraseException
-
unlockSecretKey
public static org.bouncycastle.openpgp.PGPPrivateKey unlockSecretKey(org.bouncycastle.openpgp.PGPSecretKey secretKey, Passphrase passphrase) throws WrongPassphraseException
- Throws:
WrongPassphraseException
-
-