public UnpackedRequest.OAuth1TwoLeggedRequest getOAuth1TwoLeggedRequest( Request.ParsedRequest parsedRequest, OAuthParams.OAuth1Params oAuth1Params ) throws MalformedRequest, UnsupportedEncodingException { if (log.isLoggable(Level.FINE)) { log.log(Level.FINE, String.format( "building oauth1 two-legged request -> path = %s, host = %s, consumer key = %s, signature = %s, method = %s", parsedRequest.path(), parsedRequest.host(), oAuth1Params.consumerKey(), oAuth1Params.signature(), oAuth1Params.signatureMethod())); } return UnpackedRequest.O_AUTH_1_REQUEST_HELPER.buildOAuth1TwoLeggedRequest(parsedRequest, oAuth1Params, normalizer); }
public UnpackedRequest.OAuth1Request getOAuth1Request( Request.ParsedRequest parsedRequest, OAuthParams.OAuth1Params oAuth1Params ) throws MalformedRequest, UnsupportedEncodingException { if (log.isLoggable(Level.FINE)) { log.log(Level.FINE, String.format( "building oauth1 request -> path = %s, host = %s, token = %s, consumer key = %s, signature = %s, method = %s", parsedRequest.path(), parsedRequest.host(), oAuth1Params.token(), oAuth1Params.consumerKey(), oAuth1Params.signature(), oAuth1Params.signatureMethod())); } return UnpackedRequest.O_AUTH_1_REQUEST_HELPER.buildOAuth1Request(parsedRequest, oAuth1Params, normalizer); }
public OAuth1Request buildOAuth1Request( Request.ParsedRequest parsedRequest, OAuthParams.OAuth1Params oAuth1Params, Normalizer normalize ) throws MalformedRequest, UnsupportedEncodingException { verify(parsedRequest, oAuth1Params); return new OAuth1Request( UrlCodec.decode(oAuth1Params.token()), // should never be called when token is None UrlCodec.decode(oAuth1Params.consumerKey()), UrlCodec.decode(oAuth1Params.nonce()), oAuth1Params.timestampSecs(), oAuth1Params.signature(), oAuth1Params.signatureMethod(), oAuth1Params.version(), parsedRequest, normalize.normalize(parsedRequest, oAuth1Params) ); }
public OAuth1TwoLeggedRequest buildOAuth1TwoLeggedRequest( Request.ParsedRequest parsedRequest, OAuthParams.OAuth1Params oAuth1Params, Normalizer normalize ) throws MalformedRequest, UnsupportedEncodingException { verify(parsedRequest, oAuth1Params); return new OAuth1TwoLeggedRequest( UrlCodec.decode(oAuth1Params.consumerKey()), UrlCodec.decode(oAuth1Params.nonce()), oAuth1Params.timestampSecs(), oAuth1Params.signature(), oAuth1Params.signatureMethod(), oAuth1Params.version(), parsedRequest, normalize.normalize(parsedRequest, oAuth1Params) ); } }