// Path: src/main/java/com/cardinity/Cardinity.java
// public abstract class Cardinity {
// 
//     public static final String API_BASE = "https://api.cardinity.com";
//     public static final String API_VERSION = "v1";
//     public static final String VERSION = "0.1";
//     public static final String ENCODING_CHARSET = "UTF-8";
// 
// }


import com.cardinity.Cardinity;
import java.io.UnsupportedEncodingException;
import java.net.URLEncoder;
package com.cardinity.oauth;



public final class OAuthUtils {

    private OAuthUtils() {
    }

    public static String percentEncode(String s) {
        if (s == null) {
            return "";
        }
        try {
// Path: src/main/java/com/cardinity/Cardinity.java
// public abstract class Cardinity {
// 
//     public static final String API_BASE = "https://api.cardinity.com";
//     public static final String API_VERSION = "v1";
//     public static final String VERSION = "0.1";
//     public static final String ENCODING_CHARSET = "UTF-8";
// 
// }


// Path: src/main/java/com/cardinity/oauth/OAuthUtils.java
import com.cardinity.Cardinity;
import java.io.UnsupportedEncodingException;
import java.net.URLEncoder;

package com.cardinity.oauth;



public final class OAuthUtils {

    private OAuthUtils() {
    }

    public static String percentEncode(String s) {
        if (s == null) {
            return "";
        }
        try {
            return URLEncoder.encode(s, Cardinity.ENCODING_CHARSET).replace("+", "%20").replace("*", "%2A")