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 Object
implements org.pgpainless.key.protection.SecretKeyRingProtector
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
addPassphrase
(org.pgpainless.util.Passphrase passphrase) void
addSecretKey
(org.bouncycastle.openpgp.PGPSecretKeyRing key) void
clear()
@Nullable org.bouncycastle.openpgp.operator.PBESecretKeyDecryptor
getDecryptor
(Long keyId) @Nullable org.bouncycastle.openpgp.operator.PBESecretKeyEncryptor
getEncryptor
(Long keyId) boolean
hasPassphraseFor
(Long keyId)
-
Constructor Details
-
MatchMakingSecretKeyRingProtector
public MatchMakingSecretKeyRingProtector()
-
-
Method Details
-
addPassphrase
public void addPassphrase(org.pgpainless.util.Passphrase passphrase) -
addSecretKey
public void addSecretKey(org.bouncycastle.openpgp.PGPSecretKeyRing key) -
hasPassphraseFor
- Specified by:
hasPassphraseFor
in interfaceorg.pgpainless.key.protection.SecretKeyRingProtector
-
getDecryptor
@Nullable public @Nullable org.bouncycastle.openpgp.operator.PBESecretKeyDecryptor getDecryptor(Long keyId) throws org.bouncycastle.openpgp.PGPException - Specified by:
getDecryptor
in interfaceorg.pgpainless.key.protection.SecretKeyRingProtector
- Throws:
org.bouncycastle.openpgp.PGPException
-
getEncryptor
@Nullable public @Nullable org.bouncycastle.openpgp.operator.PBESecretKeyEncryptor getEncryptor(Long keyId) throws org.bouncycastle.openpgp.PGPException - Specified by:
getEncryptor
in interfaceorg.pgpainless.key.protection.SecretKeyRingProtector
- Throws:
org.bouncycastle.openpgp.PGPException
-
clear
public void clear()
-