Share via


TokenStore Class

  • java.lang.Object
    • com.azure.resourcemanager.appservice.models.TokenStore

Implements

public final class TokenStore
implements JsonSerializable<TokenStore>

The configuration settings of the token store.

Constructor Summary

Constructor Description
TokenStore()

Creates an instance of TokenStore class.

Method Summary

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: true to durably store platform-specific security tokens that are obtained during login flows; otherwise, false.

FileSystemTokenStore fileSystem()

Get the fileSystem property: The configuration settings of the storage of the tokens if a file system is used.

static TokenStore fromJson(JsonReader jsonReader)

Reads an instance of TokenStore from the JsonReader.

JsonWriter toJson(JsonWriter jsonWriter)
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: true to durably store platform-specific security tokens that are obtained during login flows; otherwise, false.

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.

Methods inherited from java.lang.Object

Constructor Details

TokenStore

public TokenStore()

Creates an instance of TokenStore class.

Method Details

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.

enabled

public Boolean enabled()

Get the enabled property: true to durably store platform-specific security tokens that are obtained during login flows; otherwise, false. The default is false.

Returns:

the enabled value.

fileSystem

public FileSystemTokenStore fileSystem()

Get the fileSystem property: The configuration settings of the storage of the tokens if a file system is used.

Returns:

the fileSystem value.

fromJson

public static TokenStore fromJson(JsonReader jsonReader)

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.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

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.

validate

public void validate()

Validates the instance.

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.

withEnabled

public TokenStore withEnabled(Boolean enabled)

Set the enabled property: true to durably store platform-specific security tokens that are obtained during login flows; otherwise, false. The default is false.

Parameters:

enabled - the enabled value to set.

Returns:

the TokenStore object itself.

withFileSystem

public TokenStore withFileSystem(FileSystemTokenStore fileSystem)

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.

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.

Applies to