SharedAccessBlobPolicy Class
- java.
lang. Object - SharedAccessPolicy
- com.
microsoft. azure. storage. blob. SharedAccessBlobPolicy
- com.
public class SharedAccessBlobPolicy extends SharedAccessPolicy
Represents a shared access policy, which specifies the start time, expiry time, and permissions for a shared access signature.
Method Summary
Modifier and Type | Method and Description |
---|---|
EnumSet<Shared |
getPermissions()
Gets the permissions for a shared access signature associated with this shared access policy. |
String |
permissionsToString()
Converts this policy's permissions to a string. |
void |
setPermissions(final EnumSet<SharedAccessBlobPermissions> permissions)
Sets the permissions for a shared access signature associated with this shared access policy. |
void |
setPermissionsFromString(final String value)
Sets shared access permissions using the specified permissions string. |
Inherited Members
Method Details
getPermissions
public EnumSet
Gets the permissions for a shared access signature associated with this shared access policy.
Returns:
java.util.EnumSet
object that contains SharedAccessBlobPermissions values that represents the set of shared access permissions.permissionsToString
public String permissionsToString()
Converts this policy's permissions to a string.
Returns:
String
that represents the shared access permissions in the "racwdl" format, which is described at setPermissionsFromString(final String value).setPermissions
public void setPermissions(final EnumSet
Sets the permissions for a shared access signature associated with this shared access policy.
Parameters:
java.util.EnumSet
object that contains SharedAccessBlobPermissions values, to set for the shared access signature.
setPermissionsFromString
public void setPermissionsFromString(final String value)
Sets shared access permissions using the specified permissions string.
Parameters:
String
that represents the shared access permissions. The string must contain one or more of the following values. Note they must all be lowercase. r
: Read access.a
: Add access.c
: Create access.w
: Write access.d
: Delete access.l
: List access.
Applies to
Azure SDK for Java