SharedAccessAccountPolicy Class

  • java.lang.Object

public class SharedAccessAccountPolicy 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<SharedAccessAccountPermissions> getPermissions()

Gets the permissions for a shared access signature associated with this shared access policy.

SharedAccessProtocols getProtocols()

Gets the allowed protocols for a shared access signature associated with this shared access policy.

IPRange getRange()

Gets the allowed IP addresses for a shared access signature associated with this shared access policy.

EnumSet<SharedAccessAccountResourceType> getResourceTypes()

Gets the resource type for a shared access signature associated with this shared access policy.

EnumSet<SharedAccessAccountService> getServices()

Gets the services (blob, file, queue, table) for a shared access signature associated with this shared access policy.

String permissionsToString()

Converts this shared access policy's permissions to a .

String resourceTypesToString()

Converts this shared access policy's resource types to a .

String servicesToString()

Converts this shared access policy's services to a .

void setPermissions(EnumSet<SharedAccessAccountPermissions> 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 .

void setProtocols(SharedAccessProtocols protocols)

Sets the allowed protocols for a shared access signature associated with this shared access policy.

void setRange(IPRange range)

Sets the allowed IP addresses for a shared access signature associated with this shared access policy.

void setResourceTypeFromString(final String value)

Sets shared access resource types using the specified resource types .

void setResourceTypes(EnumSet<SharedAccessAccountResourceType> resourceTypes)

Sets the resource type for a shared access signature associated with this shared access policy.

void setServiceFromString(final String value)

Sets shared access services using the specified services .

void setServices(EnumSet<SharedAccessAccountService> services)

Sets the services (blob, file, queue, table) for a shared access signature associated with this shared access policy.

Inherited Members

Method Details

getPermissions

public EnumSet getPermissions()

Gets the permissions for a shared access signature associated with this shared access policy.

Returns:

the permissions

getProtocols

public SharedAccessProtocols getProtocols()

Gets the allowed protocols for a shared access signature associated with this shared access policy.

Returns:

A SharedAccessProtocols representing the chosen Internet protocols.

getRange

public IPRange getRange()

Gets the allowed IP addresses for a shared access signature associated with this shared access policy.

Returns:

A IPRange object containing the range of IP addresses.

getResourceTypes

public EnumSet getResourceTypes()

Gets the resource type for a shared access signature associated with this shared access policy.

Returns:

the resourceTypes

getServices

public EnumSet getServices()

Gets the services (blob, file, queue, table) for a shared access signature associated with this shared access policy.

Returns:

the services

permissionsToString

public String permissionsToString()

Converts this shared access policy's permissions to a .

Returns:

A String which represents the shared access permissions.

resourceTypesToString

public String resourceTypesToString()

Converts this shared access policy's resource types to a .

Returns:

A String which represents the shared access permissions.

servicesToString

public String servicesToString()

Converts this shared access policy's services to a .

Returns:

A String which represents the shared access permissions.

setPermissions

public void setPermissions(EnumSet permissions)

Sets the permissions for a shared access signature associated with this shared access policy.

Parameters:

permissions - the permissions to set

setPermissionsFromString

public void setPermissionsFromString(final String value)

Sets shared access permissions using the specified permissions .

Parameters:

value - A String which represents the shared access permissions.

setProtocols

public void setProtocols(SharedAccessProtocols protocols)

Sets the allowed protocols for a shared access signature associated with this shared access policy.

Parameters:

protocols - A SharedAccessProtocols representing the chosen Internet protocols.

setRange

public void setRange(IPRange range)

Sets the allowed IP addresses for a shared access signature associated with this shared access policy.

Parameters:

range - A IPRange object containing the range of IP addresses.

setResourceTypeFromString

public void setResourceTypeFromString(final String value)

Sets shared access resource types using the specified resource types .

Parameters:

value - A String which represents the shared access resource types.

setResourceTypes

public void setResourceTypes(EnumSet resourceTypes)

Sets the resource type for a shared access signature associated with this shared access policy.

Parameters:

resourceTypes - the resourceTypes to set

setServiceFromString

public void setServiceFromString(final String value)

Sets shared access services using the specified services .

Parameters:

value - A String which represents the shared access services.

setServices

public void setServices(EnumSet services)

Sets the services (blob, file, queue, table) for a shared access signature associated with this shared access policy.

Parameters:

services - the services to set

Applies to