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(String resourceId)
          Get the token for the specified protected resource.
 void removeToken(String resourceId)
          Removes the token for the specified resource.
 void storeToken(String resourceId, OAuthConsumerToken token)
          Store a token for a specified resource.
 

Method Detail

getToken

OAuthConsumerToken getToken(String resourceId)
                            throws org.springframework.security.core.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.core.AuthenticationException

storeToken

void storeToken(String resourceId,
                OAuthConsumerToken token)
Store a token for a specified resource. If the token is not an access token, the token services may not have to store it and instead rely on the implementation of the remember-me services.

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

removeToken

void removeToken(String resourceId)
Removes the token for the specified resource.

Parameters:
resourceId - The id of the resource.


Copyright © 2012. All Rights Reserved.