BlobGetUserDelegationKeyOptions Class
- java.
lang. Object - com.
azure. storage. blob. options. BlobGetUserDelegationKeyOptions
- com.
public class BlobGetUserDelegationKeyOptions
Extended options that may be passed when getting a user delegation key for a storage account.
Constructor Summary
| Constructor | Description |
|---|---|
| BlobGetUserDelegationKeyOptions(OffsetDateTime expiresOn) |
Creates a new instance of BlobGetUserDelegationKeyOptions. |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
| String |
getDelegatedUserTenantId()
Gets the tenant ID of the user to whom the delegation key is issued in Azure AD. |
|
Offset |
getExpiresOn()
Gets the expiration of the key's validity. |
|
Offset |
getStartsOn()
Gets the start time of the key's validity. |
|
Blob |
setDelegatedUserTenantId(String delegatedUserTenantId)
Optional. |
|
Blob |
setStartsOn(OffsetDateTime startsOn)
Optional. |
Methods inherited from java.lang.Object
Constructor Details
BlobGetUserDelegationKeyOptions
public BlobGetUserDelegationKeyOptions(OffsetDateTime expiresOn)
Creates a new instance of BlobGetUserDelegationKeyOptions.
Parameters:
Method Details
getDelegatedUserTenantId
public String getDelegatedUserTenantId()
Gets the tenant ID of the user to whom the delegation key is issued in Azure AD.
Returns:
getExpiresOn
public OffsetDateTime getExpiresOn()
Gets the expiration of the key's validity.
Returns:
getStartsOn
public OffsetDateTime getStartsOn()
Gets the start time of the key's validity.
Returns:
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:
Returns:
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:
Returns: