次の方法で共有


BlobGetUserDelegationKeyOptions Class

  • java.lang.Object
    • com.azure.storage.blob.options.BlobGetUserDelegationKeyOptions

public class BlobGetUserDelegationKeyOptions

Extended options that may be passed when getting a user delegation key for a storage account.

Constructor Summary

Constructor Description
BlobGetUserDelegationKeyOptions(OffsetDateTime expiresOn)

Creates a new instance of BlobGetUserDelegationKeyOptions.

Method Summary

Modifier and Type Method and Description
String getDelegatedUserTenantId()

Gets the tenant ID of the user to whom the delegation key is issued in Azure AD.

OffsetDateTime getExpiresOn()

Gets the expiration of the key's validity.

OffsetDateTime getStartsOn()

Gets the start time of the key's validity.

BlobGetUserDelegationKeyOptions setDelegatedUserTenantId(String delegatedUserTenantId)

Optional.

BlobGetUserDelegationKeyOptions setStartsOn(OffsetDateTime startsOn)

Optional.

Methods inherited from java.lang.Object

Constructor Details

BlobGetUserDelegationKeyOptions

public BlobGetUserDelegationKeyOptions(OffsetDateTime expiresOn)

Creates a new instance of BlobGetUserDelegationKeyOptions.

Parameters:

expiresOn - Expiration of the key's validity. The time should be specified in UTC.

Method Details

getDelegatedUserTenantId

public String getDelegatedUserTenantId()

Gets the tenant ID of the user to whom the delegation key is issued in Azure AD.

Returns:

The tenant ID.

getExpiresOn

public OffsetDateTime getExpiresOn()

Gets the expiration of the key's validity.

Returns:

The expiration time in UTC.

getStartsOn

public OffsetDateTime getStartsOn()

Gets the start time of the key's validity.

Returns:

The start time in UTC.

setDelegatedUserTenantId

public BlobGetUserDelegationKeyOptions setDelegatedUserTenantId(String delegatedUserTenantId)

Optional. Sets the tenant ID of the user to whom the delegation key is issued in Azure AD.

Parameters:

delegatedUserTenantId - The tenant ID.

Returns:

setStartsOn

public BlobGetUserDelegationKeyOptions setStartsOn(OffsetDateTime startsOn)

Optional. Sets the start time of the key's validity. Null indicates the key is valid immediately.

If you set the start time to the current time, failures might occur intermittently for the first few minutes. This is due to different machines having slightly different current times, known as clock skew.

Parameters:

startsOn - The start time in UTC.

Returns:

Applies to