AccountSASService Class

Definition

This is a helper class to construct a string representing the services accessible by an AccountSAS. Setting a value to true means that any SAS which uses these permissions will grant access to that service. Once all the values are set, this should be serialized with toString and set as the services field on an AccountSASSignatureValues object. It is possible to construct the services string without this class, but the order of the services is particular and this class guarantees correctness.

public class AccountSASService
Inheritance
java.lang.Object
AccountSASService

Constructors

AccountSASService()

Initializes anAccountSASService  object with all fields set to false.

Methods

blob()

Permission to access blob resources granted.

file()

Permission to access file resources granted.

parse(String servicesString)

Creates anAccountSASService  from the specified services string. This method will throw an IllegalArgumentException  if it encounters a character that does not correspond to a valid service.

queue()

Permission to access queue resources granted.

table()

Permission to access table resources granted.

toString()

Converts the given services to aString  . Using this method will guarantee the services are in an order accepted by the service.

withBlob(boolean blob)

Permission to access blob resources granted.

withFile(boolean file)

Permission to access file resources granted.

withQueue(boolean queue)

Permission to access queue resources granted.

withTable(boolean table)

Permission to access table resources granted.

Applies to