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 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
Modifier and TypeFieldDescriptionstatic final String
The IdP default credential.static final String
The IdP encryption credential.static final String
A certificate that will be the future signing certificate.static final String
The SAML metadata signing credential.static final String
The previous IdP encryption credential.static final String
The IdP signing credential. -
Method Summary
Modifier and TypeMethodDescriptionstatic CredentialSettings.Builder
builder()
Constructs a newCredentialSettings.Builder
with 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.Builder
withSettings
(Map<String, Object> settings) Constructs a newCredentialSettings.Builder
with 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.Builder
with no settings.- Returns:
- the
CredentialSettings.Builder
-
withSettings
Constructs a newCredentialSettings.Builder
with the provided settings.- Parameters:
settings
- the settings to initialize the builder- Returns:
- the builder
-