/** * Creates an OAuth 1.0 protected resource request interceptor. * @param accessToken the access token and secret */ public OAuth1RequestInterceptor(OAuth1Credentials oauth1Credentials) { this.oauth1Credentials = oauth1Credentials; this.signingUtils = new SigningSupport(); }
/** * Creates an OAuth 1.0 protected resource request interceptor. * @param accessToken the access token and secret */ public OAuth1RequestInterceptor(OAuth1Credentials oauth1Credentials) { this.oauth1Credentials = oauth1Credentials; this.signingUtils = new SigningSupport(); }
public OAuth1Template(String consumerKey, String consumerSecret, String requestTokenUrl, String authorizeUrl, String authenticateUrl, String accessTokenUrl, OAuth1Version version) { Assert.notNull(consumerKey, "The consumerKey property cannot be null"); Assert.notNull(consumerSecret, "The consumerSecret property cannot be null"); Assert.notNull(requestTokenUrl, "The requestTokenUrl property cannot be null"); Assert.notNull(authorizeUrl, "The authorizeUrl property cannot be null"); Assert.notNull(accessTokenUrl, "The accessTokenUrl property cannot be null"); this.consumerKey = consumerKey; this.consumerSecret = consumerSecret; this.requestTokenUrl = encodeTokenUri(requestTokenUrl); this.authorizeUrl = authorizeUrl; this.authenticateUrl = authenticateUrl; this.accessTokenUrl = encodeTokenUri(accessTokenUrl); this.version = version; this.restTemplate = createRestTemplate(); this.signingUtils = new SigningSupport(); }
public OAuth1Template(String consumerKey, String consumerSecret, String requestTokenUrl, String authorizeUrl, String authenticateUrl, String accessTokenUrl, OAuth1Version version) { Assert.notNull(consumerKey, "The consumerKey property cannot be null"); Assert.notNull(consumerSecret, "The consumerSecret property cannot be null"); Assert.notNull(requestTokenUrl, "The requestTokenUrl property cannot be null"); Assert.notNull(authorizeUrl, "The authorizeUrl property cannot be null"); Assert.notNull(accessTokenUrl, "The accessTokenUrl property cannot be null"); this.consumerKey = consumerKey; this.consumerSecret = consumerSecret; this.requestTokenUrl = encodeTokenUri(requestTokenUrl); this.authorizeUrl = authorizeUrl; this.authenticateUrl = authenticateUrl; this.accessTokenUrl = encodeTokenUri(accessTokenUrl); this.version = version; this.restTemplate = createRestTemplate(); this.signingUtils = new SigningSupport(); }