microsoft-azure-storage/src/com/microsoft/azure/storage/core/SharedAccessSignatureHelper.java
public static String generateSharedAccessSignatureHashForTable(
            final SharedAccessTablePolicy policy, final String accessPolicyIdentifier, final String resourceName,
            final IPRange ipRange, final SharedAccessProtocols protocols, final String startPartitionKey,
            final String startRowKey, final String endPartitionKey, final String endRowKey, final ServiceClient client)
            throws InvalidKeyException, StorageException {

        String stringToSign = generateSharedAccessSignatureStringToSign(
                policy, resourceName, ipRange, protocols, accessPolicyIdentifier);
        
        stringToSign = String.format("%s\n%s\n%s\n%s\n%s", stringToSign,
                startPartitionKey == null ? Constants.EMPTY_STRING : startPartitionKey,
                startRowKey == null ? Constants.EMPTY_STRING : startRowKey,
                endPartitionKey == null ? Constants.EMPTY_STRING : endPartitionKey,
                endRowKey == null ? Constants.EMPTY_STRING : endRowKey);
        
        return generateSharedAccessSignatureHashHelper(stringToSign, client.getCredentials());
    }
public static String generateSharedAccessSignatureHashForTable(
            final SharedAccessTablePolicy policy, final String accessPolicyIdentifier, final String resourceName,
            final IPRange ipRange, final SharedAccessProtocols protocols, final String startPartitionKey,
            final String startRowKey, final String endPartitionKey, final String endRowKey, final ServiceClient client)
            throws InvalidKeyException, StorageException {

        String stringToSign = generateSharedAccessSignatureStringToSign(
                policy, resourceName, ipRange, protocols, accessPolicyIdentifier);
        
        stringToSign = String.format("%s\n%s\n%s\n%s\n%s", stringToSign,
                startPartitionKey == null ? Constants.EMPTY_STRING : startPartitionKey,
                startRowKey == null ? Constants.EMPTY_STRING : startRowKey,
                endPartitionKey == null ? Constants.EMPTY_STRING : endPartitionKey,
                endRowKey == null ? Constants.EMPTY_STRING : endRowKey);
        
        return generateSharedAccessSignatureHashHelper(stringToSign, client.getCredentials());
    }
public static String generateSharedAccessSignatureHashForTable ( final SharedAccessTablePolicy policy , final String accessPolicyIdentifier , final String resourceName , final IPRange ipRange , final SharedAccessProtocols protocols , final String startPartitionKey , final String startRowKey , final String endPartitionKey , final String endRowKey , final ServiceClient client ) throws InvalidKeyException , StorageException { String stringToSign = generateSharedAccessSignatureStringToSign ( policy , resourceName , ipRange , protocols , accessPolicyIdentifier ) ; stringToSign = String . format ( "%s\n%s\n%s\n%s\n%s" , stringToSign , startPartitionKey == null ? Constants . EMPTY_STRING : startPartitionKey , startRowKey == null ? Constants . EMPTY_STRING : startRowKey , endPartitionKey == null ? Constants . EMPTY_STRING : endPartitionKey , endRowKey == null ? Constants . EMPTY_STRING : endRowKey ) ; return generateSharedAccessSignatureHashHelper ( stringToSign , client . getCredentials ( ) ) ; }
Get the signature hash embedded inside the Shared Access Signature for the table service.

@param policy
The shared access policy to hash.
@param accessPolicyIdentifier
An optional identifier for the policy.
@param resourceName
The resource name.
@param ipRange
The range of IP addresses to hash.
@param protocols
The Internet protocols to hash.
@param startPartitionKey
An optional restriction of the beginning of the range of partition keys to hash.
@param startRowKey
An optional restriction of the beginning of the range of row keys to hash.
@param endPartitionKey
An optional restriction of the end of the range of partition keys to hash.
@param endRowKey
An optional restriction of the end of the range of row keys to hash.
@param client
The ServiceClient associated with the object.

@return The signature hash embedded inside the Shared Access Signature.
@throws InvalidKeyException
@throws StorageException
Get the signature hash embedded inside the Shared Access Signature for the table service .