public interface OpenIdContext extends Serializable
| Modifier and Type | Method and Description |
|---|---|
AccessToken |
getAccessToken()
Gets the authorization token that was received from the OpenId Connect
provider
|
Set<String> |
getCallerGroups()
Gets the groups associated with the caller
|
String |
getCallerName()
Gets the caller name of the validated caller
|
OpenIdClaims |
getClaims()
Gets the User Claims that was received from the userinfo endpoint
|
javax.json.JsonObject |
getClaimsJson()
Gets the User Claims that was received from the userinfo endpoint
|
Optional<Long> |
getExpiresIn()
Return the time that the access token is granted for, if it is set to
expire
|
IdentityToken |
getIdentityToken()
Gets the identity token that was received from the OpenId Connect
provider
|
javax.json.JsonObject |
getProviderMetadata()
The OpenId Connect Provider's metadata document fetched via provider URI.
|
Optional<RefreshToken> |
getRefreshToken()
Returns the refresh token that can be used to get a new access token
|
String |
getSubject()
Subject Identifier.
|
String |
getTokenType()
Gets the token type value.
|
void |
logout(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Invalidates the RP's active OpenId Connect session and if
LogoutDefinition.notifyProvider()
set to true then redirect the End-User's User Agent to the
end_session_endpoint to notify the OP that the user has logged
out of the RP's application and ask the user whether they want to logout
from the OP as well. |
String getCallerName()
String getSubject()
String getTokenType()
AccessToken getAccessToken()
IdentityToken getIdentityToken()
Optional<RefreshToken> getRefreshToken()
Optional<Long> getExpiresIn()
javax.json.JsonObject getClaimsJson()
OpenIdClaims getClaims()
OpenIdClaims instancejavax.json.JsonObject getProviderMetadata()
void logout(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
LogoutDefinition.notifyProvider()
set to true then redirect the End-User's User Agent to the
end_session_endpoint to notify the OP that the user has logged
out of the RP's application and ask the user whether they want to logout
from the OP as well. After successful logout, the End-User's User Agent
redirect back to the RP's post_redirect_uri
configured via
LogoutDefinition.redirectURI()request - response - Copyright © 2021. All rights reserved.