public RequestToken retrieveAccessToken ( RequestToken token , String verifier ) { OAuthConsumer consumer = new DefaultOAuthConsumer ( info . key . key , info . key . secret ) ; consumer . setTokenWithSecret ( token . token , token . secret ) ; try { provider . retrieveAccessToken ( consumer , verifier ) ; return new RequestToken ( consumer . getToken ( ) , consumer . getTokenSecret ( ) ) ; } catch ( OAuthException ex ) { throw new RuntimeException ( ex ) ; } }
Exchange a request token for an access token .