Class BlobGetUserDelegationKeyOptions

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

public class BlobGetUserDelegationKeyOptions extends Object
Extended options that may be passed when getting a user delegation key for a storage account.
  • Constructor Details

  • Method Details

    • getExpiresOn

      public OffsetDateTime getExpiresOn()
      Gets the expiration of the key's validity.
      Returns:
      The expiration time in UTC.
    • 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:
      The updated BlobGetUserDelegationKeyOptions object.
    • 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:
      The updated BlobGetUserDelegationKeyOptions object.
    • 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.