public final class ContainerSASPermission 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 |
---|
ContainerSASPermission()
Initializes an
ContainerSASPermssion 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.
|
boolean |
list()
Specifies List access granted.
|
static ContainerSASPermission |
parse(String permString)
Creates an
ContainerSASPermission from the specified permissions string. |
boolean |
read()
Specifies Read access granted.
|
String |
toString()
Converts the given permissions to a
String . |
ContainerSASPermission |
withAdd(boolean add)
Specifies Add access granted.
|
ContainerSASPermission |
withCreate(boolean create)
Specifies Create access granted.
|
ContainerSASPermission |
withDelete(boolean delete)
Specifies Delete access granted.
|
ContainerSASPermission |
withList(boolean list)
Specifies List access granted.
|
ContainerSASPermission |
withRead(boolean read)
Specifies Read access granted.
|
ContainerSASPermission |
withWrite(boolean write)
Specifies Write access granted.
|
boolean |
write()
Specifies Write access granted.
|
public ContainerSASPermission()
ContainerSASPermssion
object with all fields set to false.public static ContainerSASPermission parse(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
.public boolean read()
public ContainerSASPermission withRead(boolean read)
public boolean add()
public ContainerSASPermission withAdd(boolean add)
public boolean create()
public ContainerSASPermission withCreate(boolean create)
public boolean write()
public ContainerSASPermission withWrite(boolean write)
public boolean delete()
public ContainerSASPermission withDelete(boolean delete)
public boolean list()
public ContainerSASPermission withList(boolean list)
Copyright © 2019 Microsoft Corporation. All rights reserved.