TokenType Class
- java.
lang. Object - com.
azure. core. util. ExpandableStringEnum<T> - com.
azure. resourcemanager. containerregistry. models. TokenType
- com.
- com.
public final class TokenType
extends ExpandableStringEnum<TokenType>
The type of Auth token.
Field Summary
Modifier and Type | Field and Description |
---|---|
static final
Token |
OAUTH
Static value OAuth for Token |
static final
Token |
PAT
Static value PAT for Token |
Constructor Summary
Constructor | Description |
---|---|
TokenType() |
Deprecated
Use the fromString(String name) factory method.
Creates a new instance of Token |
Method Summary
Modifier and Type | Method and Description |
---|---|
static
Token |
fromString(String name)
Creates or finds a Token |
static
Collection<Token |
values()
Gets known Token |
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
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:
Returns:
values
public static Collection
Gets known TokenType values.
Returns:
Applies to
Azure SDK for Java