Class AuthenticationTokenResponse
- java.lang.Object
-
- de.xima.fc.api.rest.pub.client.security.model.AuthenticationTokenResponse
-
- All Implemented Interfaces:
Serializable
@Generated("de.xima.openapi.codegen.java_jaxrs.XimaJavaJaxrsGenerator") public class AuthenticationTokenResponse extends Object implements SerializableModel representing a token response with several JWTs.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static StringJSON_PROPERTY_ACCESS_TOKENstatic StringJSON_PROPERTY_EXPIRES_INstatic StringJSON_PROPERTY_ID_TOKENstatic StringJSON_PROPERTY_ID_TOKEN_EXPIRES_INstatic StringJSON_PROPERTY_REFRESH_EXPIRES_INstatic StringJSON_PROPERTY_REFRESH_TOKENstatic StringJSON_PROPERTY_TOKEN_TYPE
-
Constructor Summary
Constructors Constructor Description AuthenticationTokenResponse()Creates a new empty model with no data yet.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AuthenticationTokenResponseaccessToken(String accessToken)Creates a new model with the given enum and no other data.booleanequals(Object o)AuthenticationTokenResponseexpiresIn(Long expiresIn)Creates a new model with the given enum and no other data.StringgetAccessToken()The access token to be used for authentication.LonggetExpiresIn()The time in seconds until the access token expires.StringgetIdToken()The id token containing user information.LonggetIdTokenExpiresIn()The time in seconds until the refresh token expires.LonggetRefreshExpiresIn()The time in seconds until the refresh token expires.StringgetRefreshToken()The refresh token to be used for refreshing the access token.StringgetTokenType()The type of the token.inthashCode()AuthenticationTokenResponseidToken(String idToken)Creates a new model with the given enum and no other data.AuthenticationTokenResponseidTokenExpiresIn(Long idTokenExpiresIn)Creates a new model with the given enum and no other data.AuthenticationTokenResponserefreshExpiresIn(Long refreshExpiresIn)Creates a new model with the given enum and no other data.AuthenticationTokenResponserefreshToken(String refreshToken)Creates a new model with the given enum and no other data.voidsetAccessToken(String accessToken)voidsetExpiresIn(Long expiresIn)voidsetIdToken(String idToken)voidsetIdTokenExpiresIn(Long idTokenExpiresIn)voidsetRefreshExpiresIn(Long refreshExpiresIn)voidsetRefreshToken(String refreshToken)voidsetTokenType(String tokenType)AuthenticationTokenResponsetokenType(String tokenType)Creates a new model with the given enum and no other data.StringtoString()
-
-
-
Field Detail
-
JSON_PROPERTY_ACCESS_TOKEN
public static final String JSON_PROPERTY_ACCESS_TOKEN
- See Also:
- Constant Field Values
-
JSON_PROPERTY_EXPIRES_IN
public static final String JSON_PROPERTY_EXPIRES_IN
- See Also:
- Constant Field Values
-
JSON_PROPERTY_ID_TOKEN
public static final String JSON_PROPERTY_ID_TOKEN
- See Also:
- Constant Field Values
-
JSON_PROPERTY_ID_TOKEN_EXPIRES_IN
public static final String JSON_PROPERTY_ID_TOKEN_EXPIRES_IN
- See Also:
- Constant Field Values
-
JSON_PROPERTY_REFRESH_EXPIRES_IN
public static final String JSON_PROPERTY_REFRESH_EXPIRES_IN
- See Also:
- Constant Field Values
-
JSON_PROPERTY_REFRESH_TOKEN
public static final String JSON_PROPERTY_REFRESH_TOKEN
- See Also:
- Constant Field Values
-
JSON_PROPERTY_TOKEN_TYPE
public static final String JSON_PROPERTY_TOKEN_TYPE
- See Also:
- Constant Field Values
-
-
Method Detail
-
accessToken
public AuthenticationTokenResponse accessToken(String accessToken)
Creates a new model with the given enum and no other data. Use the various setters or fluent setters to add further data.
-
getAccessToken
@Nullable public String getAccessToken()
The access token to be used for authentication.- Returns:
- accessToken
-
setAccessToken
public void setAccessToken(String accessToken)
-
expiresIn
public AuthenticationTokenResponse expiresIn(Long expiresIn)
Creates a new model with the given enum and no other data. Use the various setters or fluent setters to add further data.
-
getExpiresIn
@Nullable public Long getExpiresIn()
The time in seconds until the access token expires.- Returns:
- expiresIn
-
setExpiresIn
public void setExpiresIn(Long expiresIn)
-
idToken
public AuthenticationTokenResponse idToken(String idToken)
Creates a new model with the given enum and no other data. Use the various setters or fluent setters to add further data.
-
getIdToken
@Nullable public String getIdToken()
The id token containing user information.- Returns:
- idToken
-
setIdToken
public void setIdToken(String idToken)
-
idTokenExpiresIn
public AuthenticationTokenResponse idTokenExpiresIn(Long idTokenExpiresIn)
Creates a new model with the given enum and no other data. Use the various setters or fluent setters to add further data.
-
getIdTokenExpiresIn
@Nullable public Long getIdTokenExpiresIn()
The time in seconds until the refresh token expires.- Returns:
- idTokenExpiresIn
-
setIdTokenExpiresIn
public void setIdTokenExpiresIn(Long idTokenExpiresIn)
-
refreshExpiresIn
public AuthenticationTokenResponse refreshExpiresIn(Long refreshExpiresIn)
Creates a new model with the given enum and no other data. Use the various setters or fluent setters to add further data.
-
getRefreshExpiresIn
@Nullable public Long getRefreshExpiresIn()
The time in seconds until the refresh token expires.- Returns:
- refreshExpiresIn
-
setRefreshExpiresIn
public void setRefreshExpiresIn(Long refreshExpiresIn)
-
refreshToken
public AuthenticationTokenResponse refreshToken(String refreshToken)
Creates a new model with the given enum and no other data. Use the various setters or fluent setters to add further data.
-
getRefreshToken
@Nullable public String getRefreshToken()
The refresh token to be used for refreshing the access token.- Returns:
- refreshToken
-
setRefreshToken
public void setRefreshToken(String refreshToken)
-
tokenType
public AuthenticationTokenResponse tokenType(String tokenType)
Creates a new model with the given enum and no other data. Use the various setters or fluent setters to add further data.
-
getTokenType
@Nullable public String getTokenType()
The type of the token.- Returns:
- tokenType
-
setTokenType
public void setTokenType(String tokenType)
-
-