OAuthConsumer and OAuthProvider: public class OAuthActivity { private OAuthConsumer consumer = new CommonsHttpOAuthConsumer(CONSUMER_KEY, CONSUMER_SECRET); private OAuthProvider provider = new CommonsHttpOAuthProvider( 'http://example.com/oauth/request_token', 'http://example.com/oauth/access_token', 'http://www.example.com/oauth/authorize'); . . . }