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

org.hyperledger.fabric.sdk.identity.X509Enrollment Maven / Gradle / Ivy

Go to download

Java SDK for Hyperledger Fabric. Deprecated as of Fabric v2.5, replaced by org.hyperledger.fabric:fabric-gateway.

There is a newer version: 2.2.26
Show newest version
package org.hyperledger.fabric.sdk.identity;

import java.io.Serializable;
import java.security.KeyPair;
import java.security.PrivateKey;

import org.hyperledger.fabric.sdk.Enrollment;

public class X509Enrollment implements Enrollment, Serializable {

    private final PrivateKey key;
    private final String cert;

    public X509Enrollment(KeyPair signingKeyPair, String signedPem) {
        this.key = signingKeyPair.getPrivate();
        this.cert = signedPem;
    }

    public X509Enrollment(PrivateKey key, String signedPem) {
        this.key = key;
        this.cert = signedPem;
    }

    public PrivateKey getKey() {
        return key;
    }

    public String getCert() {
        return cert;
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy