Package video.api.client.api.models
Class RefreshTokenPayload
- java.lang.Object
-
- video.api.client.api.models.RefreshTokenPayload
-
- All Implemented Interfaces:
Serializable,DeepObject
public class RefreshTokenPayload extends Object implements Serializable, DeepObject
RefreshTokenPayload- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static StringSERIALIZED_NAME_REFRESH_TOKEN
-
Constructor Summary
Constructors Constructor Description RefreshTokenPayload()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)StringgetRefreshToken()The refresh token is either the first refresh token you received when you authenticated with the auth/api-key endpoint, or it's the refresh token from the last time you used the auth/refresh endpoint.inthashCode()RefreshTokenPayloadrefreshToken(String refreshToken)voidsetRefreshToken(String refreshToken)StringtoString()
-
-
-
Field Detail
-
SERIALIZED_NAME_REFRESH_TOKEN
public static final String SERIALIZED_NAME_REFRESH_TOKEN
- See Also:
- Constant Field Values
-
-
Method Detail
-
refreshToken
public RefreshTokenPayload refreshToken(String refreshToken)
-
getRefreshToken
public String getRefreshToken()
The refresh token is either the first refresh token you received when you authenticated with the auth/api-key endpoint, or it's the refresh token from the last time you used the auth/refresh endpoint. Place this in the body of your request to obtain a new access token (which is valid for an hour) and a new refresh token.- Returns:
- refreshToken
-
setRefreshToken
public void setRefreshToken(String refreshToken)
-
-