Module com.tenduke.client.openid
Package com.tenduke.client.openid
Class OpenIdAuthorizationCodeFlow
- java.lang.Object
-
- com.tenduke.client.oauth.AbstractOAuthFlow<C,RQ,RS>
-
- com.tenduke.client.oauth.authorizationcode.AbstractAuthorizationCodeFlow<OpenIdAuthorizationCodeConfig,OpenIdAuthorizationCodeRequest,OpenIdAuthorizationCodeResponse>
-
- com.tenduke.client.openid.OpenIdAuthorizationCodeFlow
-
- All Implemented Interfaces:
OAuthFlow<OpenIdAuthorizationCodeResponse>
public class OpenIdAuthorizationCodeFlow extends AbstractAuthorizationCodeFlow<OpenIdAuthorizationCodeConfig,OpenIdAuthorizationCodeRequest,OpenIdAuthorizationCodeResponse>
OAuth 2 flow for OpenId Connect with Authorization Code.
-
-
Constructor Summary
Constructors Constructor Description OpenIdAuthorizationCodeFlow(OpenIdAuthorizationCodeRequest request, IdTokenValidator idTokenValidator, OpenIdAuthorizationCodeTokenRequestFactory tokenRequest)Constructs new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected OpenIdAuthorizationCodeResponseexchangeCodeToToken(String authorizationCode)-
Methods inherited from class com.tenduke.client.oauth.authorizationcode.AbstractAuthorizationCodeFlow
extractResponse, process
-
Methods inherited from class com.tenduke.client.oauth.AbstractOAuthFlow
decode, getFirst, getRequest, parseQuery, parseUri, state, verifyState
-
-
-
-
Constructor Detail
-
OpenIdAuthorizationCodeFlow
public OpenIdAuthorizationCodeFlow(OpenIdAuthorizationCodeRequest request, IdTokenValidator idTokenValidator, OpenIdAuthorizationCodeTokenRequestFactory tokenRequest)
Constructs new instance.- Parameters:
request- -idTokenValidator- -tokenRequest- -
-
-
Method Detail
-
exchangeCodeToToken
protected OpenIdAuthorizationCodeResponse exchangeCodeToToken(String authorizationCode) throws InterruptedException, OAuthException
-
-