public final class BlobSASPermission extends Object
ServiceSASSignatureValues
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 |
---|
BlobSASPermission()
Initializes a
BlobSASPermission object with all fields set to false. |
Modifier and Type | Method and Description |
---|---|
boolean |
add()
Specifies Add access granted.
|
boolean |
create()
Specifies Create access granted.
|
boolean |
delete()
Specifies Delete access granted.
|
static BlobSASPermission |
parse(String permString)
Creates a
BlobSASPermission from the specified permissions string. |
boolean |
read()
Specifies Read access granted.
|
String |
toString()
Converts the given permissions to a
String . |
BlobSASPermission |
withAdd(boolean add)
Specifies Add access granted.
|
BlobSASPermission |
withCreate(boolean create)
Specifies Create access granted.
|
BlobSASPermission |
withDelete(boolean delete)
Specifies Delete access granted.
|
BlobSASPermission |
withRead(boolean read)
Specifies Read access granted.
|
BlobSASPermission |
withWrite(boolean write)
Specifies Write access granted.
|
boolean |
write()
Specifies Write access granted.
|
public BlobSASPermission()
BlobSASPermission
object with all fields set to false.public static BlobSASPermission parse(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
.public boolean read()
public BlobSASPermission withRead(boolean read)
public boolean add()
public BlobSASPermission withAdd(boolean add)
public boolean create()
public BlobSASPermission withCreate(boolean create)
public boolean write()
public BlobSASPermission withWrite(boolean write)
public boolean delete()
public BlobSASPermission withDelete(boolean delete)
This documentation was released into the public domain.