Class CredentialSettings
java.lang.Object
se.swedenconnect.spring.saml.idp.settings.AbstractSettings
se.swedenconnect.spring.saml.idp.settings.CredentialSettings
- All Implemented Interfaces:
Serializable
Settings for Identity Provider credentials.
- Author:
- Martin Lindström
- See Also:
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class se.swedenconnect.spring.saml.idp.settings.AbstractSettings
AbstractSettings.AbstractBuilder<T extends AbstractSettings,B extends AbstractSettings.AbstractBuilder<T, B>> -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe IdP default credential.static final StringThe IdP encryption credential.static final StringA certificate that will be the future signing certificate.static final StringThe SAML metadata signing credential.static final StringThe previous IdP encryption credential.static final StringThe IdP signing credential. -
Method Summary
Modifier and TypeMethodDescriptionstatic CredentialSettings.Builderbuilder()Constructs a newCredentialSettings.Builderwith no settings.Gets the default IdP credential.Gets the encryption IdP credential.Gets the future IdP signing certificate.Gets the credential for signing metadata.Gets the previous encryption IdP credential.Gets the signing IdP credential.static CredentialSettings.BuilderwithSettings(Map<String, Object> settings) Constructs a newCredentialSettings.Builderwith the provided settings.Methods inherited from class se.swedenconnect.spring.saml.idp.settings.AbstractSettings
equals, getSetting, getSettings, hashCode, toString
-
Field Details
-
DEFAULT_CREDENTIAL
The IdP default credential. APkiCredential.- See Also:
-
SIGN_CREDENTIAL
The IdP signing credential. APkiCredential.- See Also:
-
FUTURE_SIGN_CERTIFICATE
A certificate that will be the future signing certificate. Is set before a key-rollover is performed. AX509Certificate.- See Also:
-
ENCRYPT_CREDENTIAL
The IdP encryption credential. APkiCredential.- See Also:
-
PREVIOUS_ENCRYPT_CREDENTIAL
The previous IdP encryption credential. Assigned after a key-rollover. APkiCredential.- See Also:
-
METADATA_SIGN_CREDENTIAL
The SAML metadata signing credential. APkiCredential.- See Also:
-
-
Method Details
-
getDefaultCredential
Gets the default IdP credential.- Returns:
- the credential or null if not assigned
-
getSignCredential
Gets the signing IdP credential.- Returns:
- the credential or null if none is assigned
-
getFutureSignCertificate
Gets the future IdP signing certificate. Assigned before a key-rollover is performed.- Returns:
- a certificate or null if none is assigned
-
getEncryptCredential
Gets the encryption IdP credential.- Returns:
- the credential or null if none is assigned
-
getPreviousEncryptCredential
Gets the previous encryption IdP credential. Assigned after a key-rollover has been performed.- Returns:
- the credential or null if none is assigned
-
getMetadataSignCredential
Gets the credential for signing metadata.- Returns:
- the credential or null if none has been assigned
-
builder
Constructs a newCredentialSettings.Builderwith no settings.- Returns:
- the
CredentialSettings.Builder
-
withSettings
Constructs a newCredentialSettings.Builderwith the provided settings.- Parameters:
settings- the settings to initialize the builder- Returns:
- the builder
-