com.aetrion.flickr.auth
Class AuthUtilities

java.lang.Object
  extended by com.aetrion.flickr.auth.AuthUtilities

public class AuthUtilities
extends java.lang.Object

Utilities used by the authentication API.

Version:
$Id: AuthUtilities.java,v 1.10 2008/07/09 21:13:59 x-mago Exp $
Author:
Anthony Eden

Constructor Summary
AuthUtilities()
           
 
Method Summary
static void addAuthToken(java.util.List params)
          Adds the auth_token to the parameter list if it is necessary.
static java.lang.String getMultipartSignature(java.util.List parameters)
          Deprecated.  
static java.lang.String getMultipartSignature(java.lang.String sharedSecret, java.util.List params)
           
static java.lang.String getSignature(java.util.List parameters)
          Deprecated.  
static java.lang.String getSignature(java.lang.String sharedSecret, java.util.List params)
          Get a signature for a list of parameters using the given shared secret.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AuthUtilities

public AuthUtilities()
Method Detail

getSignature

public static java.lang.String getSignature(java.util.List parameters)
Deprecated. 

Get a signature for a list of parameters using the shared secret from the RequestContext.

Parameters:
parameters - The parameters
Returns:
The signature String

getMultipartSignature

public static java.lang.String getMultipartSignature(java.util.List parameters)
Deprecated. 

Parameters:
parameters -
Returns:
The signature String

getSignature

public static java.lang.String getSignature(java.lang.String sharedSecret,
                                            java.util.List params)
Get a signature for a list of parameters using the given shared secret.

Parameters:
sharedSecret - The shared secret
params - The parameters
Returns:
The signature String

getMultipartSignature

public static java.lang.String getMultipartSignature(java.lang.String sharedSecret,
                                                     java.util.List params)

addAuthToken

public static void addAuthToken(java.util.List params)
Adds the auth_token to the parameter list if it is necessary.

Parameters:
params -


Copyright (C) 2005-2008 Aetrion LLC. All Rights Reserved.