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.SerializedIdentitycreateSerializedIdentity()Serialize Idemix Identityjava.lang.StringgetOuValue()intgetRoleMask()java.lang.StringtoString()
-
-
-
Constructor Detail
-
IdemixIdentity
public IdemixIdentity(org.hyperledger.fabric.protos.msp.Identities.SerializedIdentity proto) throws CryptoException, InvalidArgumentExceptionCreate Idemix Identity from a Serialized Identity- Parameters:
proto-- Throws:
CryptoExceptionInvalidArgumentException
-
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 InvalidArgumentExceptionCreate 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:
createSerializedIdentityin interfaceIdentity- Returns:
- SerializedIdentity
-
getOuValue
public java.lang.String getOuValue()
-
getRoleMask
public int getRoleMask()
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-