Package com.smartsheet.api.oauth
Class AuthorizationResult
- java.lang.Object
-
- com.smartsheet.api.oauth.AuthorizationResult
-
public class AuthorizationResult extends java.lang.Object
Represents an OAuth authorization result.
-
-
Constructor Summary
Constructors Constructor Description AuthorizationResult()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getCode()
Gets the authorization code which is required to obtain an access token.long
getExpiresInSeconds()
Gets the total number of seconds that the authorization token is valid.java.lang.String
getState()
Gets the state string which is returned to the redirect URL for a registered applicationvoid
setCode(java.lang.String code)
Sets the authorization code which is required to obtain an access token.void
setExpiresInSeconds(long expiresInSeconds)
Sets the total number of seconds that the authorization token is valid.void
setState(java.lang.String state)
Sets the state string which is returned to the redirect URL for a registered applicationjava.lang.String
toString()
-
-
-
Method Detail
-
getCode
public java.lang.String getCode()
Gets the authorization code which is required to obtain an access token.- Returns:
- the authorization code
-
setCode
public void setCode(java.lang.String code)
Sets the authorization code which is required to obtain an access token.- Parameters:
code
- the new code
-
getExpiresInSeconds
public long getExpiresInSeconds()
Gets the total number of seconds that the authorization token is valid. This is always 4 minutes.- Returns:
- the expires in seconds
-
setExpiresInSeconds
public void setExpiresInSeconds(long expiresInSeconds)
Sets the total number of seconds that the authorization token is valid. This is always 4 minutes.- Parameters:
expiresInSeconds
- the new expires in seconds
-
getState
public java.lang.String getState()
Gets the state string which is returned to the redirect URL for a registered application- Returns:
- the state
-
setState
public void setState(java.lang.String state)
Sets the state string which is returned to the redirect URL for a registered application- Parameters:
state
- the new state
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-