Class DefaultSignServiceSignerProvider
java.lang.Object
se.swedenconnect.signservice.signature.signer.DefaultSignServiceSignerProvider
- All Implemented Interfaces:
SignServiceSignerProvider
Default implementation of the signer provider
-
Constructor Summary
ConstructorDescriptionDefaultSignServiceSignerProvider
(se.swedenconnect.security.algorithms.AlgorithmRegistry algorithmRegistry) Constructor -
Method Summary
Modifier and TypeMethodDescriptiongetSigner
(String signatureAlgorithm, SignatureType signatureType) Get a sign service signer for a given signature algorithm and signature type
-
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 interfaceSignServiceSignerProvider
- Parameters:
signatureAlgorithm
- the signature algorithm to usesignatureType
- the type of signature that is being created (typically, XML, PDF or JSON)- Returns:
SignServiceSigner
for the given algorithm and signature type
-