org.exoplatform.ws.security.oauth
Interface OAuthConsumerService

All Known Implementing Classes:
OAuthConsumerServiceImpl

public interface OAuthConsumerService

Version:
$Id: $
Author:
Andrey Parfonov

Method Summary
 net.oauth.OAuthAccessor getAccessor(net.oauth.OAuthMessage oauthMessage)
          Get accessor, if accessor not found new one must be created.
 void removeAccessor(net.oauth.OAuthMessage oauthMessage)
          Remove accessor, can be used for removing accessor when client logout.
 

Method Detail

getAccessor

net.oauth.OAuthAccessor getAccessor(net.oauth.OAuthMessage oauthMessage)
                                    throws net.oauth.OAuthProblemException
Get accessor, if accessor not found new one must be created.

Parameters:
oauthMessage - the OAuthMessage. Must have at least two parameters
Returns:
satisfied accessor.
Throws:
net.oauth.OAuthProblemException - if can't get accessor and can't create new one.
See Also:
net.oauth.OAuth.OAUTH_TOKEN,, net.oauth.OAuth.OAUTH_TOKEN_SECRET.

removeAccessor

void removeAccessor(net.oauth.OAuthMessage oauthMessage)
                    throws net.oauth.OAuthProblemException
Remove accessor, can be used for removing accessor when client logout.

Parameters:
oauthMessage - the OAuthMessage. Must have at least two parameters
Throws:
net.oauth.OAuthProblemException - if accessor can't be removed.
See Also:
net.oauth.OAuth.OAUTH_TOKEN,, net.oauth.OAuth.OAUTH_TOKEN_SECRET.


Copyright © 2009 eXo Platform SAS. All Rights Reserved.