CloudBlobContainer.generateSharedAccessSignature Method

Definition

Overloads

generateSharedAccessSignature(final SharedAccessBlobPolicy policy, final String groupPolicyIdentifier)

Returns a shared access signature for the container. Note this does not contain the leading "?".

generateSharedAccessSignature(final SharedAccessBlobPolicy policy, final String groupPolicyIdentifier, final IPRange ipRange, final SharedAccessProtocols protocols)

Returns a shared access signature for the container. Note this does not contain the leading "?".

generateSharedAccessSignature(final SharedAccessBlobPolicy policy, final String groupPolicyIdentifier)

Returns a shared access signature for the container. Note this does not contain the leading "?".

public String generateSharedAccessSignature(final SharedAccessBlobPolicy policy, final String groupPolicyIdentifier)
Parameters
policy
final SharedAccessBlobPolicy

An SharedAccessBlobPolicy object that represents the access policy for the shared access signature.

groupPolicyIdentifier
final String

A String which represents the container-level access policy.

Returns
String

A String which represents a shared access signature for the container.

Exceptions

If a storage service error occurred.

InvalidKeyException

If the key is invalid.

generateSharedAccessSignature(final SharedAccessBlobPolicy policy, final String groupPolicyIdentifier, final IPRange ipRange, final SharedAccessProtocols protocols)

Returns a shared access signature for the container. Note this does not contain the leading "?".

public String generateSharedAccessSignature(final SharedAccessBlobPolicy policy, final String groupPolicyIdentifier, final IPRange ipRange, final SharedAccessProtocols protocols)
Parameters
policy
final SharedAccessBlobPolicy

An SharedAccessBlobPolicy object that represents the access policy for the shared access signature.

groupPolicyIdentifier
final String

A String which represents the container-level access policy.

ipRange
final IPRange

A IPRange object containing the range of allowed IP addresses.

protocols
final SharedAccessProtocols

A SharedAccessProtocols representing the allowed Internet protocols.

Returns
String

A String which represents a shared access signature for the container.

Exceptions

If a storage service error occurred.

InvalidKeyException

If the key is invalid.