Interface CryptoProvider

All Known Implementing Classes:
BCFIPSCryptoProvider, DefaultCryptoProvider

public interface CryptoProvider
Author:
Daniel DeGroff
  • Method Summary

    Modifier and Type
    Method
    Description
    getMacInstance(String algorithmName)
    Return an instance of a Mac digest for the provided algorithm name.
    Return an instance of a Signature digest for the provided algorithm name.
  • Method Details

    • getMacInstance

      Mac getMacInstance(String algorithmName) throws NoSuchAlgorithmException
      Return an instance of a Mac digest for the provided algorithm name.
      Parameters:
      algorithmName - the name of the algorithm.
      Returns:
      a Mac instance
      Throws:
      NoSuchAlgorithmException - thrown when the requested algorithm cannot be satisfied by this crypto provider.
    • getSignatureInstance

      Signature getSignatureInstance(String algorithmName) throws NoSuchAlgorithmException
      Return an instance of a Signature digest for the provided algorithm name.
      Parameters:
      algorithmName - the name of the algorithm.
      Returns:
      a Signature instance
      Throws:
      NoSuchAlgorithmException - thrown when the requested algorithm cannot be satisfied by this crypto provider.