public class UserInfoRequest extends Object implements Serializable
/auth/userinfo API.
token(REQUIRED)An access token to get user information.
clientCertificate(OPTIONAL)The client certificate from the MTLS of the userinfo request from the client application. See RFC 8705 (OAuth 2.0 Mutual-TLS Client Authentication and Certificate-Bound Access Tokens) for details.
dpop(OPTIONAL)The value of the
DPoPHTTP header. See "OAuth 2.0 Demonstration of Proof-of-Possession at the Application Layer (DPoP)" for details.htm(OPTIONAL)The HTTP method of the userinfo request. In normal cases, the value should be either
"GET"or"POST". See "OAuth 2.0 Demonstration of Proof-of-Possession at the Application Layer (DPoP)" for details.htu(OPTIONAL)The URL of the userinfo endpoint. If omitted, the
userInfoEndpointproperty ofServiceis used as the default value. See "OAuth 2.0 Demonstration of Proof-of-Possession at the Application Layer (DPoP)" for details.
| Constructor and Description |
|---|
UserInfoRequest() |
| Modifier and Type | Method and Description |
|---|---|
String |
getClientCertificate()
Get the client certificate used in the TLS connection established
between the client application and the userinfo endpoint.
|
String |
getDpop()
Get the
DPoP header presented by the client during the request
to the userinfo endpoint. |
String |
getHtm()
Get the HTTP method of the userinfo request.
|
String |
getHtu()
Get the URL of the userinfo endpoint.
|
String |
getToken()
Get the access token which has come along with the userinfo
request from the client application.
|
UserInfoRequest |
setClientCertificate(String certificate)
Set the client certificate used in the TLS connection established
between the client application and the userinfo endpoint.
|
UserInfoRequest |
setDpop(String dpop)
Set the
DPoP header presented by the client during the request
to the userinfo endpoint. |
UserInfoRequest |
setHtm(String htm)
Set the HTTP method of the userinfo request.
|
UserInfoRequest |
setHtu(String htu)
Set the URL of the userinfo endpoint.
|
UserInfoRequest |
setToken(String token)
Set the access token which has been issued by Authlete.
|
public String getToken()
public UserInfoRequest setToken(String token)
public String getClientCertificate()
public UserInfoRequest setClientCertificate(String certificate)
The value of this request parameter is referred to when the access token given to the userinfo endpoint was bound to a client certificate when it was issued. See "OAuth 2.0 Mutual TLS Client Authentication and Certificate-Bound Access Tokens" for details about the specification of certificate-bound access tokens.
certificate - The client certificate in PEM format.this object.public String getDpop()
DPoP header presented by the client during the request
to the userinfo endpoint. The header contains a signed JWT which
includes the public key that is paired with the private key used to
sign the JWT.
See "OAuth 2.0 Demonstration of Proof-of-Possession at the Application Layer (DPoP)" for details.
DPoP header string.public UserInfoRequest setDpop(String dpop)
DPoP header presented by the client during the request
to the userinfo endpoint. The header contains a signed JWT which
includes the public key that is paired with the private key used to
sign the JWT.
See "OAuth 2.0 Demonstration of Proof-of-Possession at the Application Layer (DPoP)" for details.
dpop - The DPoP header string.this object.public String getHtm()
DPoP header.
In normal cases, the value is either "GET" or "POST".
See "OAuth 2.0 Demonstration of Proof-of-Possession at the Application Layer (DPoP)" for details.
"GET".public UserInfoRequest setHtm(String htm)
DPoP header.
In normal cases, the value is either "GET" or "POST".
See "OAuth 2.0 Demonstration of Proof-of-Possession at the Application Layer (DPoP)" for details.
htm - The HTTP method as a string. For example, "GET".this object.public String getHtu()
DPoP header.
If this parameter is omitted, the userInfoEndpoint property
of the Service is used as the default value.
See "OAuth 2.0 Demonstration of Proof-of-Possession at the Application Layer (DPoP)" for details.
public UserInfoRequest setHtu(String htu)
DPoP header.
If this parameter is omitted, the userInfoEndpoint property
of the Service is used as the default value.
See "OAuth 2.0 Demonstration of Proof-of-Possession at the Application Layer (DPoP)" for details.
htu - The URL of the userinfo endpoint.this object.Copyright © 2021. All rights reserved.