Class CMCKeyAndCertificateHandlerFactory
java.lang.Object
se.swedenconnect.signservice.core.config.AbstractHandlerFactory<KeyAndCertificateHandler>
se.swedenconnect.signservice.certificate.base.config.AbstractKeyAndCertificateHandlerFactory
se.swedenconnect.signservice.certificate.cmc.config.CMCKeyAndCertificateHandlerFactory
- All Implemented Interfaces:
HandlerFactory<KeyAndCertificateHandler>
Factory class for
CMCKeyAndCertificateHandler
.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected AbstractKeyAndCertificateHandler
createKeyAndCertificateHandler
(HandlerConfiguration<KeyAndCertificateHandler> configuration, BeanLoader beanLoader, PkiCredentialContainer keyProvider, Map<String, String> algorithmKeyTypeMap, AttributeMapper attributeMapper, se.swedenconnect.security.algorithms.AlgorithmRegistry algorithmRegistry, CertificateProfileConfiguration profileConfiguration) Creates a handler.Methods inherited from class se.swedenconnect.signservice.certificate.base.config.AbstractKeyAndCertificateHandlerFactory
createHandler, getHandlerType
Methods inherited from class se.swedenconnect.signservice.core.config.AbstractHandlerFactory
create, getValidationConfig
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface se.swedenconnect.signservice.core.config.HandlerFactory
create
-
Constructor Details
-
CMCKeyAndCertificateHandlerFactory
public CMCKeyAndCertificateHandlerFactory()
-
-
Method Details
-
createKeyAndCertificateHandler
@Nonnull protected AbstractKeyAndCertificateHandler createKeyAndCertificateHandler(@Nonnull HandlerConfiguration<KeyAndCertificateHandler> configuration, @Nullable BeanLoader beanLoader, @Nonnull PkiCredentialContainer keyProvider, @Nonnull Map<String, String> algorithmKeyTypeMap, @Nonnull AttributeMapper attributeMapper, @Nonnull se.swedenconnect.security.algorithms.AlgorithmRegistry algorithmRegistry, @Nullable CertificateProfileConfiguration profileConfiguration) throws IllegalArgumentExceptionCreates a handler.Note that the handler name, certificate type and service name does not have to be assigned. This is done by the main method.
- Specified by:
createKeyAndCertificateHandler
in classAbstractKeyAndCertificateHandlerFactory
- Parameters:
configuration
- the handler configurationbeanLoader
- the bean loader (may be null)keyProvider
- the key generation containeralgorithmKeyTypeMap
- the mapping between key types and key generation stringsattributeMapper
- the attribute mapperalgorithmRegistry
- the algorithm registryprofileConfiguration
- the certificate profile configuration (may be null)- Returns:
- a handler instance
- Throws:
IllegalArgumentException
- for configuration errors
-