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 actualgetPrivateKeymethod for the wrapped JcaPEMKeyConverter object.setProvider(Provider provider) Calls actualsetProvidermethod for the wrapped JcaPEMKeyConverter object.
-
Method Details
-
setProvider
Calls actualsetProvidermethod for the wrapped JcaPEMKeyConverter object.- Parameters:
-
provider-Providerto be set - Returns:
- this converter
-
getPrivateKey
Calls actualgetPrivateKeymethod for the wrapped JcaPEMKeyConverter object.- Parameters:
-
privateKeyInfo-IPrivateKeyInfoinformation about private key - Returns:
-
PrivateKeyprivate key instance - Throws:
-
AbstractPEMException- if any issues occur during private key creation
-