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
Modifier and TypeClassDescriptionstatic final class
A builder forMetadataSettings.EncryptionMethodSettings
.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 algorithm URI of the encryption method.static final String
Ifalgorithm
indicates a key transport algorithm where the digest algorithm needs to be given, this field should be set to this algorithm URI.static final String
The key size, in bits, for the encryption algorithm.static final String
The OAEP params in base64 encoding. -
Constructor Summary
ModifierConstructorDescriptionprotected
EncryptionMethodSettings
(Map<String, Object> settings) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
Constructs a newMetadataSettings.EncryptionMethodSettings.Builder
with 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.Builder
with the provided settings.Methods inherited from class se.swedenconnect.spring.saml.idp.settings.AbstractSettings
equals, getSetting, getSettings, hashCode, toString
-
Field Details
-
ALGORITHM
The algorithm URI of the encryption method. AString
.- See Also:
-
KEYSIZE
The key size, in bits, for the encryption algorithm. AnInteger
.- See Also:
-
OAEP_PARAMS
The OAEP params in base64 encoding. AString
.- See Also:
-
DIGEST_METHOD
Ifalgorithm
indicates a key transport algorithm where the digest algorithm needs to be given, this field should be set to this algorithm URI. AString
.- See Also:
-
-
Constructor Details
-
EncryptionMethodSettings
Constructor.- Parameters:
settings
- the settings
-
-
Method Details
-
getAlgorithm
Gets the encryption algorithm.- Returns:
- the encryption algorithm
-
getKeySize
Gets the key size, in bits, for the algorithm.- Returns:
- key size
-
getOaepParams
Gets the OAEP params.- Returns:
- the OAEP params
-
getDigestMethod
Gets 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.- Returns:
- URI
-
builder
Constructs a newMetadataSettings.EncryptionMethodSettings.Builder
with no settings.- Returns:
- the
MetadataSettings.EncryptionMethodSettings.Builder
-
withSettings
public static MetadataSettings.EncryptionMethodSettings.Builder withSettings(Map<String, Object> settings) Constructs a newMetadataSettings.EncryptionMethodSettings.Builder
with the provided settings.- Parameters:
settings
- the settings to initialize the builder- Returns:
- the builder
-