Interface CryptoProvider


  • public interface CryptoProvider
    Abstraction to handle differences between the APIs for non-fips and fips mode
    Author:
    Marek Posolda
    • 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: