Package video.api.client.api.models
Class AccessToken
- java.lang.Object
-
- video.api.client.api.models.AccessToken
-
- All Implemented Interfaces:
Serializable,DeepObject
public class AccessToken extends Object implements Serializable, DeepObject
AccessToken- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static StringSERIALIZED_NAME_ACCESS_TOKENstatic StringSERIALIZED_NAME_EXPIRES_INstatic StringSERIALIZED_NAME_REFRESH_TOKENstatic StringSERIALIZED_NAME_TOKEN_TYPE
-
Constructor Summary
Constructors Constructor Description AccessToken()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AccessTokenaccessToken(String accessToken)booleanequals(Object o)AccessTokenexpiresIn(Integer expiresIn)StringgetAccessToken()The access token containing security credentials allowing you to acccess the API.IntegergetExpiresIn()Lists the time in seconds when your access token expires.StringgetRefreshToken()A token you can use to get the next access token when your current access token expires.StringgetTokenType()The type of token you have.inthashCode()AccessTokenrefreshToken(String refreshToken)voidsetAccessToken(String accessToken)voidsetExpiresIn(Integer expiresIn)voidsetRefreshToken(String refreshToken)voidsetTokenType(String tokenType)AccessTokentokenType(String tokenType)StringtoString()
-
-
-
Field Detail
-
SERIALIZED_NAME_ACCESS_TOKEN
public static final String SERIALIZED_NAME_ACCESS_TOKEN
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_TOKEN_TYPE
public static final String SERIALIZED_NAME_TOKEN_TYPE
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_REFRESH_TOKEN
public static final String SERIALIZED_NAME_REFRESH_TOKEN
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_EXPIRES_IN
public static final String SERIALIZED_NAME_EXPIRES_IN
- See Also:
- Constant Field Values
-
-
Method Detail
-
accessToken
public AccessToken accessToken(String accessToken)
-
getAccessToken
@Nullable public String getAccessToken()
The access token containing security credentials allowing you to acccess the API. The token lasts for one hour.- Returns:
- accessToken
-
setAccessToken
public void setAccessToken(String accessToken)
-
tokenType
public AccessToken tokenType(String tokenType)
-
getTokenType
@Nullable public String getTokenType()
The type of token you have.- Returns:
- tokenType
-
setTokenType
public void setTokenType(String tokenType)
-
refreshToken
public AccessToken refreshToken(String refreshToken)
-
getRefreshToken
@Nullable public String getRefreshToken()
A token you can use to get the next access token when your current access token expires.- Returns:
- refreshToken
-
setRefreshToken
public void setRefreshToken(String refreshToken)
-
expiresIn
public AccessToken expiresIn(Integer expiresIn)
-
getExpiresIn
@Nullable public Integer getExpiresIn()
Lists the time in seconds when your access token expires. It lasts for one hour.- Returns:
- expiresIn
-
setExpiresIn
public void setExpiresIn(Integer expiresIn)
-
-