Class MetadataSettings.EncryptionMethodSettings.Builder
java.lang.Object
se.swedenconnect.spring.saml.idp.settings.AbstractSettings.AbstractBuilder<MetadataSettings.EncryptionMethodSettings,MetadataSettings.EncryptionMethodSettings.Builder>
se.swedenconnect.spring.saml.idp.settings.MetadataSettings.EncryptionMethodSettings.Builder
- Enclosing class:
MetadataSettings.EncryptionMethodSettings
public static final class MetadataSettings.EncryptionMethodSettings.Builder
extends AbstractSettings.AbstractBuilder<MetadataSettings.EncryptionMethodSettings,MetadataSettings.EncryptionMethodSettings.Builder>
A builder for
MetadataSettings.EncryptionMethodSettings
.-
Method Summary
Modifier and TypeMethodDescriptionAssigns the encryption algorithm.protected void
Is invoked byAbstractSettings.AbstractBuilder.build()
to apply default values to those settings that are mandatory and has not been assigned.Is invoked byAbstractSettings.AbstractBuilder.build()
and builds the settings object.digestMethod
(String algorithm) Assigns the digest method URI.Assigns the key size.oaepParams
(String params) Assigns the OAEP params.Methods inherited from class se.swedenconnect.spring.saml.idp.settings.AbstractSettings.AbstractBuilder
build, getSettings, getThis, setting, settings
-
Method Details
-
algorithm
Assigns the encryption algorithm.- Parameters:
algorithm
- the algorithm- Returns:
- the builder
-
keySize
Assigns the key size.- Parameters:
keySize
- key size- Returns:
- the builder
-
oaepParams
Assigns the OAEP params.- Parameters:
params
- the OAEP params- Returns:
- the builder
-
digestMethod
Assigns the digest method URI. Ifalgorithm
indicates a key transport algorithm where the digest algorithm needs to be given, this field should be set to this algorithm URI.- Parameters:
algorithm
- algorithm URI- 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.EncryptionMethodSettings,
MetadataSettings.EncryptionMethodSettings.Builder> - Returns:
- the settings object
-