Enum 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 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 Summary

      Enum Constants 
      Enum Constant Description
      POST  
      REDIRECT  
    • 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 a Saml2MessageBinding.
      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.
      • Methods inherited from class java.lang.Enum

        clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
      • Methods inherited from class java.lang.Object

        getClass, notify, notifyAll, wait, wait, wait
    • 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 name
        java.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 a Saml2MessageBinding.
        Parameters:
        name - the algorithm name
        Returns:
        the resolved Saml2MessageBinding, or null if not found
        Since:
        5.5