Class OpenIdCredentials
java.lang.Object
org.eclipse.jetty.security.openid.OpenIdCredentials
- All Implemented Interfaces:
Serializable
The credentials of an user to be authenticated with OpenID Connect. This will contain the OpenID ID Token and the OAuth 2.0 Access Token.
This is constructed with an authorization code from the authentication request. This authorization code
is then exchanged using redeemAuthCode(OpenIdConfiguration)
for a response containing the ID Token and Access Token.
The response is then validated against the OpenIdConfiguration
.
- See Also:
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionOpenIdCredentials
(String authCode, String redirectUri) OpenIdCredentials
(Map<String, Object> claims) -
Method Summary
Modifier and TypeMethodDescriptionstatic boolean
checkExpiry
(Map<String, Object> claims) claimAuthCode
(OpenIdConfiguration configuration) boolean
void
redeemAuthCode
(OpenIdConfiguration configuration) private void
validateAudience
(OpenIdConfiguration configuration) private void
validateClaims
(OpenIdConfiguration configuration)
-
Field Details
-
LOG
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
redirectUri
-
authCode
-
response
-
claims
-
verified
private boolean verified
-
-
Constructor Details
-
OpenIdCredentials
-
OpenIdCredentials
-
-
Method Details
-
getUserId
-
getClaims
-
getResponse
-
redeemAuthCode
- Throws:
Exception
-
validateClaims
- Throws:
Exception
-
isExpired
public boolean isExpired() -
checkExpiry
-
validateAudience
private void validateAudience(OpenIdConfiguration configuration) throws OpenIdCredentials.AuthenticationException -
claimAuthCode
- Throws:
Exception
-