public class AuthorizationFailRequest extends Object implements Serializable
/auth/authorization/fail API.
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.
AuthorizationResponse,
Serialized Form| Modifier and Type | Class and Description |
|---|---|
static class |
AuthorizationFailRequest.Reason
Failure reasons of authorization requests.
|
| Constructor and Description |
|---|
AuthorizationFailRequest() |
| Modifier and Type | Method and Description |
|---|---|
String |
getDescription()
Get the custom description about the authorization failure.
|
AuthorizationFailRequest.Reason |
getReason()
Get the value of
"reason" which is the reason
of the failure of the authorization request. |
String |
getTicket()
Get the value of
"ticket" which is the ticket
issued by Authlete's /auth/authorization API
to the service implementation. |
AuthorizationFailRequest |
setDescription(String description)
Set the custom description about the authorization failure.
|
AuthorizationFailRequest |
setReason(AuthorizationFailRequest.Reason reason)
Set the value of
"reason" which is the reason
of the failure of the authorization request. |
AuthorizationFailRequest |
setTicket(String ticket)
Set the value of
"ticket" which is the ticket
issued by Authlete's /auth/authorization API
to the service implementation. |
public String getTicket()
"ticket" which is the ticket
issued by Authlete's /auth/authorization API
to the service implementation.public AuthorizationFailRequest setTicket(String ticket)
"ticket" which is the ticket
issued by Authlete's /auth/authorization API
to the service implementation.ticket - The ticket.this object.public AuthorizationFailRequest.Reason getReason()
"reason" which is the reason
of the failure of the authorization request.public AuthorizationFailRequest setReason(AuthorizationFailRequest.Reason reason)
"reason" which is the reason
of the failure of the authorization request.reason - The reason of the failure.this object.public String getDescription()
public AuthorizationFailRequest setDescription(String description)
description - The custom description.this object.Copyright © 2019. All rights reserved.