Class OAuth2ServiceCallbackHandler


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

      • clientData

        protected Object clientData
    • Constructor Detail

      • OAuth2ServiceCallbackHandler

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

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

      • getClientData

        public Object getClientData()
        Get the client data
      • receiveResultvalidateClientInfo

        public void receiveResultvalidateClientInfo​(OAuth2ClientValidationResponseDTO result)
        auto generated Axis2 call back method for validateClientInfo method override this method for handling normal response from validateClientInfo operation
      • receiveErrorvalidateClientInfo

        public void receiveErrorvalidateClientInfo​(Exception e)
        auto generated Axis2 Error handler override this method for handling error response from validateClientInfo operation
      • receiveResultrevokeTokenByOAuthClient

        public void receiveResultrevokeTokenByOAuthClient​(OAuthRevocationResponseDTO result)
        auto generated Axis2 call back method for revokeTokenByOAuthClient method override this method for handling normal response from revokeTokenByOAuthClient operation
      • receiveErrorrevokeTokenByOAuthClient

        public void receiveErrorrevokeTokenByOAuthClient​(Exception e)
        auto generated Axis2 Error handler override this method for handling error response from revokeTokenByOAuthClient operation
      • receiveResultissueAccessToken

        public void receiveResultissueAccessToken​(OAuth2AccessTokenRespDTO result)
        auto generated Axis2 call back method for issueAccessToken method override this method for handling normal response from issueAccessToken operation
      • receiveErrorissueAccessToken

        public void receiveErrorissueAccessToken​(Exception e)
        auto generated Axis2 Error handler override this method for handling error response from issueAccessToken operation
      • receiveResultauthorize

        public void receiveResultauthorize​(OAuth2AuthorizeRespDTO result)
        auto generated Axis2 call back method for authorize method override this method for handling normal response from authorize operation
      • receiveErrorauthorize

        public void receiveErrorauthorize​(Exception e)
        auto generated Axis2 Error handler override this method for handling error response from authorize operation
      • receiveResultgetUserClaims

        public void receiveResultgetUserClaims​(Claim[] result)
        auto generated Axis2 call back method for getUserClaims method override this method for handling normal response from getUserClaims operation
      • receiveErrorgetUserClaims

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