Package ai.reveng.model
Class TokenResponse
java.lang.Object
ai.reveng.model.TokenResponse
@Generated("org.openapitools.codegen.languages.JavaClientCodegen")
public class TokenResponse
extends Object
TokenResponse
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaccessToken(String accessToken) booleanstatic TokenResponseCreate an instance of TokenResponse given an JSON stringSigned JWT access tokenReturn the additional (undeclared) property.Return the additional (undeclared) property with the specified name.Access token lifetime in secondsOpaque refresh token for obtaining new access tokensToken type (always Bearer)inthashCode()putAdditionalProperty(String key, Object value) Set the additional (undeclared) property with the specified name and value.refreshToken(String refreshToken) voidsetAccessToken(String accessToken) voidsetExpiresIn(Long expiresIn) voidsetRefreshToken(String refreshToken) voidsetTokenType(String tokenType) toJson()Convert an instance of TokenResponse to an JSON stringtoString()static voidvalidateJsonElement(com.google.gson.JsonElement jsonElement) Validates the JSON Element and throws an exception if issues found
-
Field Details
-
SERIALIZED_NAME_ACCESS_TOKEN
- See Also:
-
SERIALIZED_NAME_EXPIRES_IN
- See Also:
-
SERIALIZED_NAME_REFRESH_TOKEN
- See Also:
-
SERIALIZED_NAME_TOKEN_TYPE
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
TokenResponse
public TokenResponse()
-
-
Method Details
-
accessToken
-
getAccessToken
Signed JWT access token- Returns:
- accessToken
-
setAccessToken
-
expiresIn
-
getExpiresIn
Access token lifetime in seconds- Returns:
- expiresIn
-
setExpiresIn
-
refreshToken
-
getRefreshToken
Opaque refresh token for obtaining new access tokens- Returns:
- refreshToken
-
setRefreshToken
-
tokenType
-
getTokenType
Token type (always Bearer)- Returns:
- tokenType
-
setTokenType
-
putAdditionalProperty
Set the additional (undeclared) property with the specified name and value. If the property does not already exist, create it otherwise replace it.- Parameters:
key- name of the propertyvalue- value of the property- Returns:
- the TokenResponse instance itself
-
getAdditionalProperties
Return the additional (undeclared) property.- Returns:
- a map of objects
-
getAdditionalProperty
Return the additional (undeclared) property with the specified name.- Parameters:
key- name of the property- Returns:
- an object
-
equals
-
hashCode
public int hashCode() -
toString
-
validateJsonElement
Validates the JSON Element and throws an exception if issues found- Parameters:
jsonElement- JSON Element- Throws:
IOException- if the JSON Element is invalid with respect to TokenResponse
-
fromJson
Create an instance of TokenResponse given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of TokenResponse
- Throws:
IOException- if the JSON string is invalid with respect to TokenResponse
-
toJson
Convert an instance of TokenResponse to an JSON string- Returns:
- JSON string
-