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.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(String permString)
Creates a
BlobSASPermission from the specified permissions string. |
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 String toString()
String
. Using this method will guarantee the permissions are in an
order accepted by the service.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
.Copyright © 2018. All rights reserved.