java.lang.Object
java.lang.Enum<Saml2MessageBinding>
org.springframework.security.saml2.provider.service.registration.Saml2MessageBinding
All Implemented Interfaces:
Serializable, Comparable<Saml2MessageBinding>, Constable

public enum Saml2MessageBinding extends Enum<Saml2MessageBinding>
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
  • Enum Constant Details

  • Method Details

    • values

      public static Saml2MessageBinding[] 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

      public static Saml2MessageBinding valueOf(String name)
      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 name
      NullPointerException - if the argument is null
    • getUrn

      public 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(String name)
      Attempt to resolve the provided algorithm name to a Saml2MessageBinding.
      Parameters:
      name - the algorithm name
      Returns:
      the resolved Saml2MessageBinding, or null if not found
      Since:
      5.5