Static Public Member Functions

AmazonAuthUtils Class Reference

Utilities for signing requests. More...

#import <AmazonAuthUtils.h>

List of all members.

Static Public Member Functions

(NSString *) + getAuthorization:forBucket:forVerb:accessKey:secretKey:
(NSString *) + getSignature:forBucket:forVerb:secretKey:
(NSString *) + HMACSign:withKey:usingAlgorithm:
 Compute a keyed hash of some data with a specified key and algorithm.

Detailed Description

Utilities for signing requests.


Member Function Documentation

+ (NSString * AmazonAuthUtils.)HMACSign: (NSData *)  data
withKey: (NSString *)  key
usingAlgorithm: (CCHmacAlgorithm)  algorithm 

Compute a keyed hash of some data with a specified key and algorithm.

Parameters:
data The data to sign
key The key to sign the data with
algorithm Which HMAC algortithm to use. Currently support kCCHmacAlgSHA1 and kCCHmacAlgSHA256.
Returns:
Base64 encoded string that is the signature of the data with the specified key.

The documentation for this class was generated from the following file: