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