Package org.pgpainless.key.protection
Class CallbackBasedKeyringProtector
- java.lang.Object
-
- org.pgpainless.key.protection.CallbackBasedKeyringProtector
-
- All Implemented Interfaces:
SecretKeyRingProtector2
public class CallbackBasedKeyringProtector extends java.lang.Object implements SecretKeyRingProtector2
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceCallbackBasedKeyringProtector.Callback
-
Constructor Summary
Constructors Constructor Description CallbackBasedKeyringProtector(CallbackBasedKeyringProtector.Callback callback)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.bouncycastle.openpgp.operator.PBESecretKeyDecryptorgetDecryptor(org.bouncycastle.openpgp.PGPSecretKey key)org.bouncycastle.openpgp.operator.PBESecretKeyEncryptorgetEncryptor(org.bouncycastle.openpgp.PGPSecretKey key)
-
-
-
Constructor Detail
-
CallbackBasedKeyringProtector
public CallbackBasedKeyringProtector(CallbackBasedKeyringProtector.Callback callback)
-
-
Method Detail
-
getDecryptor
public org.bouncycastle.openpgp.operator.PBESecretKeyDecryptor getDecryptor(org.bouncycastle.openpgp.PGPSecretKey key) throws org.bouncycastle.openpgp.PGPException- Specified by:
getDecryptorin interfaceSecretKeyRingProtector2- Throws:
org.bouncycastle.openpgp.PGPException
-
getEncryptor
public org.bouncycastle.openpgp.operator.PBESecretKeyEncryptor getEncryptor(org.bouncycastle.openpgp.PGPSecretKey key) throws org.bouncycastle.openpgp.PGPException- Specified by:
getEncryptorin interfaceSecretKeyRingProtector2- Throws:
org.bouncycastle.openpgp.PGPException
-
-