Package org.keycloak.common.crypto
Interface CryptoProvider
-
public interface CryptoProviderAbstraction to handle differences between the APIs for non-fips and fips mode- Author:
- Marek Posolda
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ECParameterSpeccreateECParams(String curveName)Create the param spec for the EC curve<T> TgetAlgorithmProvider(Class<T> clazz, String algorithm)Get some algorithm provider implementation.CertificateUtilsProvidergetCertificateUtils()Get CertificateUtils implementation.PemUtilsProvidergetPemUtils()Get PEMUtils implementation.
-
-
-
Method Detail
-
getAlgorithmProvider
<T> T getAlgorithmProvider(Class<T> clazz, String algorithm)
Get some algorithm provider implementation. Returned implementation can be dependent according to if we have non-fips bouncycastle or fips bouncycastle on the classpath.- Parameters:
clazz- Returned class.algorithm- Type of the algorithm, which we want to return- Returns:
-
getCertificateUtils
CertificateUtilsProvider getCertificateUtils()
Get CertificateUtils implementation. Returned implementation can be dependent according to if we have non-fips bouncycastle or fips bouncycastle on the classpath.- Returns:
-
getPemUtils
PemUtilsProvider getPemUtils()
Get PEMUtils implementation. Returned implementation can be dependent according to if we have non-fips bouncycastle or fips bouncycastle on the classpath.- Returns:
-
createECParams
ECParameterSpec createECParams(String curveName)
Create the param spec for the EC curve- Parameters:
curveName-- Returns:
-
-