public final class DataLakeServiceSasSignatureValues extends Object
| Constructor and Description |
|---|
DataLakeServiceSasSignatureValues(OffsetDateTime expiryTime,
FileSystemSasPermission permissions)
Creates an object with the specified expiry time and permissions
|
DataLakeServiceSasSignatureValues(OffsetDateTime expiryTime,
PathSasPermission permissions)
Creates an object with the specified expiry time and permissions
|
DataLakeServiceSasSignatureValues(String identifier)
Creates an object with the specified identifier.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getAgentObjectId() |
String |
getCacheControl() |
String |
getContentDisposition() |
String |
getContentEncoding() |
String |
getContentLanguage() |
String |
getContentType() |
String |
getCorrelationId() |
OffsetDateTime |
getExpiryTime() |
String |
getIdentifier() |
String |
getPermissions() |
String |
getPreauthorizedAgentObjectId() |
com.azure.storage.common.sas.SasProtocol |
getProtocol() |
com.azure.storage.common.sas.SasIpRange |
getSasIpRange() |
OffsetDateTime |
getStartTime() |
String |
getVersion() |
DataLakeServiceSasSignatureValues |
setAgentObjectId(String agentObjectId)
Sets the AAD object ID of a user assumed to be unauthorized by the owner of the user delegation key to perform
the action granted by the SAS token.
|
DataLakeServiceSasSignatureValues |
setCacheControl(String cacheControl)
Sets the cache-control header for the SAS.
|
DataLakeServiceSasSignatureValues |
setContentDisposition(String contentDisposition)
Sets the content-disposition header for the SAS.
|
DataLakeServiceSasSignatureValues |
setContentEncoding(String contentEncoding)
Sets the content-encoding header for the SAS.
|
DataLakeServiceSasSignatureValues |
setContentLanguage(String contentLanguage)
Sets the content-language header for the SAS.
|
DataLakeServiceSasSignatureValues |
setContentType(String contentType)
Sets the content-type header for the SAS.
|
DataLakeServiceSasSignatureValues |
setCorrelationId(String correlationId)
Sets the correlation id value for the SAS.
|
DataLakeServiceSasSignatureValues |
setExpiryTime(OffsetDateTime expiryTime)
Sets the time after which the SAS will no longer work.
|
DataLakeServiceSasSignatureValues |
setIdentifier(String identifier)
Sets the name of the access policy on the file system this SAS references if any.
|
DataLakeServiceSasSignatureValues |
setPermissions(FileSystemSasPermission permissions)
Sets the File System permissions allowed by the SAS.
|
DataLakeServiceSasSignatureValues |
setPermissions(PathSasPermission permissions)
Sets the Path permissions allowed by the SAS.
|
DataLakeServiceSasSignatureValues |
setPreauthorizedAgentObjectId(String preauthorizedAgentObjectId)
Sets the AAD object ID of a user assumed to be authorized by the owner of the user delegation key to perform the
action granted by the SAS token.
|
DataLakeServiceSasSignatureValues |
setProtocol(com.azure.storage.common.sas.SasProtocol protocol)
Sets the
SasProtocol which determines the protocols allowed by the SAS. |
DataLakeServiceSasSignatureValues |
setSasIpRange(com.azure.storage.common.sas.SasIpRange sasIpRange)
Sets the
SasIpRange which determines the IP ranges that are allowed to use the SAS. |
DataLakeServiceSasSignatureValues |
setStartTime(OffsetDateTime startTime)
Sets when the SAS will take effect.
|
DataLakeServiceSasSignatureValues |
setVersion(String version)
Deprecated.
The version is set to the latest version of sas. Users should stop calling this API as it is now
treated as a no-op.
|
public DataLakeServiceSasSignatureValues(OffsetDateTime expiryTime, FileSystemSasPermission permissions)
expiryTime - The time after which the SAS will no longer work.permissions - FileSystemSasPermission allowed by the SAS.public DataLakeServiceSasSignatureValues(OffsetDateTime expiryTime, PathSasPermission permissions)
expiryTime - When the SAS will no longer workpermissions - PathSasPermission allowed by the SASpublic DataLakeServiceSasSignatureValues(String identifier)
UserDelegationKey SAS.identifier - Name of the access policypublic String getVersion()
@Deprecated public DataLakeServiceSasSignatureValues setVersion(String version)
version - Version to targetpublic com.azure.storage.common.sas.SasProtocol getProtocol()
SasProtocol which determines the protocols allowed by the SAS.public DataLakeServiceSasSignatureValues setProtocol(com.azure.storage.common.sas.SasProtocol protocol)
SasProtocol which determines the protocols allowed by the SAS.protocol - Protocol for the SASpublic OffsetDateTime getStartTime()
public DataLakeServiceSasSignatureValues setStartTime(OffsetDateTime startTime)
startTime - When the SAS takes effectpublic OffsetDateTime getExpiryTime()
public DataLakeServiceSasSignatureValues setExpiryTime(OffsetDateTime expiryTime)
expiryTime - When the SAS will no longer workpublic String getPermissions()
FileSystemSasPermission or
PathSasPermission depending on the resource being accessed for help determining the permissions allowed.public DataLakeServiceSasSignatureValues setPermissions(PathSasPermission permissions)
permissions - PathSasPermissionNullPointerException - if permissions is null.public DataLakeServiceSasSignatureValues setPermissions(FileSystemSasPermission permissions)
permissions - FileSystemSasPermissionNullPointerException - if permissions is null.public com.azure.storage.common.sas.SasIpRange getSasIpRange()
SasIpRange which determines the IP ranges that are allowed to use the SAS.public DataLakeServiceSasSignatureValues setSasIpRange(com.azure.storage.common.sas.SasIpRange sasIpRange)
SasIpRange which determines the IP ranges that are allowed to use the SAS.sasIpRange - Allowed IP range to setpublic String getIdentifier()
public DataLakeServiceSasSignatureValues setIdentifier(String identifier)
identifier - Name of the access policypublic String getCacheControl()
public DataLakeServiceSasSignatureValues setCacheControl(String cacheControl)
cacheControl - Cache-Control header valuepublic String getContentDisposition()
public DataLakeServiceSasSignatureValues setContentDisposition(String contentDisposition)
contentDisposition - Content-Disposition header valuepublic String getContentEncoding()
public DataLakeServiceSasSignatureValues setContentEncoding(String contentEncoding)
contentEncoding - Content-Encoding header valuepublic String getContentLanguage()
public DataLakeServiceSasSignatureValues setContentLanguage(String contentLanguage)
contentLanguage - Content-Language header valuepublic String getContentType()
public DataLakeServiceSasSignatureValues setContentType(String contentType)
contentType - Content-Type header valuepublic String getPreauthorizedAgentObjectId()
public DataLakeServiceSasSignatureValues setPreauthorizedAgentObjectId(String preauthorizedAgentObjectId)
preauthorizedAgentObjectId - The AAD object ID of a user assumed to be authorized by the owner of the user
delegation key to perform the action granted by the SAS token. The service will validate the SAS token and
ensure that the owner of the user delegation key has the required permissions before granting access but no
additional permission check for the agent object id will be performed.public String getAgentObjectId()
public DataLakeServiceSasSignatureValues setAgentObjectId(String agentObjectId)
agentObjectId - The AAD object ID of a user assumed to be unauthorized by the owner of the user delegation
key to perform the action granted by the SAS token. The service will validate the SAS token and ensure that the
owner of the user delegation key has the required permissions before granting access and the service will
perform an additional POSIX ACL check to determine if this user is authorized to perform the requested operation.public String getCorrelationId()
public DataLakeServiceSasSignatureValues setCorrelationId(String correlationId)
Note: This parameter is only valid for user delegation SAS.
correlationId - A correlation ID used to correlate the storage audit logs with the audit logs used by the
principal generating and distributing SAS.Copyright © 2021 Microsoft Corporation. All rights reserved.