Class TokenStore
java.lang.Object
com.azure.resourcemanager.appservice.models.TokenStore
The configuration settings of the token store.
-
Constructor Summary
-
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>.Get the fileSystem property: The configuration settings of the storage of the tokens if a file system is used.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>.withFileSystem
(FileSystemTokenStore fileSystem) Set the fileSystem property: The configuration settings of the storage of the tokens if a file system is used.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.
-
Constructor Details
-
TokenStore
public TokenStore()
-
-
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.
-
fileSystem
Get the fileSystem property: The configuration settings of the storage of the tokens if a file system is used.- Returns:
- the fileSystem value.
-
withFileSystem
Set the fileSystem property: The configuration settings of the storage of the tokens if a file system is used.- Parameters:
fileSystem
- the fileSystem 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.
-