public interface SecretKeyRingProtector
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 . |
@Nullable org.bouncycastle.openpgp.operator.PBESecretKeyDecryptor getDecryptor(Long keyId)
keyId
.
This method returns null if the key is unprotected.keyId
- id of the key@Nullable org.bouncycastle.openpgp.operator.PBESecretKeyEncryptor getEncryptor(Long keyId) throws org.bouncycastle.openpgp.PGPException
keyId
.
This method returns null if the key is unprotected.keyId
- id of the keyorg.bouncycastle.openpgp.PGPException
- if the encryptor cannot be created for some reason