Class OAuth2Callback

All Implemented Interfaces:

public class OAuth2Callback extends Object implements Callback
The callback which must be populated to complete an OAuth2 transaction. This callback is created when the access_token is required and cannot be created by renewal.
  • Constructor Details

    • OAuth2Callback

      public OAuth2Callback(OAuth2 auth, String redirecturi, String uri, Map<String,String> props)
      Create a new OAuth2Callback
      auth - the OAuth2 object
      redirecturi - the initial "redirect_uri" value
      uri - the initial "uri" value
      props - a map of any additional properties
  • Method Details

    • getOAuth2

      public OAuth2 getOAuth2()
      Return the OAuth2 object that created this callback
    • getRedirectURI

      public String getRedirectURI()
      Return the redirect_uri
    • getAuthURI

      public String getAuthURI()
      Return the auth_uri which the CallbackHandler must load for authorization
    • getProperties

      public Map<String,String> getProperties()
      Return a map of properties which apply to the session. The list of keys is undefined but may include scope
    • getCode

      public String getCode()
      Return the code set by the CallbackHandler
    • setCode

      public void setCode(String code)
      Set the code that was given by the authorization process. This method must be called by the CallbackHandler