Package com.smartsheet.api.oauth
Class AuthorizationResult
- java.lang.Object
-
- com.smartsheet.api.oauth.AuthorizationResult
-
public class AuthorizationResult extends java.lang.ObjectRepresents 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.StringgetCode()Gets the authorization code which is required to obtain an access token.longgetExpiresInSeconds()Gets the total number of seconds that the authorization token is valid.java.lang.StringgetState()Gets the state string which is returned to the redirect URL for a registered applicationvoidsetCode(java.lang.String code)Sets the authorization code which is required to obtain an access token.voidsetExpiresInSeconds(long expiresInSeconds)Sets the total number of seconds that the authorization token is valid.voidsetState(java.lang.String state)Sets the state string which is returned to the redirect URL for a registered applicationjava.lang.StringtoString()
-
-
-
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:
toStringin classjava.lang.Object
-
-