Class IdemixEnrollment

  • All Implemented Interfaces:
    Enrollment


    public class IdemixEnrollment
    extends java.lang.Object
    implements Enrollment
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected IdemixCredential cred  
      protected org.hyperledger.fabric.protos.idemix.Idemix.CredentialRevocationInformation cri  
      protected IdemixIssuerPublicKey ipk  
      protected java.lang.String mspId  
      protected java.lang.String ou  
      protected java.security.PublicKey revocationPk  
      protected int roleMask  
      protected org.apache.milagro.amcl.FP256BN.BIG sk  
    • 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)  
    • Field Detail

      • revocationPk

        protected final java.security.PublicKey revocationPk
      • mspId

        protected final java.lang.String mspId
      • sk

        protected final org.apache.milagro.amcl.FP256BN.BIG sk
      • 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: Enrollment
        Get the user's private key
        Specified by:
        getKey in interface Enrollment
        Returns:
        private key.
      • getCert

        public java.lang.String getCert​()
        Description copied from interface: Enrollment
        Get the user's signed certificate.
        Specified by:
        getCert in interface Enrollment
        Returns:
        a certificate.
      • getRevocationPk

        public java.security.PublicKey getRevocationPk​()
      • getMspId

        public java.lang.String getMspId​()
      • getSk

        public org.apache.milagro.amcl.FP256BN.BIG getSk​()
      • getCri

        public org.hyperledger.fabric.protos.idemix.Idemix.CredentialRevocationInformation getCri​()
      • getOu

        public java.lang.String getOu​()
      • getRoleMask

        public int getRoleMask​()