TokenType Class
- java.
lang. Object - com.
azure. core. util. ExpandableStringEnum<T> - com.
azure. resourcemanager. automation. models. TokenType
- com.
- com.
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
Token |
OAUTH
Static value Oauth for Token |
static final
Token |
PERSONAL_ACCESS_TOKEN
Static value Personal |
Constructor Summary
Constructor | Description | |
---|---|---|
TokenType() |
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.
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:
Returns:
values
public static Collection
Gets known TokenType values.
Returns:
Applies to
Azure SDK for Java
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for