Class Reference
Inheritance diagram for

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 ( String  apiKey,
String  secretKey 
) ( String  apiKey,
SignatureGenerator  signatureGenerator 

Member Function Documentation

URL ( 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)

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)
a secure NSURL created from the parameters using one of the supported security methods