public final class AccountSASResourceType extends Object
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.| Modifier and Type | Field and Description |
|---|---|
boolean |
container
Permission to access container level APIs (Blob Containers, Tables, Queues, File Shares) granted.
|
boolean |
object
Permission to access object level APIs (Blobs, Table Entities, Queue Messages, Files) granted.
|
boolean |
service
Permission to access service level APIs granted.
|
| Constructor and Description |
|---|
AccountSASResourceType()
Initializes an
AccountSASResourceType object with all fields set to false. |
| Modifier and Type | Method and Description |
|---|---|
static AccountSASResourceType |
parse(String resourceTypesString)
Creates an
AccountSASResourceType from the specified resource types string. |
String |
toString()
Converts the given resource types to a
String. |
public boolean service
public boolean container
public boolean object
public AccountSASResourceType()
AccountSASResourceType object with all fields set to false.public String toString()
String. Using this method will guarantee the resource types are in
an order accepted by the service.public static AccountSASResourceType parse(String resourceTypesString)
AccountSASResourceType 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.resourceTypesString - A String which represents the AccountSASResourceTypes.AccountSASResourceType generated from the given String.Copyright © 2018. All rights reserved.