Class DataLakeGetUserDelegationKeyOptions
java.lang.Object
com.azure.storage.file.datalake.options.DataLakeGetUserDelegationKeyOptions
Extended options that may be passed when getting a user delegation key for a storage account.
-
Constructor Summary
Constructors -
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
-
DataLakeGetUserDelegationKeyOptions
Creates a new instance ofDataLakeGetUserDelegationKeyOptions.- 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
DataLakeGetUserDelegationKeyOptionsobject.
-
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
DataLakeGetUserDelegationKeyOptionsobject.
-
getDelegatedUserTenantId
Gets the tenant ID of the user to whom the delegation key is issued in Azure AD.- Returns:
- The tenant ID.
-