SharedAccessPolicy Class
- java.
lang. Object - com.
microsoft. azure. storage. SharedAccessPolicy
- com.
public class SharedAccessPolicy
Represents a shared access policy, which specifies the start time, expiry time, and permissions for a shared access signature.
Constructor Summary
Constructor | Description |
---|---|
SharedAccessPolicy() |
Creates an instance of the class. |
Method Summary
Modifier and Type | Method and Description |
---|---|
Date |
getSharedAccessExpiryTime()
Gets the expiry time for a shared access signature associated with this shared access policy. |
Date |
getSharedAccessStartTime()
Gets the start time for a shared access signature associated with this shared access policy. |
abstract String |
permissionsToString()
Converts this shared access policy's permissions to a string. |
abstract void |
setPermissionsFromString(final String value)
Sets shared access permissions using the specified permissions string. |
void |
setSharedAccessExpiryTime(final Date sharedAccessExpiryTime)
Sets the expiry time for a shared access signature associated with this shared access policy. |
void |
setSharedAccessStartTime(final Date sharedAccessStartTime)
Sets the start time for a shared access signature associated with this shared access policy. |
Constructor Details
SharedAccessPolicy
public SharedAccessPolicy()
Creates an instance of the class.
Method Details
getSharedAccessExpiryTime
public Date getSharedAccessExpiryTime()
Gets the expiry time for a shared access signature associated with this shared access policy.
Returns:
java.util.Date
object which contains the shared access signature expiry time.getSharedAccessStartTime
public Date getSharedAccessStartTime()
Gets the start time for a shared access signature associated with this shared access policy.
Returns:
java.util.Date
object which contains the shared access signature start time.permissionsToString
public abstract String permissionsToString()
Converts this shared access policy's permissions to a string.
Returns:
String
which represents the shared access permissions.setPermissionsFromString
public abstract void setPermissionsFromString(final String value)
Sets shared access permissions using the specified permissions string.
Parameters:
String
which represents the shared access permissions.
setSharedAccessExpiryTime
public void setSharedAccessExpiryTime(final Date sharedAccessExpiryTime)
Sets the expiry time for a shared access signature associated with this shared access policy.
Parameters:
java.util.Date
object which represents the expiry time to set for the shared access signature.
setSharedAccessStartTime
public void setSharedAccessStartTime(final Date sharedAccessStartTime)
Sets the start time for a shared access signature associated with this shared access policy.
Parameters:
java.util.Date
object which represents the start time to set for the shared access signature.