<OOSignatureGenerator > Protocol Reference

A protocol which signs data based on Ooyala signature protocol. More...

#import <OOSignatureGenerator.h>

+ Inheritance diagram for <OOSignatureGenerator >:

Instance Methods

(NSString *) - sign:
 Generate the APIv2/SAS style signature. More...
 

Detailed Description

A protocol which signs data based on Ooyala signature protocol.

Method Documentation

- (NSString * OOSignatureGenerator) sign: (NSString *)  data

Generate the APIv2/SAS style signature.

This method should do the following:
  • Prepend the secret key to data
  • Hash the resulting string using the SHA256 algorithm
  • Base64 encode the resulting hash
  • Convert the Base64 encoded hash to an NSString
  • Truncate the NSString to 43 characters
  • Strip any '=' characters from the end of the truncated NSString
  • Return the resulting NSString
Parameters
[in]datathe NSString to create the signature from (not prepended with the secret key)
Returns
an NSString containing the signature

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