Enum NuxeoOAuth2TokenType
- java.lang.Object
-
- java.lang.Enum<NuxeoOAuth2TokenType>
-
- org.nuxeo.ecm.platform.oauth2.enums.NuxeoOAuth2TokenType
-
- All Implemented Interfaces:
Serializable
,Comparable<NuxeoOAuth2TokenType>
public enum NuxeoOAuth2TokenType extends Enum<NuxeoOAuth2TokenType>
OAuth2 token type can be:- Provided by Nuxeo:
AS_PROVIDER
- Consumed by Nuxeo:
AS_CLIENT
- Since:
- 11.1
-
-
Enum Constant Summary
Enum Constants Enum Constant Description AS_CLIENT
AS_PROVIDER
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Predicate
getPredicate()
String
getValue()
static NuxeoOAuth2TokenType
valueOf(String name)
Returns the enum constant of this type with the specified name.static NuxeoOAuth2TokenType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
AS_PROVIDER
public static final NuxeoOAuth2TokenType AS_PROVIDER
-
AS_CLIENT
public static final NuxeoOAuth2TokenType AS_CLIENT
-
-
Method Detail
-
values
public static NuxeoOAuth2TokenType[] 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 (NuxeoOAuth2TokenType c : NuxeoOAuth2TokenType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static NuxeoOAuth2TokenType valueOf(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:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
getValue
public String getValue()
-
getPredicate
public Predicate getPredicate()
-
-