public interface OIDCAuthenticationContext
OIDCAuthenticationContext holds the tokens used in the OIDC authentication process.| Modifier and Type | Field | Description |
|---|---|---|
static java.lang.String |
SERVLET_REQUEST_ATTRIBUTE_NAME |
The HTTP request attribute key used to access the OIDC (OpenID Connect) authentication context.
|
| Modifier and Type | Method | Description |
|---|---|---|
java.lang.String |
getAccessToken() |
Obtain the Access token as a
String. |
java.lang.String |
getIDToken() |
Obtain the OIDC ID token as a
String in JWT format. |
java.lang.String |
getIDTokenClaimAsString(java.lang.String claimID) |
Obtain the
String value for the specified claim ID contained within the ID token. |
java.util.Set<java.lang.String> |
getIDTokenClaimNames() |
Obtain a
Set of all valid claim IDs contained within the ID token. |
jakarta.json.JsonObject |
getIDTokenClaimsAsJson() |
Obtain all key/value pairs contained within the ID token claims.
|
static final java.lang.String SERVLET_REQUEST_ATTRIBUTE_NAME
java.lang.String getIDToken()
String in JWT format.String with the ID token or null if the token is not available.java.lang.String getAccessToken()
String.String with the Access token or null if the token is not available.java.util.Set<java.lang.String> getIDTokenClaimNames()
Set of all valid claim IDs contained within the ID token.Set with the claim names used by the ID token.java.lang.IllegalArgumentException - if the ID token is absent or cannot be parsed.java.lang.String getIDTokenClaimAsString(java.lang.String claimID)
String value for the specified claim ID contained within the ID token.claimID - The claim ID associated with the requested claim.String value associated with the claim ID.java.lang.IllegalArgumentException - if claim is not found within the ID token.java.lang.IllegalArgumentException - if the ID token is absent or cannot be parsed.jakarta.json.JsonObject getIDTokenClaimsAsJson()
JsonObject with the claim ID value pairs contained within the ID token claims.java.lang.IllegalArgumentException - if the ID token is absent or cannot be parsed.