TableAccountSasSignatureValues Class
- java.
lang. Object - com.
azure. data. tables. sas. TableAccountSasSignatureValues
- com.
public final class TableAccountSasSignatureValues
Used to initialize parameters for a Shared Access Signature (SAS) for an Azure Storage account. Once all the values here are set, use the generateAccountSas()
method on the desired service 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 |
---|---|
TableAccountSasSignatureValues(OffsetDateTime expiryTime, TableAccountSasPermission permissions, TableAccountSasService services, TableAccountSasResourceType resourceTypes) |
Initializes a new TableAccountSasSignatureValues object. |
Method Summary
Modifier and Type | Method and Description |
---|---|
Offset |
getExpiryTime()
Get The time after which the SAS will no longer work. |
String |
getPermissions()
Gets the operations the SAS user may perform. |
Table |
getProtocol()
Get the TableSasProtocol which determines the HTTP protocol that will be used. |
String |
getResourceTypes()
Get the resource types accessible with this SAS. |
Table |
getSasIpRange()
Get the TableSasIpRange which determines the IP ranges that are allowed to use the SAS. |
String |
getServices()
Get the services accessible with this SAS. |
Offset |
getStartTime()
Get when the SAS will take effect. |
String |
getVersion()
Get the service version that is targeted, if |
Table |
setProtocol(TableSasProtocol protocol)
Sets the TableSasProtocol which determines the HTTP protocol that will be used. |
Table |
setSasIpRange(TableSasIpRange sasIpRange)
Sets the TableSasIpRange which determines the IP ranges that are allowed to use the SAS. |
Table |
setStartTime(OffsetDateTime startTime)
Sets when the SAS will take effect. |
Table |
setVersion(String version)
Sets the service version that is targeted. |
Methods inherited from java.lang.Object
Constructor Details
TableAccountSasSignatureValues
public TableAccountSasSignatureValues(OffsetDateTime expiryTime, TableAccountSasPermission permissions, TableAccountSasService services, TableAccountSasResourceType resourceTypes)
Initializes a new TableAccountSasSignatureValues object.
Parameters:
Method Details
getExpiryTime
public OffsetDateTime getExpiryTime()
Get The time after which the SAS will no longer work.
Returns:
getPermissions
public String getPermissions()
Gets the operations the SAS user may perform. Please refer to TableAccountSasPermission to help determine which permissions are allowed.
Returns:
getProtocol
public TableSasProtocol getProtocol()
Get the TableSasProtocol which determines the HTTP protocol that will be used.
Returns:
getResourceTypes
public String getResourceTypes()
Get the resource types accessible with this SAS. Please refer to TableAccountSasResourceType to help determine the resource types that are accessible.
Returns:
getSasIpRange
public TableSasIpRange getSasIpRange()
Get the TableSasIpRange which determines the IP ranges that are allowed to use the SAS.
Returns:
getServices
public String getServices()
Get the services accessible with this SAS. Please refer to TableAccountSasService to help determine which services are accessible.
Returns:
getStartTime
public OffsetDateTime getStartTime()
Get when the SAS will take effect.
Returns:
getVersion
public String getVersion()
Get the service version that is targeted, if null
or empty the latest service version targeted by the library will be used.
Returns:
setProtocol
public TableAccountSasSignatureValues setProtocol(TableSasProtocol protocol)
Sets the TableSasProtocol which determines the HTTP protocol that will be used.
Parameters:
Returns:
setSasIpRange
public TableAccountSasSignatureValues setSasIpRange(TableSasIpRange sasIpRange)
Sets the TableSasIpRange which determines the IP ranges that are allowed to use the SAS.
Parameters:
Returns:
setStartTime
public TableAccountSasSignatureValues setStartTime(OffsetDateTime startTime)
Sets when the SAS will take effect.
Parameters:
Returns:
setVersion
public TableAccountSasSignatureValues setVersion(String version)
Sets the service version that is targeted. Leave this null
or empty to target the version used by the library.
Parameters:
Returns:
Applies to
Azure SDK for Java