org.codegist.crest.security
Class OAuthentificationManager

java.lang.Object
  extended by org.codegist.crest.security.OAuthentificationManager
All Implemented Interfaces:
AuthentificationManager

public class OAuthentificationManager
extends Object
implements AuthentificationManager

OAuth authentification manager implementation.

Refresh implementation is based on oauth_session_handle token extra parameter

Author:
Laurent Gilles (laurent.gilles@codegist.org)

Constructor Summary
OAuthentificationManager(OAuthenticator oauth, Token accessToken)
           
 
Method Summary
 void refresh()
          Refresh the authentification information
 void sign(HttpRequest.Builder request, Pair<String,String>... properties)
          Sign the request
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OAuthentificationManager

public OAuthentificationManager(OAuthenticator oauth,
                                Token accessToken)
Method Detail

sign

public void sign(HttpRequest.Builder request,
                 Pair<String,String>... properties)
Description copied from interface: AuthentificationManager
Sign the request

Specified by:
sign in interface AuthentificationManager
Parameters:
request - request to be signed
properties - optional signing properties

refresh

public void refresh()
Description copied from interface: AuthentificationManager
Refresh the authentification information

Specified by:
refresh in interface AuthentificationManager


Copyright © 2011. All Rights Reserved.