Class OAuth2TokenValidationServiceCallbackHandler

java.lang.Object
org.wso2.carbon.identity.oauth2.stub.OAuth2TokenValidationServiceCallbackHandler

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

    • clientData

      protected Object clientData
  • Constructor Details

    • OAuth2TokenValidationServiceCallbackHandler

      public OAuth2TokenValidationServiceCallbackHandler(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.
    • OAuth2TokenValidationServiceCallbackHandler

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

    • getClientData

      public Object getClientData()
      Get the client data
    • receiveResultvalidate

      public void receiveResultvalidate(OAuth2TokenValidationResponseDTO result)
      auto generated Axis2 call back method for validate method override this method for handling normal response from validate operation
    • receiveErrorvalidate

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