public class AuthorizationCodeAuthenticator extends java.lang.Object implements AuthorizationGrantAuthenticator<AuthorizationCodeAuthenticationToken>
AuthorizationGrantAuthenticator
that
"authenticates" an authorization code grant credential
against an OAuth 2.0 Provider's Token Endpoint.Constructor and Description |
---|
AuthorizationCodeAuthenticator(AuthorizationGrantTokenExchanger<AuthorizationCodeAuthenticationToken> authorizationCodeTokenExchanger) |
Modifier and Type | Method and Description |
---|---|
OAuth2ClientAuthenticationToken |
authenticate(AuthorizationCodeAuthenticationToken authorizationCodeAuthentication) |
public AuthorizationCodeAuthenticator(AuthorizationGrantTokenExchanger<AuthorizationCodeAuthenticationToken> authorizationCodeTokenExchanger)
public OAuth2ClientAuthenticationToken authenticate(AuthorizationCodeAuthenticationToken authorizationCodeAuthentication) throws OAuth2AuthenticationException
authenticate
in interface AuthorizationGrantAuthenticator<AuthorizationCodeAuthenticationToken>
OAuth2AuthenticationException