Class BlobGetUserDelegationKeyOptions
java.lang.Object
com.azure.storage.blob.options.BlobGetUserDelegationKeyOptions
Extended options that may be passed when getting a user delegation key for a storage account.
-
Constructor Summary
ConstructorsConstructorDescriptionBlobGetUserDelegationKeyOptions(OffsetDateTime expiresOn) Creates a new instance ofBlobGetUserDelegationKeyOptions. -
Method Summary
Modifier and TypeMethodDescriptionGets the tenant ID of the user to whom the delegation key is issued in Azure AD.Gets the expiration of the key's validity.Gets the start time of the key's validity.setDelegatedUserTenantId(String delegatedUserTenantId) Optional.setStartsOn(OffsetDateTime startsOn) Optional.
-
Constructor Details
-
BlobGetUserDelegationKeyOptions
Creates a new instance ofBlobGetUserDelegationKeyOptions.- Parameters:
expiresOn- Expiration of the key's validity. The time should be specified in UTC.- Throws:
NullPointerException- IfexpiresOnis null.
-
-
Method Details
-
getExpiresOn
Gets the expiration of the key's validity.- Returns:
- The expiration time in UTC.
-
setStartsOn
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
BlobGetUserDelegationKeyOptionsobject.
-
getStartsOn
Gets the start time of the key's validity.- Returns:
- The start time in UTC.
-
setDelegatedUserTenantId
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
BlobGetUserDelegationKeyOptionsobject.
-
getDelegatedUserTenantId
Gets the tenant ID of the user to whom the delegation key is issued in Azure AD.- Returns:
- The tenant ID.
-