All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.mastercard.developer.signers.AbstractSigner Maven / Gradle / Ivy

Go to download

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;
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy