public class OidcClientAuthenticationToken extends OAuth2ClientAuthenticationToken
OAuth2ClientAuthenticationToken
that represents an
OpenID Connect 1.0 Client Authentication
(also known as Relying Party).
A client is considered "authenticated",
if it receives a successful response from the Token Endpoint.
This Authentication
associates the client identified in OAuth2ClientAuthenticationToken.getClientRegistration()
to the OAuth2ClientAuthenticationToken.getAccessToken()
granted by the resource owner along with the getIdToken()
containing Claims about the authentication of the End-User.
IdToken
,
OAuth2ClientAuthenticationToken
,
3.1.3.3 Successful Token Response,
Serialized FormConstructor and Description |
---|
OidcClientAuthenticationToken(ClientRegistration clientRegistration,
AccessToken accessToken,
IdToken idToken) |
Modifier and Type | Method and Description |
---|---|
IdToken |
getIdToken() |
getAccessToken, getAuthorizedScope, getClientRegistration, getCredentials, getPrincipal
equals, eraseCredentials, getAuthorities, getDetails, getName, hashCode, isAuthenticated, setAuthenticated, setDetails, toString
public OidcClientAuthenticationToken(ClientRegistration clientRegistration, AccessToken accessToken, IdToken idToken)
public IdToken getIdToken()