Class OAuth2ServiceCallbackHandler
- java.lang.Object
-
- org.wso2.carbon.identity.oauth2.stub.OAuth2ServiceCallbackHandler
-
public abstract class OAuth2ServiceCallbackHandler extends Object
OAuth2ServiceCallbackHandler Callback class, Users can extend this class and implement their own receiveResult and receiveError methods.
-
-
Field Summary
Fields Modifier and Type Field Description protected Object
clientData
-
Constructor Summary
Constructors Constructor Description OAuth2ServiceCallbackHandler()
Please 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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Object
getClientData()
Get the client datavoid
receiveErrorauthorize(Exception e)
auto generated Axis2 Error handler override this method for handling error response from authorize operationvoid
receiveErrorgetUserClaims(Exception e)
auto generated Axis2 Error handler override this method for handling error response from getUserClaims operationvoid
receiveErrorissueAccessToken(Exception e)
auto generated Axis2 Error handler override this method for handling error response from issueAccessToken operationvoid
receiveErrorrevokeTokenByOAuthClient(Exception e)
auto generated Axis2 Error handler override this method for handling error response from revokeTokenByOAuthClient operationvoid
receiveErrorvalidateClientInfo(Exception e)
auto generated Axis2 Error handler override this method for handling error response from validateClientInfo operationvoid
receiveResultauthorize(OAuth2AuthorizeRespDTO result)
auto generated Axis2 call back method for authorize method override this method for handling normal response from authorize operationvoid
receiveResultgetUserClaims(Claim[] result)
auto generated Axis2 call back method for getUserClaims method override this method for handling normal response from getUserClaims operationvoid
receiveResultissueAccessToken(OAuth2AccessTokenRespDTO result)
auto generated Axis2 call back method for issueAccessToken method override this method for handling normal response from issueAccessToken operationvoid
receiveResultrevokeTokenByOAuthClient(OAuthRevocationResponseDTO result)
auto generated Axis2 call back method for revokeTokenByOAuthClient method override this method for handling normal response from revokeTokenByOAuthClient operationvoid
receiveResultvalidateClientInfo(OAuth2ClientValidationResponseDTO result)
auto generated Axis2 call back method for validateClientInfo method override this method for handling normal response from validateClientInfo operation
-
-
-
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
-
-