title: Java scribe client with OAuth 2 Resource Owner Password Credentials
body: <p>I am building a mobile app that uses the Authorization Grant type "Resource Owner Password Credentials"</p>
  
  <p>Tested the code in Ruby with the "oauth2" gem and it works fine</p>
  
  <pre><code>client = OAuth2::Client.new('the_client_id', 'the_client_secret', :site =&gt; "http://example.com")
  access_token = client.password.get_token('user@example.com', 'sekret')
  puts access_token.token
  </code></pre>
  
  <p>Java code</p>
  
  <pre><code>OAuthService service = new ServiceBuilder()
          .provider(MyApi.class)
          .apiKey("the_client_id")
          .apiSecret("the_client_secret")
          .debug()
          .build();
  // the next step should provide ('user@example.com', 'sekret')
  // because I am using "Resource Owner Password Credentials"
  // http://tools.ietf.org/html/draft-ietf-oauth-v2-31#page-53
  Token requestToken = service.getRequestToken(); 
  </code></pre>
  
  <p>How can I provide the username and password in Scribe (or with other library preferably compatible with Android)?</p>
  
  <p>Right now I cannot find a way to do this with Scribe extending "DefaultApi20".</p>