Class MetadataSettings.SigningMethodSettings.Builder
java.lang.Object
se.swedenconnect.spring.saml.idp.settings.AbstractSettings.AbstractBuilder<MetadataSettings.SigningMethodSettings,MetadataSettings.SigningMethodSettings.Builder>
se.swedenconnect.spring.saml.idp.settings.MetadataSettings.SigningMethodSettings.Builder
- Enclosing class:
MetadataSettings.SigningMethodSettings
public static final class MetadataSettings.SigningMethodSettings.Builder
extends AbstractSettings.AbstractBuilder<MetadataSettings.SigningMethodSettings,MetadataSettings.SigningMethodSettings.Builder>
A builder for
MetadataSettings.SigningMethodSettings
.-
Method Summary
Modifier and TypeMethodDescriptionAssigns the signing algorithm.protected void
Is invoked byAbstractSettings.AbstractBuilder.build()
to apply default values to those settings that are mandatory and has not been assigned.protected MetadataSettings.SigningMethodSettings
Is invoked byAbstractSettings.AbstractBuilder.build()
and builds the settings object.maxKeySize
(Integer maxKeySize) Assigns the largest key size, in bits, that the entity supports in conjunction with the algorithm.minKeySize
(Integer minKeySize) Assigns the smallest key size, in bits, that the entity supports in conjunction with the algorithm.Methods inherited from class se.swedenconnect.spring.saml.idp.settings.AbstractSettings.AbstractBuilder
build, getSettings, getThis, setting, settings
-
Method Details
-
algorithm
Assigns the signing algorithm.- Parameters:
algorithm
- the algorithm- Returns:
- the builder
-
minKeySize
Assigns the smallest key size, in bits, that the entity supports in conjunction with the algorithm.- Parameters:
minKeySize
- minimum key size- Returns:
- the builder
-
maxKeySize
Assigns the largest key size, in bits, that the entity supports in conjunction with the algorithm.- Parameters:
maxKeySize
- maximum key size- Returns:
- the builder
-
applyDefaultSettings
protected void applyDefaultSettings()Is invoked byAbstractSettings.AbstractBuilder.build()
to apply default values to those settings that are mandatory and has not been assigned. -
buildObject
Is invoked byAbstractSettings.AbstractBuilder.build()
and builds the settings object.- Specified by:
buildObject
in classAbstractSettings.AbstractBuilder<MetadataSettings.SigningMethodSettings,
MetadataSettings.SigningMethodSettings.Builder> - Returns:
- the settings object
-