Class CredentialSettings.Builder
java.lang.Object
se.swedenconnect.spring.saml.idp.settings.AbstractSettings.AbstractBuilder<CredentialSettings,CredentialSettings.Builder>
se.swedenconnect.spring.saml.idp.settings.CredentialSettings.Builder
- Enclosing class:
CredentialSettings
public static final class CredentialSettings.Builder
extends AbstractSettings.AbstractBuilder<CredentialSettings,CredentialSettings.Builder>
A builder for
CredentialSettings
.-
Method Summary
Modifier and TypeMethodDescriptionprotected void
Is invoked byAbstractSettings.AbstractBuilder.build()
to apply default values to those settings that are mandatory and has not been assigned.Builds theCredentialSettings
.defaultCredential
(PkiCredential defaultCredential) Assigns the default IdP credential.encryptCredential
(PkiCredential encryptCredential) Assigns the encryption IdP credential.futureSignCertificate
(X509Certificate futureSignCertificate) Assigns the future IdP signing certificate.metadataSignCredential
(PkiCredential metadataSignCredential) Gets the credential for signing metadata.previousEncryptCredential
(PkiCredential previousEncryptCredential) Assigns the previous encryption IdP credential.signCredential
(PkiCredential signCredential) Assigns the signing IdP credential.Methods inherited from class se.swedenconnect.spring.saml.idp.settings.AbstractSettings.AbstractBuilder
build, getSettings, getThis, setting, settings
-
Method Details
-
defaultCredential
Assigns the default IdP credential.- Parameters:
defaultCredential
- the default IdP credential- Returns:
- the builder
-
signCredential
Assigns the signing IdP credential.- Parameters:
signCredential
- the signing credential- Returns:
- the builder
-
futureSignCertificate
Assigns the future IdP signing certificate. Assigned before a key-rollover is performed.- Parameters:
futureSignCertificate
- the future signing certificate- Returns:
- the builder
-
encryptCredential
Assigns the encryption IdP credential.- Parameters:
encryptCredential
- the encryption credential- Returns:
- the builder
-
previousEncryptCredential
public CredentialSettings.Builder previousEncryptCredential(PkiCredential previousEncryptCredential) Assigns the previous encryption IdP credential. Assigned after a key-rollover has been performed.- Parameters:
previousEncryptCredential
- the previous encryption credential- Returns:
- the builder
-
metadataSignCredential
Gets the credential for signing metadata.- Returns:
- the credential or null if none has been assigned
-
buildObject
Builds theCredentialSettings
.- Specified by:
buildObject
in classAbstractSettings.AbstractBuilder<CredentialSettings,
CredentialSettings.Builder> - Returns:
- the
CredentialSettings
-
applyDefaultSettings
protected void applyDefaultSettings()Is invoked byAbstractSettings.AbstractBuilder.build()
to apply default values to those settings that are mandatory and has not been assigned.- Specified by:
applyDefaultSettings
in classAbstractSettings.AbstractBuilder<CredentialSettings,
CredentialSettings.Builder>
-