Class AbstractSecurityConfiguration
- All Implemented Interfaces:
SecurityConfiguration
- Direct Known Subclasses:
DefaultSecurityConfiguration
,SAML2IntSecurityConfiguration
SecurityConfiguration
. Sub-classes should implement the create-methods for the
different operations they wish to override.- Author:
- Martin Lindström (martin@idsec.se), Stefan Santesson (stefan@idsec.se)
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected DecryptionConfiguration
Creates the default decryption configuration for this instance.protected EncryptionConfiguration
Creates the default encryption configuration for this instance.protected SignatureSigningConfiguration
Creates the default signature configuration for this instance.protected SignatureValidationConfiguration
Creates the default signature validation configuration for this instance.final DecryptionConfiguration
Returns the decryption configuration that has been configured.protected final DecryptionConfiguration
Returns the default decryption configuration for this instance.protected final EncryptionConfiguration
Returns the default encryption configuration for this instance.protected final SignatureSigningConfiguration
Returns the default signature configuration for this instance.protected final SignatureValidationConfiguration
Returns the default signature validation configuration for this instance.final EncryptionConfiguration
Returns the encryption configuration that has been configured.Returns the signing configuration that has been configued.Returns the signature validation configuration that has been configured.void
Initializes OpenSAML with the defaults that has been installed for this instance.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface se.swedenconnect.opensaml.xmlsec.config.SecurityConfiguration
getProfileName
-
Constructor Details
-
AbstractSecurityConfiguration
public AbstractSecurityConfiguration()Constructor.Note: Subclasses MUST NOT create any XML objects that require that OpenSAML has been initialized in the constructor. The reason for this is that a
SecurityConfiguration
object most likely is setup as an argument to theOpenSAMLSecurityDefaultsConfig
which is passed to theOpenSAMLInitializer
.
-
-
Method Details
-
getEncryptionConfiguration
Returns the encryption configuration that has been configured.- Specified by:
getEncryptionConfiguration
in interfaceSecurityConfiguration
- Returns:
- encryption configuration
-
getDefaultEncryptionConfiguration
Returns the default encryption configuration for this instance.- Returns:
- default encryption configuration, or
null
if this security configuration object has not overridden the system defaults
-
createDefaultEncryptionConfiguration
Creates the default encryption configuration for this instance.The default implementation returns
null
which means that theEncryptionConfiguration
held byConfigurationService
will be returned whenSecurityConfiguration.getEncryptionConfiguration()
is called.- Returns:
- default encryption configuration, or
null
if the security configuration object does not need to modify the system defaults
-
getDecryptionConfiguration
Returns the decryption configuration that has been configured.- Specified by:
getDecryptionConfiguration
in interfaceSecurityConfiguration
- Returns:
- decryption configuration
-
getDefaultDecryptionConfiguration
Returns the default decryption configuration for this instance.- Returns:
- default decryption configuration, or
null
if this security configuration object has not overridden the system defaults
-
createDefaultDecryptionConfiguration
Creates the default decryption configuration for this instance.The default implementation returns
null
which means that theDecryptionConfiguration
held byConfigurationService
will be returned whenSecurityConfiguration.getDecryptionConfiguration()
is called.- Returns:
- default decryption configuration, or
null
if the security configuration object does not need to modify the system defaults
-
getSignatureSigningConfiguration
Returns the signing configuration that has been configued.- Specified by:
getSignatureSigningConfiguration
in interfaceSecurityConfiguration
- Returns:
- signing configuration
-
getDefaultSignatureSigningConfiguration
Returns the default signature configuration for this instance.- Returns:
- default signature configuration, or
null
if this security configuration object has not overridden the system defaults
-
createDefaultSignatureSigningConfiguration
Creates the default signature configuration for this instance.The default implementation returns
null
which means that theSignatureSigningConfiguration
held byConfigurationService
will be returned whenSecurityConfiguration.getSignatureSigningConfiguration()
is called.- Returns:
- default signature configuration, or
null
if the security configuration object does not need to modify the system defaults
-
getSignatureValidationConfiguration
Returns the signature validation configuration that has been configured.- Specified by:
getSignatureValidationConfiguration
in interfaceSecurityConfiguration
- Returns:
- signature validation configuration
-
getDefaultSignatureValidationConfiguration
Returns the default signature validation configuration for this instance.- Returns:
- default signature validation configuration, or
null
if this security configuration object has not overridden the system defaults
-
createDefaultSignatureValidationConfiguration
Creates the default signature validation configuration for this instance.The default implementation returns
null
which means that theSignatureValidationConfiguration
held byConfigurationService
will be returned whenSecurityConfiguration.getSignatureValidationConfiguration()
is called.- Returns:
- default signature validation configuration, or
null
if the security configuration object does not need to modify the system defaults
-
initOpenSAML
Initializes OpenSAML with the defaults that has been installed for this instance.ConfigurationService.register(XXXConfiguration.class, xxxConfiguration);
- Specified by:
initOpenSAML
in interfaceSecurityConfiguration
- Throws:
InitializationException
- for initialization errors
-