public final class TokenStore extends Object
| Constructor and Description |
|---|
TokenStore() |
| Modifier and Type | Method and Description |
|---|---|
BlobStorageTokenStore |
azureBlobStorage()
Get the azureBlobStorage property: The configuration settings of the storage of the tokens if blob storage is
used.
|
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>.
|
FileSystemTokenStore |
fileSystem()
Get the fileSystem property: The configuration settings of the storage of the tokens if a file system is used.
|
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.
|
void |
validate()
Validates the instance.
|
TokenStore |
withAzureBlobStorage(BlobStorageTokenStore azureBlobStorage)
Set the azureBlobStorage property: The configuration settings of the storage of the tokens if blob storage is
used.
|
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>.
|
TokenStore |
withFileSystem(FileSystemTokenStore fileSystem)
Set the fileSystem property: The configuration settings of the storage of the tokens if a file system is used.
|
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.
|
public Boolean enabled()
public TokenStore withEnabled(Boolean enabled)
enabled - the enabled value to set.public Double tokenRefreshExtensionHours()
public TokenStore withTokenRefreshExtensionHours(Double tokenRefreshExtensionHours)
tokenRefreshExtensionHours - the tokenRefreshExtensionHours value to set.public FileSystemTokenStore fileSystem()
public TokenStore withFileSystem(FileSystemTokenStore fileSystem)
fileSystem - the fileSystem value to set.public BlobStorageTokenStore azureBlobStorage()
public TokenStore withAzureBlobStorage(BlobStorageTokenStore azureBlobStorage)
azureBlobStorage - the azureBlobStorage value to set.public void validate()
IllegalArgumentException - thrown if the instance is not valid.Copyright © 2021 Microsoft Corporation. All rights reserved.