Package org.gitlab4j.models
Enum Constants.TokenType
- java.lang.Object
-
- java.lang.Enum<Constants.TokenType>
-
- org.gitlab4j.models.Constants.TokenType
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<Constants.TokenType>
- Enclosing interface:
- Constants
public static enum Constants.TokenType extends java.lang.Enum<Constants.TokenType>
Used to specify the type of authentication token.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ACCESSJOB_TOKENOAUTH2_ACCESSPRIVATE
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Constants.TokenTypevalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static Constants.TokenType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
ACCESS
public static final Constants.TokenType ACCESS
-
OAUTH2_ACCESS
public static final Constants.TokenType OAUTH2_ACCESS
-
JOB_TOKEN
public static final Constants.TokenType JOB_TOKEN
-
PRIVATE
public static final Constants.TokenType PRIVATE
-
-
Method Detail
-
values
public static Constants.TokenType[] 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 (Constants.TokenType c : Constants.TokenType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Constants.TokenType 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
-
-