Class DefaultSignServiceSignerProvider

java.lang.Object
se.swedenconnect.signservice.signature.signer.DefaultSignServiceSignerProvider
All Implemented Interfaces:
SignServiceSignerProvider

public class DefaultSignServiceSignerProvider extends Object implements SignServiceSignerProvider
Default implementation of the signer provider
  • Constructor Details

    • DefaultSignServiceSignerProvider

      public DefaultSignServiceSignerProvider(se.swedenconnect.security.algorithms.AlgorithmRegistry algorithmRegistry)
      Constructor
      Parameters:
      algorithmRegistry - the algorithm registry used to get information about supported algorithms
  • Method Details

    • getSigner

      public SignServiceSigner getSigner(@Nonnull String signatureAlgorithm, @Nonnull SignatureType signatureType)
      Get a sign service signer for a given signature algorithm and signature type
      Specified by:
      getSigner in interface SignServiceSignerProvider
      Parameters:
      signatureAlgorithm - the signature algorithm to use
      signatureType - the type of signature that is being created (typically, XML, PDF or JSON)
      Returns:
      SignServiceSigner for the given algorithm and signature type