@Deprecated public class HttpSessionBasedTokenServices extends Object implements OAuthConsumerTokenServices
| Modifier and Type | Field and Description |
|---|---|
static String |
KEY_PREFIX
Deprecated.
|
| Constructor and Description |
|---|
HttpSessionBasedTokenServices()
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
protected javax.servlet.http.HttpSession |
getSession()
Deprecated.
|
OAuthConsumerToken |
getToken(String resourceId)
Deprecated.
Get the token for the specified protected resource.
|
void |
removeToken(String resourceId)
Deprecated.
Removes the token for the specified resource.
|
void |
storeToken(String resourceId,
OAuthConsumerToken token)
Deprecated.
Store a token for a specified resource.
|
public static final String KEY_PREFIX
public OAuthConsumerToken getToken(String resourceId) throws org.springframework.security.core.AuthenticationException
OAuthConsumerTokenServicesgetToken in interface OAuthConsumerTokenServicesresourceId - The id of the protected resource.org.springframework.security.core.AuthenticationExceptionpublic void storeToken(String resourceId, OAuthConsumerToken token)
OAuthConsumerTokenServicesis not an access token,
the token services may not have to store it and instead rely on the implementation of the
remember-me services.storeToken in interface OAuthConsumerTokenServicesresourceId - The id of the protected resource.token - The token to store.public void removeToken(String resourceId)
OAuthConsumerTokenServicesremoveToken in interface OAuthConsumerTokenServicesresourceId - The id of the resource.protected javax.servlet.http.HttpSession getSession()
Copyright © 2020. All rights reserved.