public final class BlobSASPermission
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 |
read
Specifies Read access granted.
|
boolean |
write
Specifies Write access granted.
|
Constructor and Description |
---|
BlobSASPermission()
Initializes a
BlobSASPermission object with all fields set to false. |
Modifier and Type | Method and Description |
---|---|
static BlobSASPermission |
parse(java.lang.String permString)
Creates a
BlobSASPermission 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 BlobSASPermission()
BlobSASPermission
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 BlobSASPermission
.public static BlobSASPermission parse(java.lang.String permString)
BlobSASPermission
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 BlobSASPermission
.BlobSASPermission
generated from the given String
.