java.lang.Object
com.azure.resourcemanager.appcontainers.models.TokenStore
All Implemented Interfaces:
com.azure.json.JsonSerializable<TokenStore>

public final class TokenStore extends Object implements com.azure.json.JsonSerializable<TokenStore>
The configuration settings of the token store.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Creates an instance of TokenStore class.
  • Method Summary

    Modifier and Type
    Method
    Description
    Get the azureBlobStorage property: The configuration settings of the storage of the tokens if blob storage is used.
    Get the enabled property: <code>true</code> to durably store platform-specific security tokens that are obtained during login flows; otherwise, <code>false</code>.
    static TokenStore
    fromJson(com.azure.json.JsonReader jsonReader)
    Reads an instance of TokenStore from the JsonReader.
    com.azure.json.JsonWriter
    toJson(com.azure.json.JsonWriter jsonWriter)
    Get the tokenRefreshExtensionHours property: The number of hours after session token expiration that a session token can be used to call the token refresh API.
    void
    Validates the instance.
    Set the azureBlobStorage property: The configuration settings of the storage of the tokens if blob storage is used.
    Set the enabled property: <code>true</code> to durably store platform-specific security tokens that are obtained during login flows; otherwise, <code>false</code>.
    withTokenRefreshExtensionHours(Double tokenRefreshExtensionHours)
    Set the tokenRefreshExtensionHours property: The number of hours after session token expiration that a session token can be used to call the token refresh API.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface com.azure.json.JsonSerializable

    toJson, toJson, toJsonBytes, toJsonString
  • Constructor Details

    • TokenStore

      public TokenStore()
      Creates an instance of TokenStore class.
  • Method Details

    • enabled

      public Boolean enabled()
      Get the enabled property: <code>true</code> to durably store platform-specific security tokens that are obtained during login flows; otherwise, <code>false</code>. The default is <code>false</code>.
      Returns:
      the enabled value.
    • withEnabled

      public TokenStore withEnabled(Boolean enabled)
      Set the enabled property: <code>true</code> to durably store platform-specific security tokens that are obtained during login flows; otherwise, <code>false</code>. The default is <code>false</code>.
      Parameters:
      enabled - the enabled value to set.
      Returns:
      the TokenStore object itself.
    • tokenRefreshExtensionHours

      public Double tokenRefreshExtensionHours()
      Get the tokenRefreshExtensionHours property: The number of hours after session token expiration that a session token can be used to call the token refresh API. The default is 72 hours.
      Returns:
      the tokenRefreshExtensionHours value.
    • withTokenRefreshExtensionHours

      public TokenStore withTokenRefreshExtensionHours(Double tokenRefreshExtensionHours)
      Set the tokenRefreshExtensionHours property: The number of hours after session token expiration that a session token can be used to call the token refresh API. The default is 72 hours.
      Parameters:
      tokenRefreshExtensionHours - the tokenRefreshExtensionHours value to set.
      Returns:
      the TokenStore object itself.
    • azureBlobStorage

      public BlobStorageTokenStore azureBlobStorage()
      Get the azureBlobStorage property: The configuration settings of the storage of the tokens if blob storage is used.
      Returns:
      the azureBlobStorage value.
    • withAzureBlobStorage

      public TokenStore withAzureBlobStorage(BlobStorageTokenStore azureBlobStorage)
      Set the azureBlobStorage property: The configuration settings of the storage of the tokens if blob storage is used.
      Parameters:
      azureBlobStorage - the azureBlobStorage value to set.
      Returns:
      the TokenStore object itself.
    • validate

      public void validate()
      Validates the instance.
      Throws:
      IllegalArgumentException - thrown if the instance is not valid.
    • toJson

      public com.azure.json.JsonWriter toJson(com.azure.json.JsonWriter jsonWriter) throws IOException
      Specified by:
      toJson in interface com.azure.json.JsonSerializable<TokenStore>
      Throws:
      IOException
    • fromJson

      public static TokenStore fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      Reads an instance of TokenStore from the JsonReader.
      Parameters:
      jsonReader - The JsonReader being read.
      Returns:
      An instance of TokenStore if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
      Throws:
      IOException - If an error occurs while reading the TokenStore.