com.mastercard.developer.signers.AbstractSigner Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of oauth1-signer Show documentation
Show all versions of oauth1-signer Show documentation
Zero dependency library for generating a Mastercard API compliant OAuth signature
The newest version!
package com.mastercard.developer.signers;
import java.nio.charset.Charset;
import java.security.PrivateKey;
public abstract class AbstractSigner {
protected final String consumerKey;
protected final PrivateKey signingKey;
protected final Charset charset;
protected AbstractSigner(String consumerKey, PrivateKey signingKey) {
this(Charset.defaultCharset(), consumerKey, signingKey);
}
protected AbstractSigner(Charset charset, String consumerKey, PrivateKey signingKey) {
this.consumerKey = consumerKey;
this.signingKey = signingKey;
this.charset = charset;
}
}