Class BackchannelAuthenticationFailRequest
- java.lang.Object
-
- com.authlete.common.dto.BackchannelAuthenticationFailRequest
-
- All Implemented Interfaces:
Serializable
public class BackchannelAuthenticationFailRequest extends Object implements Serializable
Request to Authlete's/api/backchannel/authentication/failAPI.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.- Since:
- 2.32
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classBackchannelAuthenticationFailRequest.ReasonFailure reasons of backchannel authentication requests.
-
Constructor Summary
Constructors Constructor Description BackchannelAuthenticationFailRequest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetErrorDescription()Get the description of the error.URIgetErrorUri()Get the URI of a document which describes the error in detail.BackchannelAuthenticationFailRequest.ReasongetReason()Get the reason of the failure of the backchannel authentication request.StringgetTicket()Get the ticket which should be deleted on a call of Authlete's/api/backchannel/authentication/failAPI.BackchannelAuthenticationFailRequestsetErrorDescription(String description)Set the description of the error.BackchannelAuthenticationFailRequestsetErrorUri(URI uri)Set the URI of a document which describes the error in detail.BackchannelAuthenticationFailRequestsetReason(BackchannelAuthenticationFailRequest.Reason reason)Set the reason of the failure of the backchannel authentication request.BackchannelAuthenticationFailRequestsetTicket(String ticket)Set the ticket which should be deleted on a call of Authlete's/api/backchannel/authentication/failAPI.
-
-
-
Method Detail
-
getTicket
public String getTicket()
Get the ticket which should be deleted on a call of Authlete's/api/backchannel/authentication/failAPI.- Returns:
- A ticket.
-
setTicket
public BackchannelAuthenticationFailRequest setTicket(String ticket)
Set the ticket which should be deleted on a call of Authlete's/api/backchannel/authentication/failAPI.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.
- Parameters:
ticket- A ticket previously issued by Authlete's/api/backchannel/authenticationAPI.- Returns:
thisobject.
-
getReason
public BackchannelAuthenticationFailRequest.Reason getReason()
Get the reason of the failure of the backchannel authentication request.- Returns:
- The reason of the failure of the backchannel authentication request.
-
setReason
public BackchannelAuthenticationFailRequest setReason(BackchannelAuthenticationFailRequest.Reason reason)
Set the reason of the failure of the backchannel authentication request.This request parameter is not mandatory but optional. However, giving this parameter is recommended. If omitted,
SERVER_ERRORis used as a reason.- Parameters:
reason- The reason of the failure of the backchannel authentication request.- Returns:
thisobject.
-
getErrorDescription
public String getErrorDescription()
Get the description of the error. This corresponds to theerror_descriptionproperty in the response to the client.- Returns:
- The description of the error.
-
setErrorDescription
public BackchannelAuthenticationFailRequest setErrorDescription(String description)
Set the description of the error. This corresponds to theerror_descriptionproperty in the response to the client.If this optional request parameter is given, its value is used as the value of the
error_descriptionproperty.- Parameters:
description- The description of the error.- Returns:
thisobject.
-
getErrorUri
public URI getErrorUri()
Get the URI of a document which describes the error in detail. This corresponds to theerror_uriproperty in the response to the client.- Returns:
- The URI of a document which describes the error in detail.
-
setErrorUri
public BackchannelAuthenticationFailRequest setErrorUri(URI uri)
Set the URI of a document which describes the error in detail. This corresponds to theerror_uriproperty in the response to the client.If this optional request parameter is given, its value is used as the value of the
error_uriproperty.- Parameters:
uri- The URI of a document which describes the error in detail.- Returns:
thisobject.
-
-