* @return The URL
* @throws MalformedURLException
*/
public URL buildAuthenticationUrl(Permission permission, String frob) throws MalformedURLException {
List parameters = new ArrayList();
parameters.add(new Parameter("api_key", apiKey));
parameters.add(new Parameter("perms", permission.toString()));
parameters.add(new Parameter("frob", frob));
// The parameters in the url must be signed
parameters.add(new Parameter("api_sig", AuthUtilities.getSignature(sharedSecret, parameters)));
String host = transportAPI.getHost();
int port = transportAPI.getPort();
String path = "/services/auth/";