rest-assured/src/main/java/io/restassured/internal/http/AuthConfig.java
public void oauth(String consumerKey, String consumerSecret,
                      String accessToken, String secretToken) {
        this.builder.client.removeRequestInterceptorByClass(OAuthSigner.class);
        if (consumerKey != null) {
            this.builder.client.addRequestInterceptor(new OAuthSigner(
                    consumerKey, consumerSecret, accessToken, secretToken, OAuthSignature.HEADER,
                    raOAuthConfig.shouldAddEmptyAccessOAuthTokenToBaseString()));
        }
    }
public void oauth(String consumerKey, String consumerSecret,
                      String accessToken, String secretToken) {
        this.builder.client.removeRequestInterceptorByClass(OAuthSigner.class);
        if (consumerKey != null) {
            this.builder.client.addRequestInterceptor(new OAuthSigner(
                    consumerKey, consumerSecret, accessToken, secretToken, OAuthSignature.HEADER,
                    raOAuthConfig.shouldAddEmptyAccessOAuthTokenToBaseString()));
        }
    }
</p>OAuth sign all requests.  Note that this currently does <strong>not</strong>
wait for a <code>WWW-Authenticate</code> challenge before sending the
the OAuth header.  All requests to all domains will be signed for this
instance.</p>
<p/>
<p>This assumes you've already generated an <code>accessToken</code> and
<code>secretToken</code> for the site you're targeting.  For More information
on how to achieve this, see the
<a href='https://github.com/scribejava/scribejava/wiki/Getting-Started'>Scribe documentation</a>.</p>

@param consumerKey    <code>null</code> if you want to <strong>unset</strong>
OAuth handling and stop signing requests.
@param consumerSecret
@param accessToken
@param secretToken
@since 0.5.1