TableSasSignatureValues Class
- java.
lang. Object - com.
azure. data. tables. sas. TableSasSignatureValues
- com.
public final class TableSasSignatureValues
Used to initialize parameters for a Shared Access Signature (SAS) for the Azure Table Storage service. Once all the values here are set, use the generateSas()
method on the desired Table 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 |
---|---|
TableSasSignatureValues(String identifier) |
Creates an object with the specified identifier. |
TableSasSignatureValues(OffsetDateTime expiryTime, TableSasPermission permissions) |
Creates an object with the specified expiry time and permissions. |
Method Summary
Modifier and Type | Method and Description |
---|---|
String |
getEndPartitionKey()
Get the maximum partition key accessible with this shared access signature. |
String |
getEndRowKey()
Get the maximum row key accessible with this shared access signature. |
Offset |
getExpiryTime()
Returns the time after which the SAS will no longer work. |
String |
getIdentifier()
Returns the name of the access policy on the table this SAS references if any. |
String |
getPermissions()
Returns the permissions string allowed by the SAS. |
Table |
getProtocol()
Returns the TableSasProtocol which determines the protocols allowed by the SAS. |
Table |
getSasIpRange()
Returns the TableSasIpRange which determines the IP ranges that are allowed to use the SAS. |
String |
getStartPartitionKey()
Get the minimum partition key accessible with this shared access signature. |
String |
getStartRowKey()
Get the minimum row key accessible with this shared access signature. |
Offset |
getStartTime()
Returns when the SAS will take effect. |
String |
getVersion()
Returns the version of the service this SAS will target. |
Table |
setEndPartitionKey(String endPartitionKey)
Set the maximum partition key accessible with this shared access signature. |
Table |
setEndRowKey(String endRowKey)
Set the maximum row key accessible with this shared access signature. |
Table |
setExpiryTime(OffsetDateTime expiryTime)
Sets the time after which the SAS will no longer work. |
Table |
setIdentifier(String identifier)
Sets the name of the access policy on the table this SAS references if any. |
Table |
setPermissions(TableSasPermission permissions)
Sets the permissions string allowed by the SAS. |
Table |
setProtocol(TableSasProtocol protocol)
Sets the TableSasProtocol which determines the protocols allowed by the SAS. |
Table |
setSasIpRange(TableSasIpRange sasIpRange)
Sets the TableSasIpRange which determines the IP ranges that are allowed to use the SAS. |
Table |
setStartPartitionKey(String startPartitionKey)
Set the minimum partition key accessible with this shared access signature. |
Table |
setStartRowKey(String startRowKey)
Set the minimum row key accessible with this shared access signature. |
Table |
setStartTime(OffsetDateTime startTime)
Sets when the SAS will take effect. |
Table |
setVersion(String version)
Sets the version of the service this SAS will target. |
Methods inherited from java.lang.Object
Constructor Details
TableSasSignatureValues
public TableSasSignatureValues(String identifier)
Creates an object with the specified identifier.
Parameters:
TableSasSignatureValues
public TableSasSignatureValues(OffsetDateTime expiryTime, TableSasPermission permissions)
Creates an object with the specified expiry time and permissions.
Parameters:
Method Details
getEndPartitionKey
public String getEndPartitionKey()
Get the maximum partition key accessible with this shared access signature. Key values are inclusive. If omitted, there is no upper bound on the table entities that can be accessed. If provided, it must accompany an ending row key that can be set via setEndRowKey()
.
Returns:
getEndRowKey
public String getEndRowKey()
Get the maximum row key accessible with this shared access signature. Key values are inclusive. If omitted, there is no upper bound on the table entities that can be accessed. If provided, it must accompany an ending row key that can be set via setEndPartitionKey()
.
Returns:
getExpiryTime
public OffsetDateTime getExpiryTime()
Returns the time after which the SAS will no longer work.
Returns:
getIdentifier
public String getIdentifier()
Returns the name of the access policy on the table this SAS references if any. Please see here for more information.
Returns:
getPermissions
public String getPermissions()
Returns the permissions string allowed by the SAS. Please refer to TableSasPermission for help determining the permissions allowed.
Returns:
getProtocol
public TableSasProtocol getProtocol()
Returns the TableSasProtocol which determines the protocols allowed by the SAS.
Returns:
getSasIpRange
public TableSasIpRange getSasIpRange()
Returns the TableSasIpRange which determines the IP ranges that are allowed to use the SAS.
Returns:
getStartPartitionKey
public String getStartPartitionKey()
Get the minimum partition key accessible with this shared access signature. Key values are inclusive. If omitted, there is no lower bound on the table entities that can be accessed. If provided, it must accompany a start row key that can be set via setStartRowKey()
.
Returns:
getStartRowKey
public String getStartRowKey()
Get the minimum row key accessible with this shared access signature. Key values are inclusive. If omitted, there is no lower bound on the table entities that can be accessed. If provided, it must accompany a start row key that can be set via setStartPartitionKey()
.
Returns:
getStartTime
public OffsetDateTime getStartTime()
Returns when the SAS will take effect.
Returns:
getVersion
public String getVersion()
Returns the version of the service this SAS will target. If not specified, it will default to the version targeted by the library.
Returns:
setEndPartitionKey
public TableSasSignatureValues setEndPartitionKey(String endPartitionKey)
Set the maximum partition key accessible with this shared access signature. Key values are inclusive. If omitted, there is no upper bound on the table entities that can be accessed. If provided, it must accompany an ending row key that can be set via setEndRowKey()
.
Parameters:
Returns:
setEndRowKey
public TableSasSignatureValues setEndRowKey(String endRowKey)
Set the maximum row key accessible with this shared access signature. Key values are inclusive. If omitted, there is no upper bound on the table entities that can be accessed. If provided, it must accompany an ending row key that can be set via setEndPartitionKey()
.
Parameters:
Returns:
setExpiryTime
public TableSasSignatureValues setExpiryTime(OffsetDateTime expiryTime)
Sets the time after which the SAS will no longer work.
Parameters:
Returns:
setIdentifier
public TableSasSignatureValues setIdentifier(String identifier)
Sets the name of the access policy on the table this SAS references if any. Please see here for more information.
Parameters:
Returns:
setPermissions
public TableSasSignatureValues setPermissions(TableSasPermission permissions)
Sets the permissions string allowed by the SAS. Please refer to TableSasPermission for help constructing the permissions string.
Parameters:
Returns:
setProtocol
public TableSasSignatureValues setProtocol(TableSasProtocol protocol)
Sets the TableSasProtocol which determines the protocols allowed by the SAS.
Parameters:
Returns:
setSasIpRange
public TableSasSignatureValues setSasIpRange(TableSasIpRange sasIpRange)
Sets the TableSasIpRange which determines the IP ranges that are allowed to use the SAS.
Parameters:
Returns:
setStartPartitionKey
public TableSasSignatureValues setStartPartitionKey(String startPartitionKey)
Set the minimum partition key accessible with this shared access signature. Key values are inclusive. If omitted, there is no lower bound on the table entities that can be accessed. If provided, it must accompany a start row key that can be set via setStartRowKey()
.
Parameters:
Returns:
setStartRowKey
public TableSasSignatureValues setStartRowKey(String startRowKey)
Set the minimum row key accessible with this shared access signature. Key values are inclusive. If omitted, there is no lower bound on the table entities that can be accessed. If provided, it must accompany a start row key that can be set via setStartPartitionKey()
.
Parameters:
Returns:
setStartTime
public TableSasSignatureValues setStartTime(OffsetDateTime startTime)
Sets when the SAS will take effect.
Parameters:
Returns:
setVersion
public TableSasSignatureValues setVersion(String version)
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