microsoft-azure-storage/src/com/microsoft/azure/storage/queue/CloudQueue.java
public String generateSharedAccessSignature(final SharedAccessQueuePolicy policy, final String groupPolicyIdentifier)
            throws InvalidKeyException, StorageException {

        return this.generateSharedAccessSignature(policy, groupPolicyIdentifier, null /* IP range */, null /* protocols */);
    }
public String generateSharedAccessSignature(final SharedAccessQueuePolicy policy, final String groupPolicyIdentifier)
            throws InvalidKeyException, StorageException {

        return this.generateSharedAccessSignature(policy, groupPolicyIdentifier, null /* IP range */, null /* protocols */);
    }
Returns a shared access signature for the queue.

@param policy
The access policy for the shared access signature.
@param groupPolicyIdentifier
A queue-level access policy.

@return A shared access signature for the queue.

@throws InvalidKeyException
If an invalid key was passed.
@throws StorageException
If a storage service error occurred.
@throws IllegalArgumentException
If an unexpected value is passed.