Class TokenStore
java.lang.Object
com.azure.resourcemanager.appcontainers.models.TokenStore
- All Implemented Interfaces:
com.azure.json.JsonSerializable<TokenStore>
The configuration settings of the token store.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the azureBlobStorage property: The configuration settings of the storage of the tokens if blob storage is used.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>.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
validate()
Validates the instance.withAzureBlobStorage
(BlobStorageTokenStore azureBlobStorage) Set the azureBlobStorage property: The configuration settings of the storage of the tokens if blob storage is used.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>.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
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
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
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
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
Get the azureBlobStorage property: The configuration settings of the storage of the tokens if blob storage is used.- Returns:
- the azureBlobStorage value.
-
withAzureBlobStorage
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
- Specified by:
toJson
in interfacecom.azure.json.JsonSerializable<TokenStore>
- Throws:
IOException
-
fromJson
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.
-