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

com.browserup.bup.mitm.CertificateAndKey Maven / Gradle / Ivy

There is a newer version: 2.1.2
Show newest version
/*
 * Modifications Copyright (c) 2019 BrowserUp, Inc.
 */

package com.browserup.bup.mitm;

import java.security.PrivateKey;
import java.security.cert.X509Certificate;

/**
 * A simple container for an X.509 certificate and its corresponding private key.
 */
public class CertificateAndKey {
    private final X509Certificate certificate;
    private final PrivateKey privateKey;

    public CertificateAndKey(X509Certificate certificate, PrivateKey privateKey) {
        this.certificate = certificate;
        this.privateKey = privateKey;
    }

    public X509Certificate getCertificate() {
        return certificate;
    }

    public PrivateKey getPrivateKey() {
        return privateKey;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy