@ApplicationScoped public class TokenController extends Object
| Constructor and Description |
|---|
TokenController() |
| Modifier and Type | Method and Description |
|---|---|
javax.ws.rs.core.Response |
getTokens(OpenIdConfiguration configuration,
javax.servlet.http.HttpServletRequest request)
(4) A Client makes a token request to the token endpoint and the OpenId
Provider responds with an ID Token and an Access Token.
|
javax.ws.rs.core.Response |
refreshTokens(OpenIdConfiguration configuration,
RefreshToken refreshToken)
Makes a refresh request to the token endpoint and the OpenId Provider
responds with a new (updated) Access Token and Refreshs Token.
|
Map<String,Object> |
validateAccessToken(AccessTokenImpl accessToken,
com.nimbusds.jose.Algorithm idTokenAlgorithm,
Map<String,Object> idTokenClaims,
OpenIdConfiguration configuration)
(5.2) Validate the Access Token & it's claims and verify the signature.
|
Map<String,Object> |
validateIdToken(IdentityTokenImpl idToken,
javax.security.enterprise.authentication.mechanism.http.HttpMessageContext httpContext,
OpenIdConfiguration configuration)
(5.1) Validate Id Token's claims and verify ID Token's signature.
|
Map<String,Object> |
validateRefreshedIdToken(IdentityToken previousIdToken,
IdentityTokenImpl newIdToken,
javax.security.enterprise.authentication.mechanism.http.HttpMessageContext httpContext,
OpenIdConfiguration configuration)
Validate Id Token received from Successful Refresh Response.
|
public javax.ws.rs.core.Response getTokens(OpenIdConfiguration configuration, javax.servlet.http.HttpServletRequest request)
configuration - request - public Map<String,Object> validateIdToken(IdentityTokenImpl idToken, javax.security.enterprise.authentication.mechanism.http.HttpMessageContext httpContext, OpenIdConfiguration configuration)
idToken - httpContext - configuration - public Map<String,Object> validateRefreshedIdToken(IdentityToken previousIdToken, IdentityTokenImpl newIdToken, javax.security.enterprise.authentication.mechanism.http.HttpMessageContext httpContext, OpenIdConfiguration configuration)
previousIdToken - newIdToken - httpContext - configuration - public Map<String,Object> validateAccessToken(AccessTokenImpl accessToken, com.nimbusds.jose.Algorithm idTokenAlgorithm, Map<String,Object> idTokenClaims, OpenIdConfiguration configuration)
accessToken - idTokenAlgorithm - idTokenClaims - configuration - public javax.ws.rs.core.Response refreshTokens(OpenIdConfiguration configuration, RefreshToken refreshToken)
configuration - refreshToken - Refresh Token received from previous token request.Copyright © 2019. All rights reserved.