public class IdemixIdentity extends Object implements Identity
Constructor and Description |
---|
IdemixIdentity(org.hyperledger.fabric.protos.msp.Identities.SerializedIdentity proto)
Create Idemix Identity from a Serialized Identity
|
IdemixIdentity(String mspId,
IdemixIssuerPublicKey ipk,
org.apache.milagro.amcl.FP256BN.ECP nym,
String ou,
int roleMask,
IdemixSignature proof)
Create Idemix Identity from the following inputs:
|
Modifier and Type | Method and Description |
---|---|
org.hyperledger.fabric.protos.msp.Identities.SerializedIdentity |
createSerializedIdentity()
Serialize Idemix Identity
|
String |
getOuValue() |
int |
getRoleMask() |
String |
toString() |
public IdemixIdentity(org.hyperledger.fabric.protos.msp.Identities.SerializedIdentity proto) throws CryptoException, InvalidArgumentException
proto
- CryptoException
InvalidArgumentException
public IdemixIdentity(String mspId, IdemixIssuerPublicKey ipk, org.apache.milagro.amcl.FP256BN.ECP nym, String ou, int roleMask, IdemixSignature proof) throws InvalidArgumentException
mspId
- is MSP ID stingnym
- is Identity Mixer Pseudonymou
- is OU attributeroleMask
- is a bitmask that represent all the roles attached to this identityproof
- is ProofInvalidArgumentException
public org.hyperledger.fabric.protos.msp.Identities.SerializedIdentity createSerializedIdentity()
createSerializedIdentity
in interface Identity
public String getOuValue()
public int getRoleMask()
Copyright © 2022. All rights reserved.