Class X509Enrollment
- java.lang.Object
-
- org.hyperledger.fabric.sdk.identity.X509Enrollment
-
- All Implemented Interfaces:
java.io.Serializable
,Enrollment
public class X509Enrollment extends java.lang.Object implements Enrollment, java.io.Serializable
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description X509Enrollment(java.security.KeyPair signingKeyPair, java.lang.String signedPem)
X509Enrollment(java.security.PrivateKey key, java.lang.String signedPem)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getCert()
Get the user's signed certificate.java.security.PrivateKey
getKey()
Get the user's private key
-
-
-
Method Detail
-
getKey
public java.security.PrivateKey getKey()
Description copied from interface:Enrollment
Get the user's private key- Specified by:
getKey
in interfaceEnrollment
- Returns:
- private key.
-
getCert
public java.lang.String getCert()
Description copied from interface:Enrollment
Get the user's signed certificate.- Specified by:
getCert
in interfaceEnrollment
- Returns:
- a certificate.
-
-