public class GMRequest extends Object implements Serializable
/api/gm API.
gmAction(REQUIRED)The grant management action of the grant management request. Either
QUERYorREVOKE.
grantId(REQUIRED)The grant ID of the grant management request.
accessToken(REQUIRED)The access token included in the grant management request.
clientCertificate(OPTIONAL)The client certificate used in the TLS connection established between the client application and the grant management endpoint. 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 Demonstrating Proof-of-Possession at the Application Layer (DPoP)" for details.htm(OPTIONAL)The HTTP method of the grant management request. Either
"GET"or"DELETE". This parameter is used to validate the value of theDPoPHTTP header. See "OAuth 2.0 Demonstrating Proof-of-Possession at the Application Layer (DPoP)" for details.API callers don't have to specify this parameter unless they have a special reason because the default value can be easily determined based on the value of
gmAction.htu(OPTIONAL)The URL of the grant management endpoint. This parameter is used to validate the value of the
DPoPHTTP header. See "OAuth 2.0 Demonstrating Proof-of-Possession at the Application Layer (DPoP)" for details.When omitted, a string built by concatenating (1) the
grantManagementEndpointproperty of theService, (2) a slash (/) and (3) the grant ID is used as the default value.
| Constructor and Description |
|---|
GMRequest() |
| Modifier and Type | Method and Description |
|---|---|
String |
getAccessToken()
Get the access token which has come along with the grant management
request from the client application.
|
String |
getClientCertificate()
Get the client certificate used in the TLS connection established
between the client application and the grant management endpoint.
|
String |
getDpop()
Get the value of the
DPoP header of the grant management request. |
GMAction |
getGmAction()
Get the grant management action of the grant management request.
|
String |
getGrantId()
Get the grant ID of the grant management request.
|
String |
getHtm()
Get the HTTP method of the grant management request.
|
String |
getHtu()
Get the URL of the grant management endpoint.
|
GMRequest |
setAccessToken(String accessToken)
Set the access token that has come along with the grant management
request from the client application.
|
GMRequest |
setClientCertificate(String certificate)
Set the client certificate used in the TLS connection established
between the client application and the grant management endpoint.
|
GMRequest |
setDpop(String dpop)
Set the value of the
DPoP header of the grant management request. |
GMRequest |
setGmAction(GMAction gmAction)
Set the grant management action of the grant management request.
|
GMRequest |
setGrantId(String grantId)
Set the grant ID of the grant management request.
|
GMRequest |
setHtm(String htm)
Set the HTTP method of the grant management request.
|
GMRequest |
setHtu(String htu)
Set the URL of the grant management endpoint.
|
public GMAction getGmAction()
public GMRequest setGmAction(GMAction gmAction)
gmAction - The grant management action of the grant management request.this object.public String getGrantId()
public GMRequest setGrantId(String grantId)
grantId - The grant ID.this object.public String getAccessToken()
public GMRequest setAccessToken(String accessToken)
accessToken - The access token.this object.public String getClientCertificate()
This property is checked when the access token is bound to a client certificate. See RFC 8705 for details.
public GMRequest setClientCertificate(String certificate)
This property is checked when the access token is bound to a client certificate. See RFC 8705 for details.
certificate - The client certificate in PEM format.this object.public String getDpop()
DPoP header of the grant management request.
This property is checked when the access token is bound to a public key.
DPoP header.public GMRequest setDpop(String dpop)
DPoP header of the grant management request.
This property is checked when the access token is bound to a public key.
dpop - The value of the DPoP header.this object.public String getHtm()
This property is used to validate the value of the DPoP header.
When this property is omitted, "GET" is used as the default value
in the case of gmAction=QUERY. Likewise,
"DELETE" is used as the default value in the case of
gmAction=REVOKE.
public GMRequest setHtm(String htm)
This property is used to validate the value of the DPoP header.
When this property is omitted, "GET" is used as the default value
in the case of gmAction=QUERY. Likewise,
"DELETE" is used as the default value in the case of
gmAction=REVOKE.
htm - The HTTP method of the grant management request.this object.public String getHtu()
This property is used to validate the value of the DPoP header.
When this property is omitted, a string built by concatenating (1) the
grantManagementEndpoint property of the Service, (2) a
slash (/) and (3) the grant ID is used as the default value.
public GMRequest setHtu(String htu)
This property is used to validate the value of the DPoP header.
When this property is omitted, a string built by concatenating (1) the
grantManagementEndpoint property of the Service, (2) a
slash (/) and (3) the grant ID is used as the default value.
htu - The URL of the userinfo endpoint.this object.Copyright © 2022. All rights reserved.