TokenType Class

public final class TokenType
extends ExpandableStringEnum<TokenType>

The token type. Must be either PersonalAccessToken or Oauth.

Field Summary

Modifier and Type Field and Description
static final TokenType OAUTH

Static value Oauth for TokenType.

static final TokenType PERSONAL_ACCESS_TOKEN

Static value PersonalAccessToken for TokenType.

Constructor Summary

Constructor Description
TokenType()

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.

PERSONAL_ACCESS_TOKEN

public static final TokenType PERSONAL_ACCESS_TOKEN

Static value PersonalAccessToken for TokenType.

Constructor Details

TokenType

public TokenType()

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