CloudBlob.generateSharedAccessSignature Method

Definition

Overloads

generateSharedAccessSignature(final SharedAccessBlobPolicy policy, final SharedAccessBlobHeaders headers, final String groupPolicyIdentifier)

Returns a shared access signature for the blob using the specified group policy identifier and operation context. Note this does not contain the leading "?".

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

Returns a shared access signature for the blob using the specified group policy identifier and operation context. Note this does not contain the leading "?".

generateSharedAccessSignature(final SharedAccessBlobPolicy policy, final String groupPolicyIdentifier)

Returns a shared access signature for the blob using the specified group policy identifier and operation context. Note this does not contain the leading "?".

generateSharedAccessSignature(final SharedAccessBlobPolicy policy, final SharedAccessBlobHeaders headers, final String groupPolicyIdentifier)

Returns a shared access signature for the blob using the specified group policy identifier and operation context. Note this does not contain the leading "?".

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

A SharedAccessPolicy object that represents the access policy for the shared access signature.

headers
final SharedAccessBlobHeaders

A SharedAccessBlobHeaders object that represents the optional header values to set for a blob accessed with this shared access signature.

groupPolicyIdentifier
final String

A String that represents the container-level access policy.

Returns
String

A String that represents the shared access signature.

Exceptions
IllegalArgumentException

If the credentials are invalid or the blob is a snapshot.

InvalidKeyException

If the credentials are invalid.

If a storage service error occurred.

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

Returns a shared access signature for the blob using the specified group policy identifier and operation context. Note this does not contain the leading "?".

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

A SharedAccessPolicy object that represents the access policy for the shared access signature.

headers
final SharedAccessBlobHeaders

A SharedAccessBlobHeaders object that represents the optional header values to set for a blob accessed with this shared access signature.

groupPolicyIdentifier
final String

A String that 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 that represents the shared access signature.

Exceptions
IllegalArgumentException

If the credentials are invalid or the blob is a snapshot.

InvalidKeyException

If the credentials are invalid.

If a storage service error occurred.

generateSharedAccessSignature(final SharedAccessBlobPolicy policy, final String groupPolicyIdentifier)

Returns a shared access signature for the blob using the specified group policy identifier and operation context. Note this does not contain the leading "?".

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

A SharedAccessPolicy object that represents the access policy for the shared access signature.

groupPolicyIdentifier
final String

A String that represents the container-level access policy.

Returns
String

A String that represents the shared access signature.

Exceptions
IllegalArgumentException

If the credentials are invalid or the blob is a snapshot.

InvalidKeyException

If the credentials are invalid.

If a storage service error occurred.