Enum Class Saml2MessageBinding
java.lang.Object
java.lang.Enum<Saml2MessageBinding>
org.springframework.security.saml2.provider.service.registration.Saml2MessageBinding
- All Implemented Interfaces:
Serializable
,Comparable<Saml2MessageBinding>
,Constable
The type of bindings that messages are exchanged using Supported bindings are
urn:oasis:names:tc:SAML:2.0:bindings:HTTP-POST
and
urn:oasis:names:tc:SAML:2.0:bindings:HTTP-Redirect
. In addition there is
support for urn:oasis:names:tc:SAML:2.0:bindings:HTTP-Redirect
with an XML
signature in the message rather than query parameters.- Since:
- 5.3
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic Saml2MessageBinding
Attempt to resolve the provided algorithm name to aSaml2MessageBinding
.getUrn()
Returns the URN value from the SAML 2 specification for this binding.static Saml2MessageBinding
Returns the enum constant of this class with the specified name.static Saml2MessageBinding[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
POST
-
REDIRECT
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-
getUrn
Returns the URN value from the SAML 2 specification for this binding.- Returns:
- URN value representing this binding
-
from
Attempt to resolve the provided algorithm name to aSaml2MessageBinding
.- Parameters:
name
- the algorithm name- Returns:
- the resolved
Saml2MessageBinding
, ornull
if not found - Since:
- 5.5
-