Interface IJcaPEMKeyConverter
- All Known Implementing Classes:
-
JcaPEMKeyConverterBC
,JcaPEMKeyConverterBCFips
public interface IJcaPEMKeyConverter
This interface represents the wrapper for JcaPEMKeyConverter that provides the ability to switch between bouncy-castle and bouncy-castle FIPS implementations.
-
Method Summary
Modifier and TypeMethodDescriptiongetPrivateKey
(IPrivateKeyInfo privateKeyInfo) Calls actualgetPrivateKey
method for the wrapped JcaPEMKeyConverter object.setProvider
(Provider provider) Calls actualsetProvider
method for the wrapped JcaPEMKeyConverter object.
-
Method Details
-
setProvider
Calls actualsetProvider
method for the wrapped JcaPEMKeyConverter object.- Parameters:
-
provider
-Provider
to be set - Returns:
- this converter
-
getPrivateKey
Calls actualgetPrivateKey
method for the wrapped JcaPEMKeyConverter object.- Parameters:
-
privateKeyInfo
-IPrivateKeyInfo
information about private key - Returns:
-
PrivateKey
private key instance - Throws:
-
AbstractPEMException
- if any issues occur during private key creation
-