DataLakeServiceSasSignatureValues Class
- java.
lang. Object - com.
azure. storage. file. datalake. sas. DataLakeServiceSasSignatureValues
- com.
public final class DataLakeServiceSasSignatureValues
Used to initialize parameters for a Shared Access Signature (SAS) for an Azure Data Lake Storage service. Once all the values here are set, use the appropriate SAS generation method on the desired file system/path client to obtain a representation of the SAS which can then be applied to a new client using the .sasToken(String) method on the desired client builder.
Constructor Summary
Constructor | Description |
---|---|
DataLakeServiceSasSignatureValues(String identifier) |
Creates an object with the specified identifier. |
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 |
Method Summary
Methods inherited from java.lang.Object
Constructor Details
DataLakeServiceSasSignatureValues
public DataLakeServiceSasSignatureValues(String identifier)
Creates an object with the specified identifier. NOTE: Identifier can not be used for a UserDelegationKey SAS.
Parameters:
DataLakeServiceSasSignatureValues
public DataLakeServiceSasSignatureValues(OffsetDateTime expiryTime, FileSystemSasPermission permissions)
Creates an object with the specified expiry time and permissions
Parameters:
DataLakeServiceSasSignatureValues
public DataLakeServiceSasSignatureValues(OffsetDateTime expiryTime, PathSasPermission permissions)
Creates an object with the specified expiry time and permissions
Parameters:
Method Details
getAgentObjectId
public String getAgentObjectId()
Returns:
getCacheControl
public String getCacheControl()
Returns:
getContentDisposition
public String getContentDisposition()
Returns:
getContentEncoding
public String getContentEncoding()
Returns:
getContentLanguage
public String getContentLanguage()
Returns:
getContentType
public String getContentType()
Returns:
getCorrelationId
public String getCorrelationId()
Returns:
getEncryptionScope
public String getEncryptionScope()
Get the encryptionScope property: The name of the encryption scope under which the file system is encrypted.
Returns:
getExpiryTime
public OffsetDateTime getExpiryTime()
Returns:
getIdentifier
public String getIdentifier()
Returns:
getPermissions
public String getPermissions()
Returns:
getPreauthorizedAgentObjectId
public String getPreauthorizedAgentObjectId()
Returns:
getProtocol
public SasProtocol getProtocol()
Returns:
getSasIpRange
public SasIpRange getSasIpRange()
Returns:
getStartTime
public OffsetDateTime getStartTime()
Returns:
getVersion
public String getVersion()
Returns:
setAgentObjectId
public 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.
Parameters:
Returns:
setCacheControl
public DataLakeServiceSasSignatureValues setCacheControl(String cacheControl)
Sets the cache-control header for the SAS.
Parameters:
Returns:
setContentDisposition
public DataLakeServiceSasSignatureValues setContentDisposition(String contentDisposition)
Sets the content-disposition header for the SAS.
Parameters:
Returns:
setContentEncoding
public DataLakeServiceSasSignatureValues setContentEncoding(String contentEncoding)
Sets the content-encoding header for the SAS.
Parameters:
Returns:
setContentLanguage
public DataLakeServiceSasSignatureValues setContentLanguage(String contentLanguage)
Sets the content-language header for the SAS.
Parameters:
Returns:
setContentType
public DataLakeServiceSasSignatureValues setContentType(String contentType)
Sets the content-type header for the SAS.
Parameters:
Returns:
setCorrelationId
public DataLakeServiceSasSignatureValues setCorrelationId(String correlationId)
Sets the correlation id value for the SAS.
Note: This parameter is only valid for user delegation SAS.
Parameters:
Returns:
setEncryptionScope
public DataLakeServiceSasSignatureValues setEncryptionScope(String encryptionScope)
Set the encryptionScope property: The name of the encryption scope under which the file system is encrypted.
Parameters:
Returns:
setExpiryTime
public DataLakeServiceSasSignatureValues setExpiryTime(OffsetDateTime expiryTime)
Sets the time after which the SAS will no longer work.
Parameters:
Returns:
setIdentifier
public DataLakeServiceSasSignatureValues setIdentifier(String identifier)
Sets the name of the access policy on the file system this SAS references if any. Please see here for more information.
Parameters:
Returns:
setPermissions
public DataLakeServiceSasSignatureValues setPermissions(FileSystemSasPermission permissions)
Sets the File System permissions allowed by the SAS.
Parameters:
Returns:
setPermissions
public DataLakeServiceSasSignatureValues setPermissions(PathSasPermission permissions)
Sets the Path permissions allowed by the SAS.
Parameters:
Returns:
setPreauthorizedAgentObjectId
public 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.
Parameters:
Returns:
setProtocol
public DataLakeServiceSasSignatureValues setProtocol(SasProtocol protocol)
Sets the SasProtocol which determines the protocols allowed by the SAS.
Parameters:
Returns:
setSasIpRange
public DataLakeServiceSasSignatureValues setSasIpRange(SasIpRange sasIpRange)
Sets the SasIpRange which determines the IP ranges that are allowed to use the SAS.
Parameters:
Returns:
setStartTime
public DataLakeServiceSasSignatureValues setStartTime(OffsetDateTime startTime)
Sets when the SAS will take effect.
Parameters:
Returns:
setVersion
@Deprecated
public DataLakeServiceSasSignatureValues setVersion(String version)
Deprecated
Sets the version of the service this SAS will target. If not specified, it will default to the version targeted by the library.
Parameters:
Returns:
Applies to
Azure SDK for Java