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

com.mastercard.developer.utils.SecurityUtils Maven / Gradle / Ivy

Go to download

Zero dependency library for generating a Mastercard API compliant OAuth signature

The newest version!
package com.mastercard.developer.utils;

import java.io.IOException;
import java.security.*;
import java.security.cert.CertificateException;

/**
 * Utility class.
 * @deprecated Use {@link com.mastercard.developer.utils.AuthenticationUtils} instead.
 */
@Deprecated
public final class SecurityUtils {

    private SecurityUtils() {
    }

    @Deprecated
    public static PrivateKey loadPrivateKey(String pkcs12KeyFilePath,
                                            String keyAlias,
                                            String keyPassword) throws IOException, KeyStoreException, CertificateException, NoSuchAlgorithmException, UnrecoverableKeyException {
        return AuthenticationUtils.loadSigningKey(pkcs12KeyFilePath, keyAlias, keyPassword);
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy