Class AuthorizationResult


  • public class AuthorizationResult
    extends java.lang.Object
    Represents an OAuth authorization result.
    • 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 application
      void 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 application
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • AuthorizationResult

        public AuthorizationResult()
    • 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 class java.lang.Object