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 Summary
Fields Modifier and Type Field Description protected ObjectclientData
-
Constructor Summary
Constructors Constructor Description OAuthServiceCallbackHandler()Please 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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ObjectgetClientData()Get the client datavoidreceiveErrorauthorizeOauthRequestToken(Exception e)auto generated Axis2 Error handler override this method for handling error response from authorizeOauthRequestToken operationvoidreceiveErrorgetAccessToken(Exception e)auto generated Axis2 Error handler override this method for handling error response from getAccessToken operationvoidreceiveErrorgetOauthRequestToken(Exception e)auto generated Axis2 Error handler override this method for handling error response from getOauthRequestToken operationvoidreceiveErrorgetScopeAndAppName(Exception e)auto generated Axis2 Error handler override this method for handling error response from getScopeAndAppName operationvoidreceiveErrorisOAuthConsumerValid(Exception e)auto generated Axis2 Error handler override this method for handling error response from isOAuthConsumerValid operationvoidreceiveErrorvalidateAuthenticationRequest(Exception e)auto generated Axis2 Error handler override this method for handling error response from validateAuthenticationRequest operationvoidreceiveResultauthorizeOauthRequestToken(Parameters result)auto generated Axis2 call back method for authorizeOauthRequestToken method override this method for handling normal response from authorizeOauthRequestToken operationvoidreceiveResultgetAccessToken(Parameters result)auto generated Axis2 call back method for getAccessToken method override this method for handling normal response from getAccessToken operationvoidreceiveResultgetOauthRequestToken(Parameters result)auto generated Axis2 call back method for getOauthRequestToken method override this method for handling normal response from getOauthRequestToken operationvoidreceiveResultgetScopeAndAppName(Parameters result)auto 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 operationvoidreceiveResultvalidateAuthenticationRequest(Parameters result)auto generated Axis2 call back method for validateAuthenticationRequest method override this method for handling normal response from validateAuthenticationRequest operation
-
-
-
Field Detail
-
clientData
protected Object clientData
-
-
Constructor Detail
-
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 Detail
-
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
-
-