public final class QueueServiceSasSignatureValues extends Object
Used to initialize parameters for a Shared Access Signature (SAS) for an Azure Queue Storage service. Once all the values here are set, use the appropriate SAS generation method on the desired queue 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: Storage SAS overview, Constructing a Service SAS
Constructor Summary
Constructor Detail
QueueServiceSasSignatureValues
@Deprecated public QueueServiceSasSignatureValues()
Deprecated.Creates an object with empty values for all fields.
QueueServiceSasSignatureValues
public QueueServiceSasSignatureValues(OffsetDateTime expiryTime, QueueSasPermission permissions)
Creates an object with the specified expiry time and permissions
Parameters:expiryTime
- The time after which the SAS will no longer work.permissions
-QueueSasPermission
allowed by the SAS.
QueueServiceSasSignatureValues
public QueueServiceSasSignatureValues(String identifier)
Creates an object with the specified identifier.
Parameters:identifier
- Name of the access policy.
Method Detail
setVersion
@Deprecated public QueueServiceSasSignatureValues setVersion(String version)
Deprecated.Sets the version of the service this SAS will target. If not specified, it will default to the version targeted by the library.
Parameters:version
- Version to target Returns: the updated QueueServiceSasSignatureValues object
setStartTime
public QueueServiceSasSignatureValues setStartTime(OffsetDateTime startTime)
Sets when the SAS will take effect.
Parameters:startTime
- When the SAS takes effect Returns: the updated QueueServiceSasSignatureValues object
setExpiryTime
public QueueServiceSasSignatureValues setExpiryTime(OffsetDateTime expiryTime)
Sets the time after which the SAS will no longer work.
Parameters:expiryTime
- When the SAS will no longer work Returns: the updated QueueServiceSasSignatureValues object
getQueueName
@Deprecated public String getQueueName()
Deprecated.Gets the name of the queue this SAS may access.
Returns: The name of the queue the SAS user may access.
setQueueName
@Deprecated public QueueServiceSasSignatureValues setQueueName(String queueName)
Deprecated.Sets the name of the queue this SAS may access.
Parameters:queueName
- Canonical name of the object the SAS grants access Returns: the updated QueueServiceSasSignatureValues object
Visit the Azure for Java Developers site for more Java documentation, including quick starts, tutorials, and code samples.
ncG1vNJzZmiZqqq%2Fpr%2FDpJuom6Njr627wWeaqKqVY8SqusOorqxmnprBcHDWnploopGrrnCt2a6pnmWjqbyzrcaeZKqtlaqycH2RZ2hrZmBir6bAwGdpaJufonyixtSrnGirpKS%2ForPEaKiunaWafLSt0miIrp2lmqCmvtWimp6LkaigqrPNmquuqpWLrq3BxKxloaydoQ%3D%3D