Class QueueGetUserDelegationKeyOptions
java.lang.Object
com.azure.storage.queue.models.QueueGetUserDelegationKeyOptions
Extended options that may be passed when getting a user delegation key for a storage account.
-
Constructor Summary
ConstructorsConstructorDescriptionQueueGetUserDelegationKeyOptions(OffsetDateTime expiresOn) Creates a new instance ofQueueGetUserDelegationKeyOptions. -
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
-
QueueGetUserDelegationKeyOptions
Creates a new instance ofQueueGetUserDelegationKeyOptions.- 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
QueueGetUserDelegationKeyOptionsobject.
-
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
QueueGetUserDelegationKeyOptionsobject.
-
getDelegatedUserTenantId
Gets the tenant ID of the user to whom the delegation key is issued in Azure AD.- Returns:
- The tenant ID.
-