public final class AccountSASPermission extends Object
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.Constructor and Description |
---|
AccountSASPermission()
Initializes an
AccountSASPermission object with all fields set to false. |
Modifier and Type | Method and Description |
---|---|
boolean |
add()
Permission to add messages, table entities, and append to blobs granted.
|
boolean |
create()
Permission to create blobs and files granted.
|
boolean |
delete()
Permission to delete resources granted.
|
boolean |
list()
Permission to list blob containers, blobs, shares, directories, and files granted.
|
static AccountSASPermission |
parse(String permString)
Creates an
AccountSASPermission from the specified permissions string. |
boolean |
processMessages()
Permission to get and delete messages granted.
|
boolean |
read()
Permission to read resources and list queues and tables granted.
|
String |
toString()
Converts the given permissions to a
String . |
boolean |
update()
Permissions to update messages and table entities granted.
|
AccountSASPermission |
withAdd(boolean add)
Permission to add messages, table entities, and append to blobs granted.
|
AccountSASPermission |
withCreate(boolean create)
Permission to create blobs and files granted.
|
AccountSASPermission |
withDelete(boolean delete)
Permission to delete resources granted.
|
AccountSASPermission |
withList(boolean list)
Permission to list blob containers, blobs, shares, directories, and files granted.
|
AccountSASPermission |
withProcessMessages(boolean processMessages)
Permission to get and delete messages granted.
|
AccountSASPermission |
withRead(boolean read)
Permission to read resources and list queues and tables granted.
|
AccountSASPermission |
withUpdate(boolean update)
Permissions to update messages and table entities granted.
|
AccountSASPermission |
withWrite(boolean write)
Permission to write resources granted.
|
boolean |
write()
Permission to write resources granted.
|
public AccountSASPermission()
AccountSASPermission
object with all fields set to false.public static AccountSASPermission parse(String permString)
AccountSASPermission
from the specified permissions string. This method will throw an
IllegalArgumentException
if it encounters a character that does not correspond to a valid permission.permString
- A String
which represents the SharedAccessAccountPermissions
.AccountSASPermission
object generated from the given String
.public boolean read()
public AccountSASPermission withRead(boolean read)
public boolean add()
public AccountSASPermission withAdd(boolean add)
public boolean create()
public AccountSASPermission withCreate(boolean create)
public boolean write()
public AccountSASPermission withWrite(boolean write)
public boolean delete()
public AccountSASPermission withDelete(boolean delete)
public boolean list()
public AccountSASPermission withList(boolean list)
public boolean update()
public AccountSASPermission withUpdate(boolean update)
public boolean processMessages()
public AccountSASPermission withProcessMessages(boolean processMessages)
This documentation was released into the public domain.