BlobSASPermission Class

Definition

This is a helper class to construct a string representing the permissions granted by a ServiceSAS to a blob. 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 a ServiceSASSignatureValues 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 BlobSASPermission
Inheritance
java.lang.Object
BlobSASPermission

Constructors

BlobSASPermission()

Initializes aBlobSASPermission  object with all fields set to false.

Methods

add()

Specifies Add access granted.

create()

Specifies Create access granted.

delete()

Specifies Delete access granted.

parse(String permString)

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

read()

Specifies Read access granted.

toString()

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

withAdd(boolean add)

Specifies Add access granted.

withCreate(boolean create)

Specifies Create access granted.

withDelete(boolean delete)

Specifies Delete access granted.

withRead(boolean read)

Specifies Read access granted.

withWrite(boolean write)

Specifies Write access granted.

write()

Specifies Write access granted.

Applies to