Class IdemixEnrollment
- java.lang.Object
-
- org.hyperledger.fabric.sdk.identity.IdemixEnrollment
-
- All Implemented Interfaces:
Enrollment
public class IdemixEnrollment extends java.lang.Object implements Enrollment
-
-
Field Summary
Fields Modifier and Type Field Description protected IdemixCredentialcredprotected org.hyperledger.fabric.protos.idemix.Idemix.CredentialRevocationInformationcriprotected IdemixIssuerPublicKeyipkprotected java.lang.StringmspIdprotected java.lang.Stringouprotected java.security.PublicKeyrevocationPkprotected introleMaskprotected org.apache.milagro.amcl.FP256BN.BIGsk
-
Constructor Summary
Constructors Constructor Description IdemixEnrollment(IdemixIssuerPublicKey ipk, java.security.PublicKey revocationPk, java.lang.String mspId, org.apache.milagro.amcl.FP256BN.BIG sk, IdemixCredential cred, org.hyperledger.fabric.protos.idemix.Idemix.CredentialRevocationInformation cri, java.lang.String ou, int roleMask)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetCert()Get the user's signed certificate.IdemixCredentialgetCred()org.hyperledger.fabric.protos.idemix.Idemix.CredentialRevocationInformationgetCri()IdemixIssuerPublicKeygetIpk()java.security.PrivateKeygetKey()Get the user's private keyjava.lang.StringgetMspId()java.lang.StringgetOu()java.security.PublicKeygetRevocationPk()intgetRoleMask()org.apache.milagro.amcl.FP256BN.BIGgetSk()
-
-
-
Field Detail
-
ipk
protected final IdemixIssuerPublicKey ipk
-
revocationPk
protected final java.security.PublicKey revocationPk
-
mspId
protected final java.lang.String mspId
-
sk
protected final org.apache.milagro.amcl.FP256BN.BIG sk
-
cred
protected final IdemixCredential cred
-
cri
protected final org.hyperledger.fabric.protos.idemix.Idemix.CredentialRevocationInformation cri
-
ou
protected final java.lang.String ou
-
roleMask
protected final int roleMask
-
-
Constructor Detail
-
IdemixEnrollment
public IdemixEnrollment(IdemixIssuerPublicKey ipk, java.security.PublicKey revocationPk, java.lang.String mspId, org.apache.milagro.amcl.FP256BN.BIG sk, IdemixCredential cred, org.hyperledger.fabric.protos.idemix.Idemix.CredentialRevocationInformation cri, java.lang.String ou, int roleMask)
-
-
Method Detail
-
getKey
public java.security.PrivateKey getKey()
Description copied from interface:EnrollmentGet the user's private key- Specified by:
getKeyin interfaceEnrollment- Returns:
- private key.
-
getCert
public java.lang.String getCert()
Description copied from interface:EnrollmentGet the user's signed certificate.- Specified by:
getCertin interfaceEnrollment- Returns:
- a certificate.
-
getIpk
public IdemixIssuerPublicKey getIpk()
-
getRevocationPk
public java.security.PublicKey getRevocationPk()
-
getMspId
public java.lang.String getMspId()
-
getSk
public org.apache.milagro.amcl.FP256BN.BIG getSk()
-
getCred
public IdemixCredential getCred()
-
getCri
public org.hyperledger.fabric.protos.idemix.Idemix.CredentialRevocationInformation getCri()
-
getOu
public java.lang.String getOu()
-
getRoleMask
public int getRoleMask()
-
-