public class BackchannelAuthenticationFailRequest extends Object implements Serializable
/api/backchannel/authentication/fail API.
The API prepares JSON that contains an error. The JSON should be
used as the response body of the response which is returned to the client
from the backchannel authentication endpoint.
| Modifier and Type | Class and Description |
|---|---|
static class |
BackchannelAuthenticationFailRequest.Reason
Failure reasons of backchannel authentication requests.
|
| Constructor and Description |
|---|
BackchannelAuthenticationFailRequest() |
| Modifier and Type | Method and Description |
|---|---|
String |
getErrorDescription()
Get the description of the error.
|
URI |
getErrorUri()
Get the URI of a document which describes the error in detail.
|
BackchannelAuthenticationFailRequest.Reason |
getReason()
Get the reason of the failure of the backchannel authentication request.
|
String |
getTicket()
Get the ticket which should be deleted on a call of Authlete's
/api/backchannel/authentication/fail API. |
BackchannelAuthenticationFailRequest |
setErrorDescription(String description)
Set the description of the error.
|
BackchannelAuthenticationFailRequest |
setErrorUri(URI uri)
Set the URI of a document which describes the error in detail.
|
BackchannelAuthenticationFailRequest |
setReason(BackchannelAuthenticationFailRequest.Reason reason)
Set the reason of the failure of the backchannel authentication request.
|
BackchannelAuthenticationFailRequest |
setTicket(String ticket)
Set the ticket which should be deleted on a call of Authlete's
/api/backchannel/authentication/fail API. |
public BackchannelAuthenticationFailRequest()
public String getTicket()
/api/backchannel/authentication/fail API.public BackchannelAuthenticationFailRequest setTicket(String ticket)
/api/backchannel/authentication/fail API.
This request parameter is not mandatory but optional. If this request parameter is given and the ticket belongs to the service, the specified ticket is deleted from the database. Giving this parameter is recommended to clean up the storage area for the service.
ticket - A ticket previously issued by Authlete's
/api/backchannel/authentication API.this object.public BackchannelAuthenticationFailRequest.Reason getReason()
public BackchannelAuthenticationFailRequest setReason(BackchannelAuthenticationFailRequest.Reason reason)
This request parameter is not mandatory but optional. However, giving
this parameter is recommended. If omitted, SERVER_ERROR is used as a reason.
reason - The reason of the failure of the backchannel authentication
request.this object.public String getErrorDescription()
error_description property in the response to the client.public BackchannelAuthenticationFailRequest setErrorDescription(String description)
error_description property in the response to the client.
If this optional request parameter is given, its value is used as the
value of the error_description property.
description - The description of the error.this object.public URI getErrorUri()
error_uri property in the response to the
client.public BackchannelAuthenticationFailRequest setErrorUri(URI uri)
error_uri property in the response to the
client.
If this optional request parameter is given, its value is used as the
value of the error_uri property.
uri - The URI of a document which describes the error in detail.this object.Copyright © 2019. All rights reserved.