Class IdemixUserStore



  • public class IdemixUserStore
    extends java.lang.Object
    • Constructor Summary

      Constructors 
      Constructor Description
      IdemixUserStore​(java.lang.String storePath, java.lang.String mspId)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      User getUser​(java.lang.String id)  
      protected org.hyperledger.fabric.protos.idemix.Idemix.IssuerPublicKey readIdemixIssuerPublicKey​(java.lang.String id)
      Parse Idemix issuer public key from the config file
      protected org.hyperledger.fabric.protos.msp.MspConfig.IdemixMSPSignerConfig readIdemixMSPConfig​(java.lang.String id)
      Helper function: parse Idemix MSP Signer config (is part of the MSPConfig proto) from path
      protected java.security.PublicKey readIdemixRevocationPublicKey​(java.lang.String id)
      Parse Idemix long-term revocation public key
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • storePath

        protected final java.lang.String storePath
      • mspId

        protected final java.lang.String mspId
    • Constructor Detail

    • Method Detail

      • getUser

        public User getUser​(java.lang.String id)
                     throws java.io.IOException,
                            java.security.NoSuchAlgorithmException,
                            java.security.spec.InvalidKeySpecException
        Throws:
        java.io.IOException
        java.security.NoSuchAlgorithmException
        java.security.spec.InvalidKeySpecException
      • readIdemixMSPConfig

        protected org.hyperledger.fabric.protos.msp.MspConfig.IdemixMSPSignerConfig readIdemixMSPConfig​(java.lang.String id)
                                                                                                 throws java.io.IOException
        Helper function: parse Idemix MSP Signer config (is part of the MSPConfig proto) from path
        Parameters:
        id -
        Returns:
        IdemixMSPSignerConfig proto
        Throws:
        java.io.IOException
      • readIdemixIssuerPublicKey

        protected org.hyperledger.fabric.protos.idemix.Idemix.IssuerPublicKey readIdemixIssuerPublicKey​(java.lang.String id)
        Parse Idemix issuer public key from the config file
        Parameters:
        id -
        Returns:
        Idemix IssuerPublicKey proto
      • readIdemixRevocationPublicKey

        protected java.security.PublicKey readIdemixRevocationPublicKey​(java.lang.String id)
                                                                 throws java.io.IOException,
                                                                        java.security.NoSuchAlgorithmException,
                                                                        java.security.spec.InvalidKeySpecException
        Parse Idemix long-term revocation public key
        Parameters:
        id -
        Returns:
        idemix long-term revocation public key
        Throws:
        java.io.IOException
        java.security.NoSuchAlgorithmException
        java.security.spec.InvalidKeySpecException