Class OAuthServiceCallbackHandler

java.lang.Object
org.wso2.carbon.identity.oauth.stub.OAuthServiceCallbackHandler

public abstract class OAuthServiceCallbackHandler extends Object
OAuthServiceCallbackHandler Callback class, Users can extend this class and implement their own receiveResult and receiveError methods.
  • Field Details

    • clientData

      protected Object clientData
  • Constructor Details

    • OAuthServiceCallbackHandler

      public OAuthServiceCallbackHandler(Object clientData)
      User can pass in any object that needs to be accessed once the NonBlocking Web service call is finished and appropriate method of this CallBack is called.
      Parameters:
      clientData - Object mechanism by which the user can pass in user data that will be avilable at the time this callback is called.
    • OAuthServiceCallbackHandler

      public OAuthServiceCallbackHandler()
      Please use this constructor if you don't want to set any clientData
  • Method Details

    • getClientData

      public Object getClientData()
      Get the client data
    • receiveResultisOAuthConsumerValid

      public void receiveResultisOAuthConsumerValid(boolean result)
      auto generated Axis2 call back method for isOAuthConsumerValid method override this method for handling normal response from isOAuthConsumerValid operation
    • receiveErrorisOAuthConsumerValid

      public void receiveErrorisOAuthConsumerValid(Exception e)
      auto generated Axis2 Error handler override this method for handling error response from isOAuthConsumerValid operation
    • receiveResultvalidateAuthenticationRequest

      public void receiveResultvalidateAuthenticationRequest(Parameters result)
      auto generated Axis2 call back method for validateAuthenticationRequest method override this method for handling normal response from validateAuthenticationRequest operation
    • receiveErrorvalidateAuthenticationRequest

      public void receiveErrorvalidateAuthenticationRequest(Exception e)
      auto generated Axis2 Error handler override this method for handling error response from validateAuthenticationRequest operation
    • receiveResultauthorizeOauthRequestToken

      public void receiveResultauthorizeOauthRequestToken(Parameters result)
      auto generated Axis2 call back method for authorizeOauthRequestToken method override this method for handling normal response from authorizeOauthRequestToken operation
    • receiveErrorauthorizeOauthRequestToken

      public void receiveErrorauthorizeOauthRequestToken(Exception e)
      auto generated Axis2 Error handler override this method for handling error response from authorizeOauthRequestToken operation
    • receiveResultgetAccessToken

      public void receiveResultgetAccessToken(Parameters result)
      auto generated Axis2 call back method for getAccessToken method override this method for handling normal response from getAccessToken operation
    • receiveErrorgetAccessToken

      public void receiveErrorgetAccessToken(Exception e)
      auto generated Axis2 Error handler override this method for handling error response from getAccessToken operation
    • receiveResultgetScopeAndAppName

      public void receiveResultgetScopeAndAppName(Parameters result)
      auto generated Axis2 call back method for getScopeAndAppName method override this method for handling normal response from getScopeAndAppName operation
    • receiveErrorgetScopeAndAppName

      public void receiveErrorgetScopeAndAppName(Exception e)
      auto generated Axis2 Error handler override this method for handling error response from getScopeAndAppName operation
    • receiveResultgetOauthRequestToken

      public void receiveResultgetOauthRequestToken(Parameters result)
      auto generated Axis2 call back method for getOauthRequestToken method override this method for handling normal response from getOauthRequestToken operation
    • receiveErrorgetOauthRequestToken

      public void receiveErrorgetOauthRequestToken(Exception e)
      auto generated Axis2 Error handler override this method for handling error response from getOauthRequestToken operation