Class MetadataSettings.SigningMethodSettings
java.lang.Object
se.swedenconnect.spring.saml.idp.settings.AbstractSettings
se.swedenconnect.spring.saml.idp.settings.MetadataSettings.SigningMethodSettings
- All Implemented Interfaces:
Serializable
- Enclosing class:
MetadataSettings
Configuration for SigningMethod metadata elements.
- Author:
- Martin Lindström
- See Also:
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic final class
A builder forMetadataSettings.SigningMethodSettings
.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
Identifies the algorithm by means of the URL defined for its use with the XML Signature specification.static final String
The largest key size, in bits, that the entity supports in conjunction with the algorithm.static final String
The smallest key size, in bits, that the entity supports in conjunction with the algorithm. -
Constructor Summary
ModifierConstructorDescriptionprotected
SigningMethodSettings
(Map<String, Object> settings) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
Constructs a newMetadataSettings.SigningMethodSettings.Builder
with no settings.Gets the signing algorithm.Gets the largest key size, in bits, that the entity supports in conjunction with the algorithm.Gets the smallest key size, in bits, that the entity supports in conjunction with the algorithm.withSettings
(Map<String, Object> settings) Constructs a newMetadataSettings.SigningMethodSettings.Builder
with the provided settings.Methods inherited from class se.swedenconnect.spring.saml.idp.settings.AbstractSettings
equals, getSetting, getSettings, hashCode, toString
-
Field Details
-
ALGORITHM
Identifies the algorithm by means of the URL defined for its use with the XML Signature specification. AString
.- See Also:
-
MIN_KEYSIZE
The smallest key size, in bits, that the entity supports in conjunction with the algorithm. If omitted, no minimum is implied. AnInteger
.- See Also:
-
MAX_KEYSIZE
The largest key size, in bits, that the entity supports in conjunction with the algorithm. If omitted, no maximum is implied. AnInteger
.- See Also:
-
-
Constructor Details
-
SigningMethodSettings
Constructor.- Parameters:
settings
- the settings
-
-
Method Details
-
getAlgorithm
Gets the signing algorithm.- Returns:
- the signing algorithm
-
getMinKeySize
Gets the smallest key size, in bits, that the entity supports in conjunction with the algorithm.- Returns:
- minimum key size
-
getMaxKeySize
Gets the largest key size, in bits, that the entity supports in conjunction with the algorithm.- Returns:
- maximum key size
-
builder
Constructs a newMetadataSettings.SigningMethodSettings.Builder
with no settings.- Returns:
- the
MetadataSettings.SigningMethodSettings.Builder
-
withSettings
public static MetadataSettings.SigningMethodSettings.Builder withSettings(Map<String, Object> settings) Constructs a newMetadataSettings.SigningMethodSettings.Builder
with the provided settings.- Parameters:
settings
- the settings to initialize the builder- Returns:
- the builder
-