Package com.authlete.common.dto
Class AuthorizationFailRequest
- java.lang.Object
-
- com.authlete.common.dto.AuthorizationFailRequest
-
- All Implemented Interfaces:
Serializable
public class AuthorizationFailRequest extends Object implements Serializable
Request to Authlete's/auth/authorization/failAPI.ticket(REQUIRED)-
The ticket issued by Authlete's
/auth/authorizationAPI to the service implementation. It is the value of"ticket"contained in the response from Authlete's/auth/authorizationAPI (AuthorizationResponse). reason(REQUIRED)-
The reason of the failure of the authorization request. See the description of
AuthorizationResponseas to which reason should be chosen.
- Author:
- Takahiko Kawasaki
- See Also:
AuthorizationResponse, Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classAuthorizationFailRequest.ReasonFailure reasons of authorization requests.
-
Constructor Summary
Constructors Constructor Description AuthorizationFailRequest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetDescription()Get the custom description about the authorization failure.AuthorizationFailRequest.ReasongetReason()Get the value of"reason"which is the reason of the failure of the authorization request.StringgetTicket()Get the value of"ticket"which is the ticket issued by Authlete's/auth/authorizationAPI to the service implementation.AuthorizationFailRequestsetDescription(String description)Set the custom description about the authorization failure.AuthorizationFailRequestsetReason(AuthorizationFailRequest.Reason reason)Set the value of"reason"which is the reason of the failure of the authorization request.AuthorizationFailRequestsetTicket(String ticket)Set the value of"ticket"which is the ticket issued by Authlete's/auth/authorizationAPI to the service implementation.
-
-
-
Method Detail
-
getTicket
public String getTicket()
Get the value of"ticket"which is the ticket issued by Authlete's/auth/authorizationAPI to the service implementation.- Returns:
- The ticket.
-
setTicket
public AuthorizationFailRequest setTicket(String ticket)
Set the value of"ticket"which is the ticket issued by Authlete's/auth/authorizationAPI to the service implementation.- Parameters:
ticket- The ticket.- Returns:
thisobject.
-
getReason
public AuthorizationFailRequest.Reason getReason()
Get the value of"reason"which is the reason of the failure of the authorization request.- Returns:
- The reason of the failure.
-
setReason
public AuthorizationFailRequest setReason(AuthorizationFailRequest.Reason reason)
Set the value of"reason"which is the reason of the failure of the authorization request.- Parameters:
reason- The reason of the failure.- Returns:
thisobject.
-
getDescription
public String getDescription()
Get the custom description about the authorization failure.- Returns:
- The custom description.
- Since:
- 1.3
-
setDescription
public AuthorizationFailRequest setDescription(String description)
Set the custom description about the authorization failure.- Parameters:
description- The custom description.- Returns:
thisobject.- Since:
- 1.3
-
-