Enum Saml2MessageBinding
- java.lang.Object
-
- java.lang.Enum<Saml2MessageBinding>
-
- org.springframework.security.saml2.provider.service.registration.Saml2MessageBinding
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<Saml2MessageBinding>
public enum Saml2MessageBinding extends java.lang.Enum<Saml2MessageBinding>
The type of bindings that messages are exchanged using Supported bindings areurn:oasis:names:tc:SAML:2.0:bindings:HTTP-POST
andurn:oasis:names:tc:SAML:2.0:bindings:HTTP-Redirect
. In addition there is support forurn:oasis:names:tc:SAML:2.0:bindings:HTTP-Redirect
with an XML signature in the message rather than query parameters.- Since:
- 5.3
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Saml2MessageBinding
from(java.lang.String name)
Attempt to resolve the provided algorithm name to aSaml2MessageBinding
.java.lang.String
getUrn()
Returns the URN value from the SAML 2 specification for this binding.static Saml2MessageBinding
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static Saml2MessageBinding[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
POST
public static final Saml2MessageBinding POST
-
REDIRECT
public static final Saml2MessageBinding REDIRECT
-
-
Method Detail
-
values
public static Saml2MessageBinding[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (Saml2MessageBinding c : Saml2MessageBinding.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Saml2MessageBinding valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
getUrn
public java.lang.String getUrn()
Returns the URN value from the SAML 2 specification for this binding.- Returns:
- URN value representing this binding
-
from
public static Saml2MessageBinding from(java.lang.String name)
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
-
-