Package com.smartsheet.api.oauth
Class Token
- java.lang.Object
-
- com.smartsheet.api.oauth.Token
-
public class Token extends java.lang.Object
Represents OAuth token.
-
-
Constructor Summary
Constructors Constructor Description Token()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getAccessToken()
Gets the access token.long
getExpiresInSeconds()
Gets the expires in seconds.java.lang.String
getRefreshToken()
Gets the refresh token.java.lang.String
getTokenType()
Gets the token type.void
setAccessToken(java.lang.String accessToken)
Sets the access token.void
setExpiresInSeconds(long expiresInSeconds)
Sets the expires in seconds.void
setRefreshToken(java.lang.String refreshToken)
Sets the refresh token.void
setTokenType(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
-
-