AccountSASPermission Class

Definition

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

public class AccountSASPermission
Inheritance
java.lang.Object
AccountSASPermission

Constructors

AccountSASPermission()

Initializes anAccountSASPermission  object with all fields set to false.

Methods

add()

Permission to add messages, table entities, and append to blobs granted.

create()

Permission to create blobs and files granted.

delete()

Permission to delete resources granted.

list()

Permission to list blob containers, blobs, shares, directories, and files granted.

parse(String permString)

Creates anAccountSASPermission  from the specified permissions string. This method will throw an IllegalArgumentException  if it encounters a character that does not correspond to a valid permission.

processMessages()

Permission to get and delete messages granted.

read()

Permission to read resources and list queues and tables granted.

toString()

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

update()

Permissions to update messages and table entities granted.

withAdd(boolean add)

Permission to add messages, table entities, and append to blobs granted.

withCreate(boolean create)

Permission to create blobs and files granted.

withDelete(boolean delete)

Permission to delete resources granted.

withList(boolean list)

Permission to list blob containers, blobs, shares, directories, and files granted.

withProcessMessages(boolean processMessages)

Permission to get and delete messages granted.

withRead(boolean read)

Permission to read resources and list queues and tables granted.

withUpdate(boolean update)

Permissions to update messages and table entities granted.

withWrite(boolean write)

Permission to write resources granted.

write()

Permission to write resources granted.

Applies to