Package org.hyperledger.fabric.sdk.user
Class IdemixUserStore
- java.lang.Object
-
- org.hyperledger.fabric.sdk.user.IdemixUserStore
-
public class IdemixUserStore extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description protected IdemixIssuerPublicKey
ipk
protected java.lang.String
mspId
protected java.lang.String
storePath
-
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 fileprotected 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 pathprotected java.security.PublicKey
readIdemixRevocationPublicKey(java.lang.String id)
Parse Idemix long-term revocation public key
-
-
-
Field Detail
-
storePath
protected final java.lang.String storePath
-
mspId
protected final java.lang.String mspId
-
ipk
protected final IdemixIssuerPublicKey ipk
-
-
Constructor Detail
-
IdemixUserStore
public IdemixUserStore(java.lang.String storePath, java.lang.String mspId) throws CryptoException
- Throws:
CryptoException
-
-
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
-
-