com.icoderman.woocommerce.oauth.OAuthConfig Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of wc-api-java Show documentation
Show all versions of wc-api-java Show documentation
Java wrapper for WooCommerce REST API
package com.icoderman.woocommerce.oauth;
import java.util.Optional;
/**
* OAuth Config class.
* Contains OAuth related information, used later to create many new requests signatures.
*
* Optional parameters are returned as java.util.Optional type.
*/
public interface OAuthConfig {
TimestampNonceFactory getTimestampNonceFactory();
SignatureMethod getSignatureMethod();
String getConsumerKey();
String getConsumerSecret();
Optional getTokenKey();
Optional getTokenSecret();
Optional getCallback();
Optional getVerifier();
Optional getScope();
Optional getRealm();
default OAuthSignatureBuilder buildSignature(HttpMethod method, String url) {
return new OAuthSignatureBuilder(this, method, url);
}
}