Class IdemixIdentity
- java.lang.Object
-
- org.hyperledger.fabric.sdk.identity.IdemixIdentity
-
- All Implemented Interfaces:
Identity
public class IdemixIdentity extends java.lang.Object implements Identity
IdemixIdentity is a public serializable part of the IdemixSigningIdentity. It contains an (un)linkable pseudonym, revealed attribute values, and a corresponding proof of possession of an Idemix credential
-
-
Constructor Summary
Constructors Constructor Description IdemixIdentity(java.lang.String mspId, IdemixIssuerPublicKey ipk, org.apache.milagro.amcl.FP256BN.ECP nym, java.lang.String ou, int roleMask, IdemixSignature proof)
Create Idemix Identity from the following inputs:IdemixIdentity(org.hyperledger.fabric.protos.msp.Identities.SerializedIdentity proto)
Create Idemix Identity from a Serialized Identity
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.hyperledger.fabric.protos.msp.Identities.SerializedIdentity
createSerializedIdentity()
Serialize Idemix Identityjava.lang.String
getOuValue()
int
getRoleMask()
java.lang.String
toString()
-
-
-
Constructor Detail
-
IdemixIdentity
public IdemixIdentity(org.hyperledger.fabric.protos.msp.Identities.SerializedIdentity proto) throws CryptoException, InvalidArgumentException
Create Idemix Identity from a Serialized Identity- Parameters:
proto
-- Throws:
CryptoException
InvalidArgumentException
-
IdemixIdentity
public IdemixIdentity(java.lang.String mspId, IdemixIssuerPublicKey ipk, org.apache.milagro.amcl.FP256BN.ECP nym, java.lang.String ou, int roleMask, IdemixSignature proof) throws InvalidArgumentException
Create Idemix Identity from the following inputs:- Parameters:
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 Proof- Throws:
InvalidArgumentException
-
-
Method Detail
-
createSerializedIdentity
public org.hyperledger.fabric.protos.msp.Identities.SerializedIdentity createSerializedIdentity()
Serialize Idemix Identity- Specified by:
createSerializedIdentity
in interfaceIdentity
- Returns:
- SerializedIdentity
-
getOuValue
public java.lang.String getOuValue()
-
getRoleMask
public int getRoleMask()
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-