Interface IPKCS8EncryptedPrivateKeyInfo
- All Known Implementing Classes:
-
PKCS8EncryptedPrivateKeyInfoBC,PKCS8EncryptedPrivateKeyInfoBCFips
public interface IPKCS8EncryptedPrivateKeyInfo
This interface represents the wrapper for PKCS8EncryptedPrivateKeyInfo that provides the ability to switch between bouncy-castle and bouncy-castle FIPS implementations.
-
Method Summary
Modifier and TypeMethodDescriptiondecryptPrivateKeyInfo(IInputDecryptorProvider decryptorProvider) Calls actualdecryptPrivateKeyInfomethod for the wrapped PKCS8EncryptedPrivateKeyInfo object.
-
Method Details
-
decryptPrivateKeyInfo
IPrivateKeyInfo decryptPrivateKeyInfo(IInputDecryptorProvider decryptorProvider) throws AbstractPKCSException Calls actualdecryptPrivateKeyInfomethod for the wrapped PKCS8EncryptedPrivateKeyInfo object.- Parameters:
-
decryptorProvider-IInputDecryptorProviderwrapper to be used during decryption - Returns:
-
IPrivateKeyInfowrapper for private key info - Throws:
-
AbstractPKCSException- if any issues occur during decryption
-