Enum ErrorHandlingMethod

  • All Implemented Interfaces:
    HasParamName, io.jans.orm.annotation.AttributeEnum, java.io.Serializable, java.lang.Comparable<ErrorHandlingMethod>

    public enum ErrorHandlingMethod
    extends java.lang.Enum<ErrorHandlingMethod>
    implements HasParamName, io.jans.orm.annotation.AttributeEnum
    This class define error handling methods
    Author:
    Javier Rojas Blum, Yuriy Movchan Date: 12/07/2018
    • Method Detail

      • values

        public static ErrorHandlingMethod[] 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 (ErrorHandlingMethod c : ErrorHandlingMethod.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static ErrorHandlingMethod 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
      • getParamName

        public java.lang.String getParamName()
        Gets param name.
        Specified by:
        getParamName in interface HasParamName
        Returns:
        param name
      • getValue

        public java.lang.String getValue()
        Specified by:
        getValue in interface io.jans.orm.annotation.AttributeEnum
      • fromString

        public static ErrorHandlingMethod fromString​(java.lang.String param)
        Returns the corresponding GrantType for a parameter grant_type of the access token requests. For the extension grant type, the parameter should be a valid URI.
        Parameters:
        param - The grant_type parameter.
        Returns:
        The corresponding grant type if found, otherwise null.
      • toStringArray

        public static java.lang.String[] toStringArray​(ErrorHandlingMethod[] grantTypes)
      • resolveByValue

        public java.lang.Enum<? extends io.jans.orm.annotation.AttributeEnum> resolveByValue​(java.lang.String value)
        Specified by:
        resolveByValue in interface io.jans.orm.annotation.AttributeEnum
      • toString

        public java.lang.String toString()
        Returns a string representation of the object. In this case the parameter name for the grant_type parameter.
        Overrides:
        toString in class java.lang.Enum<ErrorHandlingMethod>
        Returns:
        The string representation of the object.