microsoft-azure-storage/src/com/microsoft/azure/storage/core/SharedAccessSignatureHelper.java
public static UriQueryBuilder generateSharedAccessSignatureForQueue(
            final SharedAccessQueuePolicy policy, final String groupPolicyIdentifier, final IPRange ipRange,
            final SharedAccessProtocols protocols, final String signature)
            throws StorageException {

        return generateSharedAccessSignatureHelper(policy, null /* startPartitionKey */, null /* startRowKey */,
                null /* endPartitionKey */, null /* endRowKey */, groupPolicyIdentifier, null /* resourceType */,
                ipRange, protocols, null /* tableName */, signature, null /* headers */);
    }
public static UriQueryBuilder generateSharedAccessSignatureForQueue(
            final SharedAccessQueuePolicy policy, final String groupPolicyIdentifier, final IPRange ipRange,
            final SharedAccessProtocols protocols, final String signature)
            throws StorageException {

        return generateSharedAccessSignatureHelper(policy, null /* startPartitionKey */, null /* startRowKey */,
                null /* endPartitionKey */, null /* endRowKey */, groupPolicyIdentifier, null /* resourceType */,
                ipRange, protocols, null /* tableName */, signature, null /* headers */);
    }
Get the complete query builder for creating the Shared Access Signature query.

@param policy
The shared access policy for the shared access signature.
@param groupPolicyIdentifier
An optional identifier for the policy.
@param ipRange
The range of IP addresses for the shared access signature.
@param protocols
The Internet protocols for the shared access signature.
@param signature
The signature to use.

@return The finished query builder
@throws IllegalArgumentException
@throws StorageException