OOEmbeddedSignatureGenerator Class Reference

Default implementation of OOSignatureGenerator which will generate Ooyala API signatures using API secret. More...

#import "OOEmbeddedSignatureGenerator.h"

+ Inheritance diagram for OOEmbeddedSignatureGenerator:

Instance Methods

(id) - initWithSecret:
 Initialize an OOEmbeddedSignatureGenerator using the specified secret. More...
 
(NSString *) - sign:
 Generate the APIv2/SAS style signature. More...
 

Detailed Description

Default implementation of OOSignatureGenerator which will generate Ooyala API signatures using API secret.

OOEmbeddedSignatureGenerator.

Note that embedding your API secret into the app is not very secure. To minimize the risk, use read-only API keys if possible. Alternatively, implement your own OOSignatureGenerator and keep the API keys and secrets on server-side.

OOEmbeddedSignatureGenerator.h in OoyalaSDK

Method Documentation

- (id) initWithSecret: (NSString *)  theSecret

Initialize an OOEmbeddedSignatureGenerator using the specified secret.

Parameters
[in]theSecretthe secret to generate the signature with
Returns
the initialized OOEmbeddedSignatureGenerator
- (NSString *) sign: (NSString *)  data

Generate the APIv2/SAS style signature.

Parameters
[in]datathe NSString to create the signature from
Returns
an NSString containing the signature

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