/** * Get the signature hash embedded inside the Shared Access Signature for queue 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 client * The ServiceClient associated with the object. * * @return The signature hash embedded inside the Shared Access Signature. * @throws InvalidKeyException * @throws StorageException */ public static String generateSharedAccessSignatureHashForQueue( final SharedAccessQueuePolicy policy, final String accessPolicyIdentifier, final String resourceName, final IPRange ipRange, final SharedAccessProtocols protocols, final ServiceClient client) throws InvalidKeyException, StorageException { final String stringToSign = generateSharedAccessSignatureStringToSign( policy, resourceName, ipRange, protocols, accessPolicyIdentifier); return generateSharedAccessSignatureHashHelper(stringToSign, client.getCredentials()); }
endRowKey == null ? Constants.EMPTY_STRING : endRowKey); return generateSharedAccessSignatureHashHelper(stringToSign, client.getCredentials());
endRowKey == null ? Constants.EMPTY_STRING : endRowKey); return generateSharedAccessSignatureHashHelper(stringToSign, client.getCredentials());
/** * Get the signature hash embedded inside the Shared Access Signature for queue 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 client * The ServiceClient associated with the object. * * @return The signature hash embedded inside the Shared Access Signature. * @throws InvalidKeyException * @throws StorageException */ public static String generateSharedAccessSignatureHashForQueue( final SharedAccessQueuePolicy policy, final String accessPolicyIdentifier, final String resourceName, final IPRange ipRange, final SharedAccessProtocols protocols, final ServiceClient client) throws InvalidKeyException, StorageException { final String stringToSign = generateSharedAccessSignatureStringToSign( policy, resourceName, ipRange, protocols, accessPolicyIdentifier); return generateSharedAccessSignatureHashHelper(stringToSign, client.getCredentials()); }
contentType == null ? Constants.EMPTY_STRING : contentType); return generateSharedAccessSignatureHashHelper(stringToSign, client.getCredentials());
contentType == null ? Constants.EMPTY_STRING : contentType); return generateSharedAccessSignatureHashHelper(stringToSign, client.getCredentials());
Constants.HeaderConstants.TARGET_STORAGE_VERSION); return generateSharedAccessSignatureHashHelper(stringToSign, creds);
Constants.HeaderConstants.TARGET_STORAGE_VERSION); return generateSharedAccessSignatureHashHelper(stringToSign, creds);