public final class TableSasSignatureValues extends Object
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 and Description |
|---|
TableSasSignatureValues(OffsetDateTime expiryTime,
TableSasPermission permissions)
Creates an object with the specified expiry time and permissions.
|
TableSasSignatureValues(String identifier)
Creates an object with the specified identifier.
|
| 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.
|
OffsetDateTime |
getExpiryTime() |
String |
getIdentifier() |
String |
getPermissions() |
TableSasProtocol |
getProtocol() |
TableSasIpRange |
getSasIpRange() |
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.
|
OffsetDateTime |
getStartTime() |
String |
getVersion() |
TableSasSignatureValues |
setEndPartitionKey(String endPartitionKey)
Set the maximum partition key accessible with this shared access signature.
|
TableSasSignatureValues |
setEndRowKey(String endRowKey)
Set the maximum row key accessible with this shared access signature.
|
TableSasSignatureValues |
setExpiryTime(OffsetDateTime expiryTime)
Sets the time after which the SAS will no longer work.
|
TableSasSignatureValues |
setIdentifier(String identifier)
Sets the name of the access policy on the table this SAS references if any.
|
TableSasSignatureValues |
setPermissions(TableSasPermission permissions)
Sets the permissions string allowed by the SAS.
|
TableSasSignatureValues |
setProtocol(TableSasProtocol protocol)
Sets the
TableSasProtocol which determines the protocols allowed by the SAS. |
TableSasSignatureValues |
setSasIpRange(TableSasIpRange sasIpRange)
Sets the
TableSasIpRange which determines the IP ranges that are allowed to use the SAS. |
TableSasSignatureValues |
setStartPartitionKey(String startPartitionKey)
Set the minimum partition key accessible with this shared access signature.
|
TableSasSignatureValues |
setStartRowKey(String startRowKey)
Set the minimum row key accessible with this shared access signature.
|
TableSasSignatureValues |
setStartTime(OffsetDateTime startTime)
Sets when the SAS will take effect.
|
TableSasSignatureValues |
setVersion(String version)
Sets the version of the service this SAS will target.
|
public TableSasSignatureValues(OffsetDateTime expiryTime, TableSasPermission permissions)
expiryTime - The time after which the SAS will no longer work.permissions - table permissions allowed by the SAS.public TableSasSignatureValues(String identifier)
identifier - Name of the access policy.public String getVersion()
public TableSasSignatureValues setVersion(String version)
version - Version to targetTableSasSignatureValues object.public TableSasProtocol getProtocol()
TableSasProtocol which determines the protocols allowed by the SAS.public TableSasSignatureValues setProtocol(TableSasProtocol protocol)
TableSasProtocol which determines the protocols allowed by the SAS.protocol - Protocol for the SASTableSasSignatureValues object.public OffsetDateTime getStartTime()
public TableSasSignatureValues setStartTime(OffsetDateTime startTime)
startTime - When the SAS takes effectTableSasSignatureValues object.public OffsetDateTime getExpiryTime()
public TableSasSignatureValues setExpiryTime(OffsetDateTime expiryTime)
expiryTime - When the SAS will no longer workTableSasSignatureValues object.public String getPermissions()
TableSasPermission for help
determining the permissions allowed.public TableSasSignatureValues setPermissions(TableSasPermission permissions)
TableSasPermission for help constructing
the permissions string.permissions - Permissions for the SASTableSasSignatureValues object.NullPointerException - if permissions is null.public TableSasIpRange getSasIpRange()
TableSasIpRange which determines the IP ranges that are allowed to use the SAS.public TableSasSignatureValues setSasIpRange(TableSasIpRange sasIpRange)
TableSasIpRange which determines the IP ranges that are allowed to use the SAS.sasIpRange - Allowed IP range to setTableSasSignatureValues object.public String getIdentifier()
public TableSasSignatureValues setIdentifier(String identifier)
identifier - Name of the access policyTableSasSignatureValues object.public String getStartPartitionKey()
setStartRowKey().public TableSasSignatureValues setStartPartitionKey(String startPartitionKey)
setStartRowKey().startPartitionKey - The start partition key to set.TableSasSignatureValues object.public String getStartRowKey()
setStartPartitionKey().public TableSasSignatureValues setStartRowKey(String startRowKey)
setStartPartitionKey().startRowKey - The start row key to set.TableSasSignatureValues object.public String getEndPartitionKey()
setEndRowKey().public TableSasSignatureValues setEndPartitionKey(String endPartitionKey)
setEndRowKey().endPartitionKey - The end partition key to set.TableSasSignatureValues object.public String getEndRowKey()
setEndPartitionKey().public TableSasSignatureValues setEndRowKey(String endRowKey)
setEndPartitionKey().endRowKey - The end row key to set.TableSasSignatureValues object.Copyright © 2021 Microsoft Corporation. All rights reserved.