public class BackchannelAuthenticationRequest extends Object implements Serializable
/api/backchannel/authentication API.
When the implementation of the backchannel authentication endpoint of the
authorization server receives a backchannel authentication request from a
client application, the first step is to call Authlete's /api/backchannel/authentication API. The API will parse the backchannel
authentication request on behalf of the implementation of the backchannel
authentication endpoint.
parameters(REQUIRED)Parameters of a backchannel authentication request which are the request parameters that the backchannel authentication endpoint of the OpenID provider implementation received from the client application.
The value of
"parameters"is the entire entity body (which is formatted inapplication/x-www-form-urlencoded) of the request from the client application.clientId(OPTIONAL)The client ID extracted from
Authorizationheader of the backchannel authentication request from the client application.If the backchannel authentication endpoint of the OpenID provider implementation supports Basic Authentication as a means of client authentication, and the request from the client application contained its client ID in
Authorizationheader, the value should be extracted and set to this parameter.clientSecret(OPTIONAL)The client secret extracted from
Authorizationheader of the backchannel authentication request from the client application.If the backchannel authentication endpoint of the OpenID provider implementation supports Basic Authentication as a means of client authentication, and the request from the client application contained its client secret in
Authorizationheader, the value should be extracted and set to this parameter.clientCertificate(OPTIONAL)The client certification used in the TLS connection between the client application and the backchannel authentication endpoint of the OpenID provider.
clientCertificatePath(OPTIONAL)The client certificate path presented by the client during client authentication. Each element is a string in PEM format.
| Constructor and Description |
|---|
BackchannelAuthenticationRequest() |
| Modifier and Type | Method and Description |
|---|---|
String |
getClientCertificate()
Get the client certificate used in the TLS connection between the
client application and the backchannel authentication endpoint of the
OpenID provider.
|
String[] |
getClientCertificatePath()
Get the client certificate path presented by the client during client
authentication.
|
String |
getClientId()
Get the client ID extracted from
Authorization header of the
backchannel authentication request from the client application. |
String |
getClientSecret()
Get the client secret extracted from
Authorization header of
the backchannel authentication request from the client application. |
String |
getParameters()
Get the value of
parameters which are the request parameters
that the backchannel authentication endpoint of the OpenID provider
implementation received from the client application. |
BackchannelAuthenticationRequest |
setClientCertificate(String certificate)
Set the client certificate used in the TLS connection between the
client application and the backchannel authentication endpoint of the
OpenID provider.
|
BackchannelAuthenticationRequest |
setClientCertificatePath(String[] path)
Set the client certificate path presented by the client during client
authentication.
|
BackchannelAuthenticationRequest |
setClientId(String clientId)
Set the client ID extracted from
Authorization header of the
backchannel authentication request from the client application. |
BackchannelAuthenticationRequest |
setClientSecret(String clientSecret)
Set the client secret extracted from
Authorization header of
the backchannel authentication request from the client application. |
BackchannelAuthenticationRequest |
setParameters(Map<String,String[]> parameters)
Set the value of
parameters which are the request parameters
that the backchannel authentication endpoint of the OpenID provider
implementation received from the client application. |
BackchannelAuthenticationRequest |
setParameters(String parameters)
Set the value of
parameters which are the request parameters
that the backchannel authentication endpoint of the OpenID provider
implementation received from the client application. |
public String getParameters()
parameters which are the request parameters
that the backchannel authentication endpoint of the OpenID provider
implementation received from the client application.application/x-www-form-urlencoded
format.public BackchannelAuthenticationRequest setParameters(String parameters)
parameters which are the request parameters
that the backchannel authentication endpoint of the OpenID provider
implementation received from the client application.parameters - Request parameters in application/x-www-form-urlencoded
format.this object.public BackchannelAuthenticationRequest setParameters(Map<String,String[]> parameters)
parameters which are the request parameters
that the backchannel authentication endpoint of the OpenID provider
implementation received from the client application.
This method converts the given map into a string in
application/x-www-form-urlencoded and passes it to
setParameters(String) method.
parameters - Request parameters.this object.public String getClientId()
Authorization header of the
backchannel authentication request from the client application.public BackchannelAuthenticationRequest setClientId(String clientId)
Authorization header of the
backchannel authentication request from the client application.clientId - The client ID.this object.public String getClientSecret()
Authorization header of
the backchannel authentication request from the client application.public BackchannelAuthenticationRequest setClientSecret(String clientSecret)
Authorization header of
the backchannel authentication request from the client application.clientSecret - The client secret.this object.public String getClientCertificate()
public BackchannelAuthenticationRequest setClientCertificate(String certificate)
certificate - The client certificatethis object.public String[] getClientCertificatePath()
public BackchannelAuthenticationRequest setClientCertificatePath(String[] path)
path - The client certificate path.this object.Copyright © 2019. All rights reserved.