Package com.azure.data.tables.sas
Class TableAccountSasSignatureValues
java.lang.Object
com.azure.data.tables.sas.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.- See Also:
-
Constructor Summary
ConstructorDescriptionTableAccountSasSignatureValues
(OffsetDateTime expiryTime, TableAccountSasPermission permissions, TableAccountSasService services, TableAccountSasResourceType resourceTypes) Initializes a newTableAccountSasSignatureValues
object. -
Method Summary
Modifier and TypeMethodDescriptionGet The time after which the SAS will no longer work.Gets the operations the SAS user may perform.Get theTableSasProtocol
which determines the HTTP protocol that will be used.Get the resource types accessible with this SAS.Get theTableSasIpRange
which determines the IP ranges that are allowed to use the SAS.Get the services accessible with this SAS.Get when the SAS will take effect.Get the service version that is targeted, ifnull
or empty the latest service version targeted by the library will be used.setProtocol
(TableSasProtocol protocol) Sets theTableSasProtocol
which determines the HTTP protocol that will be used.setSasIpRange
(TableSasIpRange sasIpRange) Sets theTableSasIpRange
which determines the IP ranges that are allowed to use the SAS.setStartTime
(OffsetDateTime startTime) Sets when the SAS will take effect.setVersion
(String version) Sets the service version that is targeted.
-
Constructor Details
-
TableAccountSasSignatureValues
public TableAccountSasSignatureValues(OffsetDateTime expiryTime, TableAccountSasPermission permissions, TableAccountSasService services, TableAccountSasResourceType resourceTypes) Initializes a newTableAccountSasSignatureValues
object.- Parameters:
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.
-
-
Method Details
-
getExpiryTime
Get The time after which the SAS will no longer work.- Returns:
- The time after which the SAS will no longer work.
-
getPermissions
Gets the operations the SAS user may perform. Please refer toTableAccountSasPermission
to help determine which permissions are allowed.- Returns:
- The operations the SAS user may perform.
-
getServices
Get the services accessible with this SAS. Please refer toTableAccountSasService
to help determine which services are accessible.- Returns:
- The services accessible with this SAS.
-
getResourceTypes
Get the resource types accessible with this SAS. Please refer toTableAccountSasResourceType
to help determine the resource types that are accessible.- Returns:
- The resource types accessible with this SAS.
-
getVersion
Get the service version that is targeted, ifnull
or empty the latest service version targeted by the library will be used.- Returns:
- The service version that is targeted.
-
setVersion
Sets the service version that is targeted. Leave thisnull
or empty to target the version used by the library.- Parameters:
version
- The target version to set.- Returns:
- The updated
TableAccountSasSignatureValues
object.
-
getProtocol
Get theTableSasProtocol
which determines the HTTP protocol that will be used.- Returns:
- The
TableSasProtocol
.
-
setProtocol
Sets theTableSasProtocol
which determines the HTTP protocol that will be used.- Parameters:
protocol
- TheTableSasProtocol
to set.- Returns:
- The updated
TableAccountSasSignatureValues
object.
-
getStartTime
Get when the SAS will take effect.- Returns:
- When the SAS will take effect.
-
setStartTime
Sets when the SAS will take effect.- Parameters:
startTime
- The start time to set.- Returns:
- The updated
TableAccountSasSignatureValues
object.
-
getSasIpRange
Get theTableSasIpRange
which determines the IP ranges that are allowed to use the SAS.- Returns:
- The
TableSasIpRange
.
-
setSasIpRange
Sets theTableSasIpRange
which determines the IP ranges that are allowed to use the SAS.- Parameters:
sasIpRange
- Theallowed IP range
to set.- Returns:
- The updated
TableAccountSasSignatureValues
object. - See Also:
-