Package org.gluu.oxauth.model.common
Enum TokenTypeHint
- java.lang.Object
-
- java.lang.Enum<TokenTypeHint>
-
- org.gluu.oxauth.model.common.TokenTypeHint
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<TokenTypeHint>
,HasParamName
,org.gluu.persist.annotation.AttributeEnum
public enum TokenTypeHint extends java.lang.Enum<TokenTypeHint> implements HasParamName, org.gluu.persist.annotation.AttributeEnum
- Version:
- January 16, 2019
- Author:
- Javier Rojas Blum
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ACCESS_TOKEN
An access token as defined in RFC6749, Section 1.4REFRESH_TOKEN
A refresh token as defined in RFC6749, Section 1.5
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static TokenTypeHint
fromString(java.lang.String param)
static TokenTypeHint
getByValue(java.lang.String value)
java.lang.String
getParamName()
Gets param name.java.lang.String
getValue()
java.lang.Enum<? extends org.gluu.persist.annotation.AttributeEnum>
resolveByValue(java.lang.String s)
java.lang.String
toString()
Returns a string representation of the object.static TokenTypeHint
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static TokenTypeHint[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
ACCESS_TOKEN
public static final TokenTypeHint ACCESS_TOKEN
An access token as defined in RFC6749, Section 1.4
-
REFRESH_TOKEN
public static final TokenTypeHint REFRESH_TOKEN
A refresh token as defined in RFC6749, Section 1.5
-
-
Method Detail
-
values
public static TokenTypeHint[] 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 (TokenTypeHint c : TokenTypeHint.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static TokenTypeHint 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
-
getParamName
public java.lang.String getParamName()
Gets param name.- Specified by:
getParamName
in interfaceHasParamName
- Returns:
- param name
-
getValue
public java.lang.String getValue()
- Specified by:
getValue
in interfaceorg.gluu.persist.annotation.AttributeEnum
-
fromString
public static TokenTypeHint fromString(java.lang.String param)
-
getByValue
public static TokenTypeHint getByValue(java.lang.String value)
-
resolveByValue
public java.lang.Enum<? extends org.gluu.persist.annotation.AttributeEnum> resolveByValue(java.lang.String s)
- Specified by:
resolveByValue
in interfaceorg.gluu.persist.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 classjava.lang.Enum<TokenTypeHint>
- Returns:
- The string representation of the object.
-
-