Class DefaultSignatureHandlerFactory
java.lang.Object
se.swedenconnect.signservice.core.config.AbstractHandlerFactory<SignatureHandler>
se.swedenconnect.signservice.signature.config.DefaultSignatureHandlerFactory
- All Implemented Interfaces:
HandlerFactory<SignatureHandler>
Factory for creating
DefaultSignatureHandler
handlers.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected SignatureHandler
createHandler
(HandlerConfiguration<SignatureHandler> configuration, BeanLoader beanLoader) Creates a handler instance based on the supplied configuration.protected Class
<SignatureHandler> Gets the handler type.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
-
DefaultSignatureHandlerFactory
public DefaultSignatureHandlerFactory()
-
-
Method Details
-
createHandler
protected SignatureHandler createHandler(@Nullable HandlerConfiguration<SignatureHandler> configuration, @Nullable BeanLoader beanLoader) throws IllegalArgumentException Creates a handler instance based on the supplied configuration. The method is invoked fromHandlerFactory.create(HandlerConfiguration)
that already has taken care of bean loading (if necessary) and checking the any references have been resolved. ThebeanLoader
is supplied anyway since the implementation may need to load any other bean references.- Specified by:
createHandler
in classAbstractHandlerFactory<SignatureHandler>
- Parameters:
configuration
- the configuration. May be null if the factory can create a handler instance without any configurationbeanLoader
- the bean loader (may be null)- Returns:
- a handler instance
- Throws:
IllegalArgumentException
- if the supplied configuration is not correct
-
getHandlerType
Gets the handler type.- Specified by:
getHandlerType
in classAbstractHandlerFactory<SignatureHandler>
- Returns:
- the handler type
-