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

com.github.dreamhead.moco.bootstrap.HttpsArg Maven / Gradle / Ivy

package com.github.dreamhead.moco.bootstrap;

import com.github.dreamhead.moco.HttpsCertificate;
import com.github.dreamhead.moco.Moco;

import static com.github.dreamhead.moco.HttpsCertificate.certificate;

public final class HttpsArg {
    private final String filename;
    private final String keystore;
    private final String cert;

    public HttpsArg(final String filename, final String keystore, final String cert) {
        this.filename = filename;
        this.keystore = keystore;
        this.cert = cert;
    }

    public HttpsCertificate getCertificate() {
        return certificate(Moco.file(filename), keystore, cert);
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy