TokenType Class

public final class TokenType
extends ExpandableStringEnum<TokenType>

The type of Auth token.

Field Summary

Modifier and Type Field and Description
static final TokenType OAUTH

Static value OAuth for TokenType.

static final TokenType PAT

Static value PAT for TokenType.

Constructor Summary

Constructor Description
TokenType()

Deprecated

Use the fromString(String name) factory method.

Creates a new instance of TokenType value.

Method Summary

Modifier and Type Method and Description
static TokenType fromString(String name)

Creates or finds a TokenType from its string representation.

static Collection<TokenType> values()

Gets known TokenType values.

Methods inherited from ExpandableStringEnum

Methods inherited from java.lang.Object

Field Details

OAUTH

public static final TokenType OAUTH

Static value OAuth for TokenType.

PAT

public static final TokenType PAT

Static value PAT for TokenType.

Constructor Details

TokenType

@Deprecated
public TokenType()

Deprecated

Use the fromString(String name) factory method.

Creates a new instance of TokenType value.

Method Details

fromString

public static TokenType fromString(String name)

Creates or finds a TokenType from its string representation.

Parameters:

name - a name to look for.

Returns:

the corresponding TokenType.

values

public static Collection values()

Gets known TokenType values.

Returns:

known TokenType values.

Applies to