Class KeyAndCertificateHandlerConfigurationProperties
java.lang.Object
se.swedenconnect.signservice.config.cert.KeyAndCertificateHandlerConfigurationProperties
- All Implemented Interfaces:
HandlerConfigurationProperties<KeyAndCertificateHandler>
- Direct Known Subclasses:
KeyAndCertificateHandlerBeanConfigurationProperties
public class KeyAndCertificateHandlerConfigurationProperties
extends Object
implements HandlerConfigurationProperties<KeyAndCertificateHandler>
Configuration properties for key and certificate handlers.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionConfiguration for a built in simple CA.getCmc()
Configuration for a key and certificate handler that uses the CMC API to communicate with a CA.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 a built in simple CA.void
Configuration for a key and certificate handler that uses the CMC API to communicate with a CA.void
Assigns the configuration that points to an already configured handler bean.
-
Constructor Details
-
KeyAndCertificateHandlerConfigurationProperties
public KeyAndCertificateHandlerConfigurationProperties()
-
-
Method Details
-
getExternal
Gets the configuration that points to an already configured handler bean.- Specified by:
getExternal
in interfaceHandlerConfigurationProperties<KeyAndCertificateHandler>
- Returns:
- a configuration that points to an already configured handler bean, or null if it is not assigned
-
setExternal
public void setExternal(@Nullable BeanReferenceHandlerConfiguration<KeyAndCertificateHandler> external) Assigns the configuration that points to an already configured handler bean.- Specified by:
setExternal
in interfaceHandlerConfigurationProperties<KeyAndCertificateHandler>
- Parameters:
external
- configuration that points to an already configured handler bean
-
getHandlerConfiguration
@Nonnull public HandlerConfiguration<KeyAndCertificateHandler> 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<KeyAndCertificateHandler>
- Returns:
- the assigned configuration object
- Throws:
IllegalArgumentException
- if more than one configuration type is supplied, or no configuration exists
-
getHandlerConfiguration
@Nullable public HandlerConfiguration<KeyAndCertificateHandler> getHandlerConfiguration(@Nonnull String name) Gets the handler configuration for the given name.- Specified by:
getHandlerConfiguration
in interfaceHandlerConfigurationProperties<KeyAndCertificateHandler>
- Parameters:
name
- the name of the configuration- Returns:
- the handler configuration or null
-
setCmc
Configuration for a key and certificate handler that uses the CMC API to communicate with a CA. -
getCmc
Configuration for a key and certificate handler that uses the CMC API to communicate with a CA. -
setBuiltInCa
Configuration for a built in simple CA. -
getBuiltInCa
Configuration for a built in simple CA.
-