public final class ContainerSASPermission
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
boolean |
add
Specifies Add access granted.
|
boolean |
create
Specifies Create access granted.
|
boolean |
delete
Specifies Delete access granted.
|
boolean |
list
Specifies List access granted.
|
boolean |
read
Specifies Read access granted.
|
boolean |
write
Specifies Write access granted.
|
Constructor and Description |
---|
ContainerSASPermission()
Initializes an
ContainerSASPermssion object with all fields set to false. |
Modifier and Type | Method and Description |
---|---|
static ContainerSASPermission |
parse(java.lang.String permString)
Creates an
ContainerSASPermission from the specified permissions string. |
java.lang.String |
toString()
Converts the given permissions to a
String . |
public boolean read
public boolean add
public boolean create
public boolean write
public boolean delete
public boolean list
public ContainerSASPermission()
ContainerSASPermssion
object with all fields set to false.public java.lang.String toString()
String
. Using this method will guarantee the permissions are in an
order accepted by the service.toString
in class java.lang.Object
String
which represents the ContainerSASPermission
.public static ContainerSASPermission parse(java.lang.String permString)
ContainerSASPermission
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 ContainerSASPermission
.ContainerSASPermission
generated from the given String
.