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
ConstructorsConstructorDescriptionTableAccountSasSignatureValues(OffsetDateTime expiryTime, TableAccountSasPermission permissions, TableAccountSasService services, TableAccountSasResourceType resourceTypes) Initializes a newTableAccountSasSignatureValuesobject. -
Method Summary
Modifier and TypeMethodDescriptionGet The time after which the SAS will no longer work.Gets the operations the SAS user may perform.Get theTableSasProtocolwhich determines the HTTP protocol that will be used.Get the resource types accessible with this SAS.Get theTableSasIpRangewhich 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, ifnullor empty the latest service version targeted by the library will be used.setProtocol(TableSasProtocol protocol) Sets theTableSasProtocolwhich determines the HTTP protocol that will be used.setSasIpRange(TableSasIpRange sasIpRange) Sets theTableSasIpRangewhich 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 newTableAccountSasSignatureValuesobject.- Parameters:
expiryTime- The time after which the SAS will no longer work.permissions-account permissionsallowed by the SAS.services-account servicestargeted by the SAS.resourceTypes-account resource typestargeted 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 toTableAccountSasPermissionto help determine which permissions are allowed.- Returns:
- The operations the SAS user may perform.
-
getServices
Get the services accessible with this SAS. Please refer toTableAccountSasServiceto help determine which services are accessible.- Returns:
- The services accessible with this SAS.
-
getResourceTypes
Get the resource types accessible with this SAS. Please refer toTableAccountSasResourceTypeto help determine the resource types that are accessible.- Returns:
- The resource types accessible with this SAS.
-
getVersion
Get the service version that is targeted, ifnullor 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 thisnullor empty to target the version used by the library.- Parameters:
version- The target version to set.- Returns:
- The updated
TableAccountSasSignatureValuesobject.
-
getProtocol
Get theTableSasProtocolwhich determines the HTTP protocol that will be used.- Returns:
- The
TableSasProtocol.
-
setProtocol
Sets theTableSasProtocolwhich determines the HTTP protocol that will be used.- Parameters:
protocol- TheTableSasProtocolto set.- Returns:
- The updated
TableAccountSasSignatureValuesobject.
-
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
TableAccountSasSignatureValuesobject.
-
getSasIpRange
Get theTableSasIpRangewhich determines the IP ranges that are allowed to use the SAS.- Returns:
- The
TableSasIpRange.
-
setSasIpRange
Sets theTableSasIpRangewhich determines the IP ranges that are allowed to use the SAS.- Parameters:
sasIpRange- Theallowed IP rangeto set.- Returns:
- The updated
TableAccountSasSignatureValuesobject. - See Also:
-