Class ProtocolHandlerConfigurationProperties
java.lang.Object
se.swedenconnect.signservice.config.protocol.ProtocolHandlerConfigurationProperties
- All Implemented Interfaces:
HandlerConfigurationProperties<ProtocolHandler>
- Direct Known Subclasses:
ProtocolHandlerBeanConfigurationProperties
public class ProtocolHandlerConfigurationProperties
extends Object
implements HandlerConfigurationProperties<ProtocolHandler>
Properties for protocol configuration.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetDss()
Configuration for the DSS protocol.Gets the configuration that points to an already configured handler bean.An handler configuration properties class may have setters for several types of a particular types of a handler.Gets the handler configuration for the given name.void
Configuration for the DSS protocol.void
Assigns the configuration that points to an already configured handler bean.
-
Constructor Details
-
ProtocolHandlerConfigurationProperties
public ProtocolHandlerConfigurationProperties()
-
-
Method Details
-
getExternal
Gets the configuration that points to an already configured handler bean.- Specified by:
getExternal
in interfaceHandlerConfigurationProperties<ProtocolHandler>
- Returns:
- a configuration that points to an already configured handler bean, or null if it is not assigned
-
setExternal
Assigns the configuration that points to an already configured handler bean.- Specified by:
setExternal
in interfaceHandlerConfigurationProperties<ProtocolHandler>
- Parameters:
external
- configuration that points to an already configured handler bean
-
getHandlerConfiguration
@Nonnull public HandlerConfiguration<ProtocolHandler> getHandlerConfiguration() throws IllegalArgumentExceptionAn handler configuration properties class may have setters for several types of a particular types of a handler. For a specific engine configuration only one may be assigned. This method returns the configuration that was set.- Specified by:
getHandlerConfiguration
in interfaceHandlerConfigurationProperties<ProtocolHandler>
- Returns:
- the assigned configuration object
- Throws:
IllegalArgumentException
- if more than one configuration type is supplied, or no configuration exists
-
getHandlerConfiguration
@Nullable public HandlerConfiguration<ProtocolHandler> getHandlerConfiguration(@Nonnull String name) Gets the handler configuration for the given name.- Specified by:
getHandlerConfiguration
in interfaceHandlerConfigurationProperties<ProtocolHandler>
- Parameters:
name
- the name of the configuration- Returns:
- the handler configuration or null
-
getDss
Configuration for the DSS protocol. -
setDss
Configuration for the DSS protocol.
-