Class OpenIdCredentials
- java.lang.Object
-
- org.eclipse.jetty.security.openid.OpenIdCredentials
-
- All Implemented Interfaces:
java.io.Serializable
public class OpenIdCredentials extends java.lang.Object implements java.io.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(HttpClient)
for a response containing the ID Token and Access Token. The response is then validated against theOpenIdConfiguration
.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description OpenIdCredentials(java.lang.String authCode, java.lang.String redirectUri, OpenIdConfiguration configuration)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Map<java.lang.String,java.lang.Object>
getClaims()
java.util.Map<java.lang.String,java.lang.Object>
getResponse()
java.lang.String
getUserId()
boolean
isExpired()
void
redeemAuthCode(HttpClient httpClient)
-
-
-
Constructor Detail
-
OpenIdCredentials
public OpenIdCredentials(java.lang.String authCode, java.lang.String redirectUri, OpenIdConfiguration configuration)
-
-
Method Detail
-
getUserId
public java.lang.String getUserId()
-
getClaims
public java.util.Map<java.lang.String,java.lang.Object> getClaims()
-
getResponse
public java.util.Map<java.lang.String,java.lang.Object> getResponse()
-
redeemAuthCode
public void redeemAuthCode(HttpClient httpClient) throws java.lang.Exception
- Throws:
java.lang.Exception
-
isExpired
public boolean isExpired()
-
-