Class OAuth2ServiceCallbackHandler
java.lang.Object
org.wso2.carbon.identity.oauth2.stub.OAuth2ServiceCallbackHandler
OAuth2ServiceCallbackHandler 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 clientDataOAuth2ServiceCallbackHandler(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 authorize operationvoidauto generated Axis2 Error handler override this method for handling error response from getUserClaims operationvoidauto generated Axis2 Error handler override this method for handling error response from issueAccessToken operationvoidauto generated Axis2 Error handler override this method for handling error response from revokeTokenByOAuthClient operationvoidauto generated Axis2 Error handler override this method for handling error response from validateClientInfo operationvoidauto generated Axis2 call back method for authorize method override this method for handling normal response from authorize operationvoidreceiveResultgetUserClaims(Claim[] result) auto generated Axis2 call back method for getUserClaims method override this method for handling normal response from getUserClaims operationvoidauto generated Axis2 call back method for issueAccessToken method override this method for handling normal response from issueAccessToken operationvoidauto generated Axis2 call back method for revokeTokenByOAuthClient method override this method for handling normal response from revokeTokenByOAuthClient operationvoidauto generated Axis2 call back method for validateClientInfo method override this method for handling normal response from validateClientInfo operation
-
Field Details
-
clientData
-
-
Constructor Details
-
OAuth2ServiceCallbackHandler
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 Details
-
getClientData
Get the client data -
receiveResultvalidateClientInfo
auto generated Axis2 call back method for validateClientInfo method override this method for handling normal response from validateClientInfo operation -
receiveErrorvalidateClientInfo
auto generated Axis2 Error handler override this method for handling error response from validateClientInfo operation -
receiveResultrevokeTokenByOAuthClient
auto generated Axis2 call back method for revokeTokenByOAuthClient method override this method for handling normal response from revokeTokenByOAuthClient operation -
receiveErrorrevokeTokenByOAuthClient
auto generated Axis2 Error handler override this method for handling error response from revokeTokenByOAuthClient operation -
receiveResultissueAccessToken
auto generated Axis2 call back method for issueAccessToken method override this method for handling normal response from issueAccessToken operation -
receiveErrorissueAccessToken
auto generated Axis2 Error handler override this method for handling error response from issueAccessToken operation -
receiveResultauthorize
auto generated Axis2 call back method for authorize method override this method for handling normal response from authorize operation -
receiveErrorauthorize
auto generated Axis2 Error handler override this method for handling error response from authorize operation -
receiveResultgetUserClaims
auto generated Axis2 call back method for getUserClaims method override this method for handling normal response from getUserClaims operation -
receiveErrorgetUserClaims
auto generated Axis2 Error handler override this method for handling error response from getUserClaims operation
-