public class UserInfoTokenServices extends Object implements org.springframework.security.oauth2.provider.token.ResourceServerTokenServices
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 |
setResources(Map<String,org.springframework.security.oauth2.client.OAuth2RestOperations> resources) |
public void setResources(Map<String,org.springframework.security.oauth2.client.OAuth2RestOperations> resources)
public org.springframework.security.oauth2.provider.OAuth2Authentication loadAuthentication(String accessToken) throws org.springframework.security.core.AuthenticationException, org.springframework.security.oauth2.common.exceptions.InvalidTokenException
loadAuthentication
in interface org.springframework.security.oauth2.provider.token.ResourceServerTokenServices
org.springframework.security.core.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.