Class AbstractSecurityConfiguration
- All Implemented Interfaces:
SecurityConfiguration
- Direct Known Subclasses:
DefaultSecurityConfiguration
,SAML2IntSecurityConfiguration
SecurityConfiguration
. Subclasses 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 org.opensaml.xmlsec.DecryptionConfiguration
Creates the default decryption configuration for this instance.protected org.opensaml.xmlsec.EncryptionConfiguration
Creates the default encryption configuration for this instance.protected org.opensaml.xmlsec.SignatureSigningConfiguration
Creates the default signature configuration for this instance.protected org.opensaml.xmlsec.SignatureValidationConfiguration
Creates the default signature validation configuration for this instance.final org.opensaml.xmlsec.DecryptionConfiguration
Returns the decryption configuration that has been configured.protected final org.opensaml.xmlsec.DecryptionConfiguration
Returns the default decryption configuration for this instance.protected final org.opensaml.xmlsec.EncryptionConfiguration
Returns the default encryption configuration for this instance.protected final org.opensaml.xmlsec.SignatureSigningConfiguration
Returns the default signature configuration for this instance.protected final org.opensaml.xmlsec.SignatureValidationConfiguration
Returns the default signature validation configuration for this instance.final org.opensaml.xmlsec.EncryptionConfiguration
Returns the encryption configuration that has been configured.final org.opensaml.xmlsec.SignatureSigningConfiguration
Returns the signing configuration that has been configued.final org.opensaml.xmlsec.SignatureValidationConfiguration
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
public final org.opensaml.xmlsec.EncryptionConfiguration getEncryptionConfiguration()Returns the encryption configuration that has been configured.- Specified by:
getEncryptionConfiguration
in interfaceSecurityConfiguration
- Returns:
- encryption configuration
-
getDefaultEncryptionConfiguration
protected final org.opensaml.xmlsec.EncryptionConfiguration 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
protected org.opensaml.xmlsec.EncryptionConfiguration 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
public final org.opensaml.xmlsec.DecryptionConfiguration getDecryptionConfiguration()Returns the decryption configuration that has been configured.- Specified by:
getDecryptionConfiguration
in interfaceSecurityConfiguration
- Returns:
- decryption configuration
-
getDefaultDecryptionConfiguration
protected final org.opensaml.xmlsec.DecryptionConfiguration 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
protected org.opensaml.xmlsec.DecryptionConfiguration 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
public final org.opensaml.xmlsec.SignatureSigningConfiguration getSignatureSigningConfiguration()Returns the signing configuration that has been configued.- Specified by:
getSignatureSigningConfiguration
in interfaceSecurityConfiguration
- Returns:
- signing configuration
-
getDefaultSignatureSigningConfiguration
protected final org.opensaml.xmlsec.SignatureSigningConfiguration 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
protected org.opensaml.xmlsec.SignatureSigningConfiguration 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
public final org.opensaml.xmlsec.SignatureValidationConfiguration getSignatureValidationConfiguration()Returns the signature validation configuration that has been configured.- Specified by:
getSignatureValidationConfiguration
in interfaceSecurityConfiguration
- Returns:
- signature validation configuration
-
getDefaultSignatureValidationConfiguration
protected final org.opensaml.xmlsec.SignatureValidationConfiguration 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
protected org.opensaml.xmlsec.SignatureValidationConfiguration 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
public void initOpenSAML() throws org.opensaml.core.config.InitializationExceptionInitializes OpenSAML with the defaults that has been installed for this instance.ConfigurationService.register(XXXConfiguration.class, xxxConfiguration);
- Specified by:
initOpenSAML
in interfaceSecurityConfiguration
- Throws:
org.opensaml.core.config.InitializationException
- for initialization errors
-