public final class TableAccountSasSignatureValues extends Object
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 and Description |
|---|
TableAccountSasSignatureValues(OffsetDateTime expiryTime,
TableAccountSasPermission permissions,
TableAccountSasService services,
TableAccountSasResourceType resourceTypes)
Initializes a new
TableAccountSasSignatureValues object. |
| Modifier and Type | Method and Description |
|---|---|
OffsetDateTime |
getExpiryTime()
Get The time after which the SAS will no longer work.
|
String |
getPermissions()
Gets the operations the SAS user may perform.
|
TableSasProtocol |
getProtocol()
Get the
TableSasProtocol which determines the HTTP protocol that will be used. |
String |
getResourceTypes()
Get the resource types accessible with this SAS.
|
TableSasIpRange |
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.
|
OffsetDateTime |
getStartTime()
Get when the SAS will take effect.
|
String |
getVersion()
Get the service version that is targeted, if
null or empty the latest service version targeted by the
library will be used. |
TableAccountSasSignatureValues |
setProtocol(TableSasProtocol protocol)
Sets the
TableSasProtocol which determines the HTTP protocol that will be used. |
TableAccountSasSignatureValues |
setSasIpRange(TableSasIpRange sasIpRange)
Sets the
TableSasIpRange which determines the IP ranges that are allowed to use the SAS. |
TableAccountSasSignatureValues |
setStartTime(OffsetDateTime startTime)
Sets when the SAS will take effect.
|
TableAccountSasSignatureValues |
setVersion(String version)
Sets the service version that is targeted.
|
public TableAccountSasSignatureValues(OffsetDateTime expiryTime, TableAccountSasPermission permissions, TableAccountSasService services, TableAccountSasResourceType resourceTypes)
TableAccountSasSignatureValues object.expiryTime - The time after which the SAS will no longer work.permissions - account permissions allowed by the SAS.services - account services targeted by the SAS.resourceTypes - account resource types targeted by the SAS.public OffsetDateTime getExpiryTime()
public String getPermissions()
TableAccountSasPermission to help determine
which permissions are allowed.public String getServices()
TableAccountSasService to help determine which
services are accessible.public String getResourceTypes()
TableAccountSasResourceType to help determine
the resource types that are accessible.public String getVersion()
null or empty the latest service version targeted by the
library will be used.public TableAccountSasSignatureValues setVersion(String version)
null or empty to target the version used by the
library.version - The target version to set.TableAccountSasSignatureValues object.public TableSasProtocol getProtocol()
TableSasProtocol which determines the HTTP protocol that will be used.TableSasProtocol.public TableAccountSasSignatureValues setProtocol(TableSasProtocol protocol)
TableSasProtocol which determines the HTTP protocol that will be used.protocol - The TableSasProtocol to set.TableAccountSasSignatureValues object.public OffsetDateTime getStartTime()
public TableAccountSasSignatureValues setStartTime(OffsetDateTime startTime)
startTime - The start time to set.TableAccountSasSignatureValues object.public TableSasIpRange getSasIpRange()
TableSasIpRange which determines the IP ranges that are allowed to use the SAS.TableSasIpRange.public TableAccountSasSignatureValues setSasIpRange(TableSasIpRange sasIpRange)
TableSasIpRange which determines the IP ranges that are allowed to use the SAS.sasIpRange - The allowed IP range to set.TableAccountSasSignatureValues object.Copyright © 2021 Microsoft Corporation. All rights reserved.