public class TokenFailRequest extends Object implements Serializable
/auth/token/fail API.
ticket(REQUIRED)The ticket issued by Authlete's
/auth/tokenAPI to the service implementation. It is the value of"ticket"contained in the response from Authlete's/auth/tokenAPI (TokenResponse).reason(REQUIRED)The reason of the failure of the token request. See the description of
TokenResponseas to which reason should be chosen.
TokenResponse,
Serialized Form| Modifier and Type | Class and Description |
|---|---|
static class |
TokenFailRequest.Reason
Failure reasons of token requests.
|
| Constructor and Description |
|---|
TokenFailRequest() |
| Modifier and Type | Method and Description |
|---|---|
TokenFailRequest.Reason |
getReason()
Get the value of
"reason" which is the reason
of the failure of the token request. |
String |
getTicket()
Get the value of
"ticket" which is the ticket
issued by Authlete's /auth/token API to the
service implementation. |
TokenFailRequest |
setReason(TokenFailRequest.Reason reason)
Set the value of
"reason" which is the reason
of the failure of the token request. |
TokenFailRequest |
setTicket(String ticket)
Set the value of
"ticket" which is the ticket
issued by Authlete's /auth/token API to the
service implementation. |
public String getTicket()
"ticket" which is the ticket
issued by Authlete's /auth/token API to the
service implementation.public TokenFailRequest setTicket(String ticket)
"ticket" which is the ticket
issued by Authlete's /auth/token API to the
service implementation.ticket - The ticket.this object.public TokenFailRequest.Reason getReason()
"reason" which is the reason
of the failure of the token request.public TokenFailRequest setReason(TokenFailRequest.Reason reason)
"reason" which is the reason
of the failure of the token request.reason - The reason of the failure.this object.Copyright © 2019. All rights reserved.