public class UnprotectedKeysProtector extends Object implements SecretKeyRingProtector
SecretKeyRingProtector
which assumes that all handled keys are not password protected.Constructor and Description |
---|
UnprotectedKeysProtector() |
Modifier and Type | Method and Description |
---|---|
org.bouncycastle.openpgp.operator.PBESecretKeyDecryptor |
getDecryptor(Long keyId)
Return a decryptor for the key of id
keyId . |
org.bouncycastle.openpgp.operator.PBESecretKeyEncryptor |
getEncryptor(Long keyId)
Return an encryptor for the key of id
keyId . |
public UnprotectedKeysProtector()
@Nullable public org.bouncycastle.openpgp.operator.PBESecretKeyDecryptor getDecryptor(Long keyId)
SecretKeyRingProtector
keyId
.
This method returns null if the key is unprotected.getDecryptor
in interface SecretKeyRingProtector
keyId
- id of the key@Nullable public org.bouncycastle.openpgp.operator.PBESecretKeyEncryptor getEncryptor(Long keyId)
SecretKeyRingProtector
keyId
.
This method returns null if the key is unprotected.getEncryptor
in interface SecretKeyRingProtector
keyId
- id of the key