Class OAuthServiceCallbackHandler
java.lang.Object
org.wso2.carbon.identity.oauth.stub.OAuthServiceCallbackHandler
OAuthServiceCallbackHandler Callback class, Users can extend this class and implement
their own receiveResult and receiveError methods.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionPlease use this constructor if you don't want to set any clientDataOAuthServiceCallbackHandler(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. -
Method Summary
Modifier and TypeMethodDescriptionGet the client datavoidauto generated Axis2 Error handler override this method for handling error response from authorizeOauthRequestToken operationvoidauto generated Axis2 Error handler override this method for handling error response from getAccessToken operationvoidauto generated Axis2 Error handler override this method for handling error response from getOauthRequestToken operationvoidauto generated Axis2 Error handler override this method for handling error response from getScopeAndAppName operationvoidauto generated Axis2 Error handler override this method for handling error response from isOAuthConsumerValid operationvoidauto generated Axis2 Error handler override this method for handling error response from validateAuthenticationRequest operationvoidauto generated Axis2 call back method for authorizeOauthRequestToken method override this method for handling normal response from authorizeOauthRequestToken operationvoidauto generated Axis2 call back method for getAccessToken method override this method for handling normal response from getAccessToken operationvoidauto generated Axis2 call back method for getOauthRequestToken method override this method for handling normal response from getOauthRequestToken operationvoidauto generated Axis2 call back method for getScopeAndAppName method override this method for handling normal response from getScopeAndAppName operationvoidreceiveResultisOAuthConsumerValid(boolean result) auto generated Axis2 call back method for isOAuthConsumerValid method override this method for handling normal response from isOAuthConsumerValid operationvoidauto generated Axis2 call back method for validateAuthenticationRequest method override this method for handling normal response from validateAuthenticationRequest operation
-
Field Details
-
clientData
-
-
Constructor Details
-
OAuthServiceCallbackHandler
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
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
auto generated Axis2 Error handler override this method for handling error response from isOAuthConsumerValid operation -
receiveResultvalidateAuthenticationRequest
auto generated Axis2 call back method for validateAuthenticationRequest method override this method for handling normal response from validateAuthenticationRequest operation -
receiveErrorvalidateAuthenticationRequest
auto generated Axis2 Error handler override this method for handling error response from validateAuthenticationRequest operation -
receiveResultauthorizeOauthRequestToken
auto generated Axis2 call back method for authorizeOauthRequestToken method override this method for handling normal response from authorizeOauthRequestToken operation -
receiveErrorauthorizeOauthRequestToken
auto generated Axis2 Error handler override this method for handling error response from authorizeOauthRequestToken operation -
receiveResultgetAccessToken
auto generated Axis2 call back method for getAccessToken method override this method for handling normal response from getAccessToken operation -
receiveErrorgetAccessToken
auto generated Axis2 Error handler override this method for handling error response from getAccessToken operation -
receiveResultgetScopeAndAppName
auto generated Axis2 call back method for getScopeAndAppName method override this method for handling normal response from getScopeAndAppName operation -
receiveErrorgetScopeAndAppName
auto generated Axis2 Error handler override this method for handling error response from getScopeAndAppName operation -
receiveResultgetOauthRequestToken
auto generated Axis2 call back method for getOauthRequestToken method override this method for handling normal response from getOauthRequestToken operation -
receiveErrorgetOauthRequestToken
auto generated Axis2 Error handler override this method for handling error response from getOauthRequestToken operation
-