parameters.add(new Parameter("frob", frob));
// This method call must be signed.
parameters.add(new Parameter("api_sig", AuthUtilities.getSignature(sharedSecret, parameters)));
Response response = transportAPI.get(transportAPI.getPath(), parameters);
if (response.isError()) {
throw new FlickrException(response.getErrorCode(), response.getErrorMessage());
}
Auth auth = new Auth();
Element authElement = response.getPayload();
auth.setToken(XMLUtilities.getChildValue(authElement, "token"));
auth.setPermission(Permission.fromString(XMLUtilities.getChildValue(authElement, "perms")));
Element userElement = XMLUtilities.getChild(authElement, "user");
User user = new User();