Interface IJcaPEMKeyConverter
-
- All Known Implementing Classes:
JcaPEMKeyConverterBC
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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.security.PrivateKey
getPrivateKey(IPrivateKeyInfo privateKeyInfo)
Calls actualgetPrivateKey
method for the wrapped JcaPEMKeyConverter object.IJcaPEMKeyConverter
setProvider(java.security.Provider provider)
Calls actualsetProvider
method for the wrapped JcaPEMKeyConverter object.
-
-
-
Method Detail
-
setProvider
IJcaPEMKeyConverter setProvider(java.security.Provider provider)
Calls actualsetProvider
method for the wrapped JcaPEMKeyConverter object.- Parameters:
provider
-Provider
to be set- Returns:
- this converter
-
getPrivateKey
java.security.PrivateKey getPrivateKey(IPrivateKeyInfo privateKeyInfo) throws AbstractPEMException
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
-
-