public class PingFederateJWTTokenServices
extends java.lang.Object
implements org.springframework.security.oauth2.provider.token.ResourceServerTokenServices
Constructor and Description |
---|
PingFederateJWTTokenServices(org.jose4j.jwt.consumer.JwtConsumer jwtConsumer,
com.netflix.spectator.api.Registry registry)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
org.springframework.security.oauth2.provider.OAuth2Authentication |
loadAuthentication(java.lang.String accessToken)
Load the credentials for the specified access token.
|
org.springframework.security.oauth2.common.OAuth2AccessToken |
readAccessToken(java.lang.String accessToken) |
public PingFederateJWTTokenServices(@NotNull org.jose4j.jwt.consumer.JwtConsumer jwtConsumer, @NotNull com.netflix.spectator.api.Registry registry)
jwtConsumer
- The JWT consumer 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.ResourceServerTokenServices
accessToken
- The access token value.org.springframework.security.core.AuthenticationException
- If the access token is expiredorg.springframework.security.oauth2.common.exceptions.InvalidTokenException
- if the token isn't validpublic org.springframework.security.oauth2.common.OAuth2AccessToken readAccessToken(java.lang.String accessToken)
Not implemented for Genie and Ping Federate.
readAccessToken
in interface org.springframework.security.oauth2.provider.token.ResourceServerTokenServices