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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected AbstractKeyAndCertificateHandlercreateKeyAndCertificateHandler(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, getHandlerTypeMethods inherited from class se.swedenconnect.signservice.core.config.AbstractHandlerFactory
create, getValidationConfigMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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:
createKeyAndCertificateHandlerin 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
-