java.lang.Object
com.azure.core.util.ExpandableStringEnum<TokenType>
com.azure.resourcemanager.containerregistry.models.TokenType

public final class TokenType extends com.azure.core.util.ExpandableStringEnum<TokenType>
The type of Auth token.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final TokenType
    Static value OAuth for TokenType.
    static final TokenType
    Static value PAT for TokenType.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Deprecated.
    Use the fromString(String) factory method.
  • Method Summary

    Modifier and Type
    Method
    Description
    static TokenType
    Creates or finds a TokenType from its string representation.
    Gets known TokenType values.

    Methods inherited from class com.azure.core.util.ExpandableStringEnum

    equals, fromString, hashCode, toString, values

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Field Details

    • PAT

      public static final TokenType PAT
      Static value PAT for TokenType.
    • OAUTH

      public static final TokenType OAUTH
      Static value OAuth for TokenType.
  • Constructor Details

  • 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<TokenType> values()
      Gets known TokenType values.
      Returns:
      known TokenType values.