Package org.pgpainless.sop
Class MatchMakingSecretKeyRingProtector
- java.lang.Object
-
- org.pgpainless.sop.MatchMakingSecretKeyRingProtector
-
- All Implemented Interfaces:
org.pgpainless.key.protection.SecretKeyRingProtector
public class MatchMakingSecretKeyRingProtector extends java.lang.Object implements org.pgpainless.key.protection.SecretKeyRingProtector
-
-
Constructor Summary
Constructors Constructor Description MatchMakingSecretKeyRingProtector()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddPassphrase(org.pgpainless.util.Passphrase passphrase)voidaddSecretKey(org.bouncycastle.openpgp.PGPSecretKeyRing key)voidclear()@Nullable org.bouncycastle.openpgp.operator.PBESecretKeyDecryptorgetDecryptor(java.lang.Long keyId)@Nullable org.bouncycastle.openpgp.operator.PBESecretKeyEncryptorgetEncryptor(java.lang.Long keyId)booleanhasPassphraseFor(java.lang.Long keyId)
-
-
-
Method Detail
-
addPassphrase
public void addPassphrase(org.pgpainless.util.Passphrase passphrase)
-
addSecretKey
public void addSecretKey(org.bouncycastle.openpgp.PGPSecretKeyRing key)
-
hasPassphraseFor
public boolean hasPassphraseFor(java.lang.Long keyId)
- Specified by:
hasPassphraseForin interfaceorg.pgpainless.key.protection.SecretKeyRingProtector
-
getDecryptor
@Nullable public @Nullable org.bouncycastle.openpgp.operator.PBESecretKeyDecryptor getDecryptor(java.lang.Long keyId) throws org.bouncycastle.openpgp.PGPException- Specified by:
getDecryptorin interfaceorg.pgpainless.key.protection.SecretKeyRingProtector- Throws:
org.bouncycastle.openpgp.PGPException
-
getEncryptor
@Nullable public @Nullable org.bouncycastle.openpgp.operator.PBESecretKeyEncryptor getEncryptor(java.lang.Long keyId) throws org.bouncycastle.openpgp.PGPException- Specified by:
getEncryptorin interfaceorg.pgpainless.key.protection.SecretKeyRingProtector- Throws:
org.bouncycastle.openpgp.PGPException
-
clear
public void clear()
-
-