Class MetadataSettings.EncryptionMethodSettings
java.lang.Object
se.swedenconnect.spring.saml.idp.settings.AbstractSettings
se.swedenconnect.spring.saml.idp.settings.MetadataSettings.EncryptionMethodSettings
- All Implemented Interfaces:
Serializable
- Enclosing class:
MetadataSettings
Configuration for EncryptionMethod metadata elements.
- Author:
- Martin Lindström
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classA builder forMetadataSettings.EncryptionMethodSettings.Nested classes/interfaces inherited from class AbstractSettings
AbstractSettings.AbstractBuilder<T,B> -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe algorithm URI of the encryption method.static final StringIfalgorithmindicates a key transport algorithm where the digest algorithm needs to be given, this field should be set to this algorithm URI.static final StringThe key size, in bits, for the encryption algorithm.static final StringThe OAEP params in base64 encoding. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedEncryptionMethodSettings(Map<String, Object> settings) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Constructs a newMetadataSettings.EncryptionMethodSettings.Builderwith no settings.Gets the encryption algorithm.Gets the digest method URI.Gets the key size, in bits, for the algorithm.Gets the OAEP params.withSettings(Map<String, Object> settings) Constructs a newMetadataSettings.EncryptionMethodSettings.Builderwith the provided settings.Methods inherited from class AbstractSettings
equals, getSetting, getSettings, hashCode, toString
-
Field Details
-
ALGORITHM
-
KEYSIZE
-
OAEP_PARAMS
-
DIGEST_METHOD
-
-
Constructor Details
-
EncryptionMethodSettings
-
-
Method Details
-
getAlgorithm
-
getKeySize
-
getOaepParams
-
getDigestMethod
Gets the digest method URI. Ifalgorithmindicates a key transport algorithm where the digest algorithm needs to be given, this field should be set to this algorithm URI.- Returns:
- URI
-
builder
Constructs a newMetadataSettings.EncryptionMethodSettings.Builderwith no settings.- Returns:
- the
MetadataSettings.EncryptionMethodSettings.Builder
-
withSettings
public static MetadataSettings.EncryptionMethodSettings.Builder withSettings(Map<String, Object> settings) Constructs a newMetadataSettings.EncryptionMethodSettings.Builderwith the provided settings.- Parameters:
settings- the settings to initialize the builder- Returns:
- the builder
-