title: Configure OAuth header
body: <p>I am trying send request with oauth to Jira.
  I add to the URL all oauth parameters.
  How do I create the oauth_signature (RSA_SHA1) ?
  Is there java library to do that ?</p>
  
  <p>Thanks </p>
  
  <pre><code>public void configure(com.atlassian.httpclient.api.Request request) {
  URI uri = request.getUri();
  String uriStr = uri.toString();
  String prefix = "?";
  if (uri.getQuery() != null) {
      prefix = "&amp;";
  }
  uriStr += prefix;
  uriStr += "oauth_token=&lt;access_token&gt;";
  uriStr += "&amp;oauth_consumer_key=&lt;consumer_key&gt;";
  uriStr += "&amp;oauth_signature_method=RSA-SHA1";
  uriStr += "&amp;oauth_timestamp=" + String.valueOf(System.currentTimeMillis() / 1000));
  uriStr += "oauth_nonce=" + RandomStringUtils.randomAscii(8);
  uriStr += "oauth_signature=" + ???
  
  request.setUri(new URI(uriStr));
  </code></pre>
  
  <p>}</p>