
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;
public final class OAuthConfig {
private final String url;
private final String consumerKey;
private final String consumerSecret;
public OAuthConfig(String url, String consumerKey, String consumerSecret) {
if (url == null || url.isEmpty() ||
consumerKey == null || consumerKey.isEmpty() ||
consumerSecret == null || consumerSecret.isEmpty()) {
throw new IllegalArgumentException("All arguments are required");
}
this.url = url;
this.consumerKey = consumerKey;
this.consumerSecret = consumerSecret;
}
public String getUrl() {
return url;
}
public String getConsumerKey() {
return consumerKey;
}
public String getConsumerSecret() {
return consumerSecret;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy