public class UserInfoTokenServices extends Object implements org.springframework.security.oauth2.provider.token.ResourceServerTokenServices
ResourceServerTokenServices
that uses a user info REST service.Modifier and Type | Field and Description |
---|---|
protected org.apache.commons.logging.Log |
logger |
Constructor and Description |
---|
UserInfoTokenServices(String userInfoEndpointUrl,
String clientId) |
Modifier and Type | Method and Description |
---|---|
org.springframework.security.oauth2.provider.OAuth2Authentication |
loadAuthentication(String accessToken) |
org.springframework.security.oauth2.common.OAuth2AccessToken |
readAccessToken(String accessToken) |
void |
setRestTemplate(org.springframework.security.oauth2.client.OAuth2RestOperations restTemplate) |
void |
setTokenType(String tokenType) |
public void setTokenType(String tokenType)
public void setRestTemplate(org.springframework.security.oauth2.client.OAuth2RestOperations restTemplate)
public org.springframework.security.oauth2.provider.OAuth2Authentication loadAuthentication(String accessToken) throws AuthenticationException, org.springframework.security.oauth2.common.exceptions.InvalidTokenException
loadAuthentication
in interface org.springframework.security.oauth2.provider.token.ResourceServerTokenServices
AuthenticationException
org.springframework.security.oauth2.common.exceptions.InvalidTokenException
public org.springframework.security.oauth2.common.OAuth2AccessToken readAccessToken(String accessToken)
readAccessToken
in interface org.springframework.security.oauth2.provider.token.ResourceServerTokenServices
Copyright © 2015 Pivotal Software, Inc.. All rights reserved.