public class OAuth2AuthorizationCodeAuthenticationToken
extends AbstractAuthenticationToken
Authentication
implementation used for the OAuth 2.0 Authorization Code Grant.AbstractAuthenticationToken
, OAuth2AuthorizationCodeAuthenticationProvider
, OAuth2ClientAuthenticationToken
Constructor and Description |
---|
OAuth2AuthorizationCodeAuthenticationToken(String code, Authentication clientPrincipal, String redirectUri) Constructs an OAuth2AuthorizationCodeAuthenticationToken using the provided parameters. |
Modifier and Type | Method and Description |
---|---|
String | getCode() Returns the authorization code. |
Object | getCredentials() |
Object | getPrincipal() |
String | getRedirectUri() Returns the redirect uri. |
public OAuth2AuthorizationCodeAuthenticationToken(String code, Authentication clientPrincipal, String redirectUri)
OAuth2AuthorizationCodeAuthenticationToken
using the provided parameters.code
- the authorization codeclientPrincipal
- the authenticated client principalredirectUri
- the redirect uri