com.worklight.wlclient.api
Interface WLAccessTokenListener
-
public interface WLAccessTokenListenerThis interface defines methods that the listener for theWLAuthorizationManager.obtainAccessToken(String, WLAccessTokenListener)method implements to receive notifications about the result of the method call.
-
-
Method Summary
Methods Modifier and Type Method and Description voidonFailure(WLFailResponse response)Called whenWLAuthorizationManager.obtainAccessTokenfails.voidonSuccess(AccessToken accessToken)Called whenWLAuthorizationManager.obtainAccessTokencompletes successfully.
-
-
-
Method Detail
-
onSuccess
void onSuccess(AccessToken accessToken)
Called whenWLAuthorizationManager.obtainAccessTokencompletes successfully.- Parameters:
accessToken- Access token for the requested scope.
-
onFailure
void onFailure(WLFailResponse response)
Called whenWLAuthorizationManager.obtainAccessTokenfails.- Parameters:
response- Response containing error information.
-
-