AccountSASResourceType Class

Definition

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

public class AccountSASResourceType
Inheritance
java.lang.Object
AccountSASResourceType

Constructors

AccountSASResourceType()

Initializes anAccountSASResourceType  object with all fields set to false.

Methods

container()

Permission to access container level APIs (Blob Containers, Tables, Queues, File Shares) granted.

object()

Permission to access object level APIs (Blobs, Table Entities, Queue Messages, Files) granted.

parse(String resourceTypesString)

Creates anAccountSASResourceType  from the specified resource types string. This method will throw an IllegalArgumentException  if it encounters a character that does not correspond to a valid resource type.

service()

Permission to access service level APIs granted.

toString()

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

withContainer(boolean container)

Permission to access container level APIs (Blob Containers, Tables, Queues, File Shares) granted.

withObject(boolean object)

Permission to access object level APIs (Blobs, Table Entities, Queue Messages, Files) granted.

withService(boolean service)

Permission to access service level APIs granted.

Applies to