public class PingFederateRemoteTokenServices
extends org.springframework.security.oauth2.provider.token.RemoteTokenServices
| Modifier and Type | Field and Description |
|---|---|
protected static java.lang.String |
API_TIMER_NAME |
protected static java.lang.String |
AUTHENTICATION_TIMER_NAME |
protected static java.lang.String |
CLIENT_ID_KEY |
protected static java.lang.String |
CLIENT_SECRET_KEY |
protected static java.lang.String |
ERROR_KEY |
protected static java.lang.String |
GRANT_TYPE |
protected static java.lang.String |
GRANT_TYPE_KEY |
protected static java.lang.String |
SCOPE_KEY |
protected static java.lang.String |
TOKEN_NAME_KEY |
| Constructor and Description |
|---|
PingFederateRemoteTokenServices(org.springframework.boot.autoconfigure.security.oauth2.resource.ResourceServerProperties serverProperties,
org.springframework.security.oauth2.provider.token.AccessTokenConverter converter,
com.netflix.spectator.api.Registry registry)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
org.springframework.security.oauth2.provider.OAuth2Authentication |
loadAuthentication(java.lang.String accessToken) |
protected void |
setRestTemplate(org.springframework.web.client.RestTemplate restTemplate)
Set the rest operations to use.
|
protected static final java.lang.String TOKEN_NAME_KEY
protected static final java.lang.String CLIENT_ID_KEY
protected static final java.lang.String CLIENT_SECRET_KEY
protected static final java.lang.String GRANT_TYPE_KEY
protected static final java.lang.String ERROR_KEY
protected static final java.lang.String SCOPE_KEY
protected static final java.lang.String GRANT_TYPE
protected static final java.lang.String AUTHENTICATION_TIMER_NAME
protected static final java.lang.String API_TIMER_NAME
public PingFederateRemoteTokenServices(@NotNull
org.springframework.boot.autoconfigure.security.oauth2.resource.ResourceServerProperties serverProperties,
@NotNull
org.springframework.security.oauth2.provider.token.AccessTokenConverter converter,
@NotNull
com.netflix.spectator.api.Registry registry)
serverProperties - The properties of the resource server (Genie)converter - The access token converter to useregistry - The metrics registry to usepublic org.springframework.security.oauth2.provider.OAuth2Authentication loadAuthentication(java.lang.String accessToken)
throws org.springframework.security.core.AuthenticationException,
org.springframework.security.oauth2.common.exceptions.InvalidTokenException
loadAuthentication in interface org.springframework.security.oauth2.provider.token.ResourceServerTokenServicesloadAuthentication in class org.springframework.security.oauth2.provider.token.RemoteTokenServicesorg.springframework.security.core.AuthenticationExceptionorg.springframework.security.oauth2.common.exceptions.InvalidTokenExceptionprotected void setRestTemplate(@NotNull
org.springframework.web.client.RestTemplate restTemplate)
restTemplate - The rest operations to use. Not null.