Package com.authlete.common.dto
Class TokenFailRequest
- java.lang.Object
-
- com.authlete.common.dto.TokenFailRequest
-
- All Implemented Interfaces:
Serializable
public class TokenFailRequest extends Object implements Serializable
Request for Authlete's/auth/token/failAPI.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.
- Author:
- Takahiko Kawasaki
- See Also:
TokenResponse, Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classTokenFailRequest.ReasonFailure reasons of token requests.
-
Constructor Summary
Constructors Constructor Description TokenFailRequest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TokenFailRequest.ReasongetReason()Get the value of"reason"which is the reason of the failure of the token request.StringgetTicket()Get the value of"ticket"which is the ticket issued by Authlete's/auth/tokenAPI to the service implementation.TokenFailRequestsetReason(TokenFailRequest.Reason reason)Set the value of"reason"which is the reason of the failure of the token request.TokenFailRequestsetTicket(String ticket)Set the value of"ticket"which is the ticket issued by Authlete's/auth/tokenAPI to the service implementation.
-
-
-
Method Detail
-
getTicket
public String getTicket()
Get the value of"ticket"which is the ticket issued by Authlete's/auth/tokenAPI to the service implementation.- Returns:
- The ticket.
-
setTicket
public TokenFailRequest setTicket(String ticket)
Set the value of"ticket"which is the ticket issued by Authlete's/auth/tokenAPI to the service implementation.- Parameters:
ticket- The ticket.- Returns:
thisobject.
-
getReason
public TokenFailRequest.Reason getReason()
Get the value of"reason"which is the reason of the failure of the token request.- Returns:
- The reason of the failure.
-
setReason
public TokenFailRequest setReason(TokenFailRequest.Reason reason)
Set the value of"reason"which is the reason of the failure of the token request.- Parameters:
reason- The reason of the failure.- Returns:
thisobject.
-
-