RequestToken requestToken = rtr.getToken();
// Use the request token to retrieve an access token for the authorizing user.
final ObservableWebBrowser wb = new ObservableWebBrowser();
AccessTokenRequest atr = new AccessTokenRequest(serviceProvider, signer, requestToken);
atr.addReceiveTokenListener(new ActionListener() {
public void actionPerformed(ActionEvent evt) {
Log.p("onAccessToken()", Log.DEBUG);
AccessToken at = (AccessToken)evt.getSource();
onReceiveAccessToken(at);
onSaveAccessToken(at);
onAuthenticated();
onDisposeLogin(backForm, wb);
}
});
atr.addDeniedListener(new ActionListener() {
public void actionPerformed(ActionEvent evt) {
onDisposeLogin(backForm, wb);
}
});