org.springframework.security.oauth.consumer.token
Interface OAuthConsumerTokenServices

All Known Implementing Classes:
HttpSessionBasedTokenServices

public interface OAuthConsumerTokenServices

Token services for an OAuth consumer.

Author:
Ryan Heaton

Method Summary
 OAuthConsumerToken getToken(java.lang.String resourceId)
          Get the token for the specified protected resource.
 void storeToken(java.lang.String resourceId, OAuthConsumerToken token)
          Store a token for a specified resource.
 

Method Detail

getToken

OAuthConsumerToken getToken(java.lang.String resourceId)
                            throws org.springframework.security.AuthenticationException
Get the token for the specified protected resource.

Parameters:
resourceId - The id of the protected resource.
Returns:
The token, or null if none was found.
Throws:
org.springframework.security.AuthenticationException

storeToken

void storeToken(java.lang.String resourceId,
                OAuthConsumerToken token)
Store a token for a specified resource.

Parameters:
resourceId - The id of the protected resource.
token - The token to store.


Copyright © 2008. All Rights Reserved.