com.ooyala.android.EmbeddedSecureURLGenerator Class Reference
Inheritance diagram for com.ooyala.android.EmbeddedSecureURLGenerator:
com.ooyala.android.SecureURLGenerator

Public Member Functions

 EmbeddedSecureURLGenerator (String apiKey, String secretKey)
 
 EmbeddedSecureURLGenerator (String apiKey, SignatureGenerator signatureGenerator)
 
URL secureURL (String host, String uri, Map< String, String > params)
 Generate the secure URL. More...
 

Constructor & Destructor Documentation

com.ooyala.android.EmbeddedSecureURLGenerator.EmbeddedSecureURLGenerator ( String  apiKey,
String  secretKey 
)
com.ooyala.android.EmbeddedSecureURLGenerator.EmbeddedSecureURLGenerator ( String  apiKey,
SignatureGenerator  signatureGenerator 
)

Member Function Documentation

URL com.ooyala.android.EmbeddedSecureURLGenerator.secureURL ( String  host,
String  uri,
Map< String, String >  params 
)

Generate the secure URL.

This method should use one of the following security method to create a complete NSURL:

  • Create a signature from the parameters (including API Key and Domain, which are not guarenteed to be in params) and a secret
  • Create a URL by appending the params (making sure to URL encode the signature)

Parameters
hostthe hostname for the URL
urithe URI for the URL
paramsthe URI params for the URL (not including any security params that the security method would use)
Returns
a secure NSURL created from the parameters using one of the supported security methods

Implements com.ooyala.android.SecureURLGenerator.