Package com.smartsheet.api.oauth
Class Token
- java.lang.Object
-
- com.smartsheet.api.oauth.Token
-
public class Token extends java.lang.ObjectRepresents OAuth token.
-
-
Constructor Summary
Constructors Constructor Description Token()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetAccessToken()Gets the access token.longgetExpiresInSeconds()Gets the expires in seconds.java.lang.StringgetRefreshToken()Gets the refresh token.java.lang.StringgetTokenType()Gets the token type.voidsetAccessToken(java.lang.String accessToken)Sets the access token.voidsetExpiresInSeconds(long expiresInSeconds)Sets the expires in seconds.voidsetRefreshToken(java.lang.String refreshToken)Sets the refresh token.voidsetTokenType(java.lang.String tokenType)Sets the token type.
-
-
-
Method Detail
-
getAccessToken
public java.lang.String getAccessToken()
Gets the access token.- Returns:
- the access token
-
setAccessToken
public void setAccessToken(java.lang.String accessToken)
Sets the access token.- Parameters:
accessToken- the new access token
-
getTokenType
public java.lang.String getTokenType()
Gets the token type.- Returns:
- the token type
-
setTokenType
public void setTokenType(java.lang.String tokenType)
Sets the token type.- Parameters:
tokenType- the new token type
-
getRefreshToken
public java.lang.String getRefreshToken()
Gets the refresh token.- Returns:
- the refresh token
-
setRefreshToken
public void setRefreshToken(java.lang.String refreshToken)
Sets the refresh token.- Parameters:
refreshToken- the new refresh token
-
getExpiresInSeconds
public long getExpiresInSeconds()
Gets the expires in seconds.- Returns:
- the expires in seconds
-
setExpiresInSeconds
public void setExpiresInSeconds(long expiresInSeconds)
Sets the expires in seconds.- Parameters:
expiresInSeconds- the new expires in seconds
-
-