Package org.hyperledger.fabric.sdk.user
Class IdemixUser
- java.lang.Object
 - 
- org.hyperledger.fabric.sdk.user.IdemixUser
 
 
- 
- 
Field Summary
Fields Modifier and Type Field Description protected IdemixEnrollmentenrollmentprotected java.lang.StringmspIdprotected java.lang.Stringname 
- 
Constructor Summary
Constructors Constructor Description IdemixUser(java.lang.String name, java.lang.String mspId, IdemixEnrollment enrollment) 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetAccount()Get the user's accountjava.lang.StringgetAffiliation()Get the user's affiliation.org.hyperledger.fabric.protos.idemix.Idemix.CredentialRevocationInformationgetCri()EnrollmentgetEnrollment()Get the user's enrollment certificate information.IdemixCredentialgetIdemixCredential()IdemixIssuerPublicKeygetIpk()java.lang.StringgetMspId()Get the Membership Service Provider Identifier provided by the user's organization.java.lang.StringgetName()Get the name that identifies the user.java.lang.StringgetOu()java.security.PublicKeygetRevocationPk()intgetRoleMask()java.util.Set<java.lang.String>getRoles()Get the roles to which the user belongs.org.apache.milagro.amcl.FP256BN.BIGgetSk()- 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait 
- 
Methods inherited from interface org.hyperledger.fabric.sdk.User
userContextCheck 
 - 
 
 - 
 
- 
- 
Field Detail
- 
name
protected final java.lang.String name
 
- 
mspId
protected final java.lang.String mspId
 
- 
enrollment
protected final IdemixEnrollment enrollment
 
 - 
 
- 
Constructor Detail
- 
IdemixUser
public IdemixUser(java.lang.String name, java.lang.String mspId, IdemixEnrollment enrollment) 
 - 
 
- 
Method Detail
- 
getName
public java.lang.String getName()
Description copied from interface:UserGet the name that identifies the user. 
- 
getRoles
public java.util.Set<java.lang.String> getRoles()
Description copied from interface:UserGet the roles to which the user belongs. 
- 
getAccount
public java.lang.String getAccount()
Description copied from interface:UserGet the user's account- Specified by:
 getAccountin interfaceUser- Returns:
 - the account name
 
 
- 
getAffiliation
public java.lang.String getAffiliation()
Description copied from interface:UserGet the user's affiliation.- Specified by:
 getAffiliationin interfaceUser- Returns:
 - the affiliation.
 
 
- 
getEnrollment
public Enrollment getEnrollment()
Description copied from interface:UserGet the user's enrollment certificate information.- Specified by:
 getEnrollmentin interfaceUser- Returns:
 - the enrollment information.
 
 
- 
getMspId
public java.lang.String getMspId()
Description copied from interface:UserGet the Membership Service Provider Identifier provided by the user's organization. 
- 
getIpk
public IdemixIssuerPublicKey getIpk()
 
- 
getIdemixCredential
public IdemixCredential getIdemixCredential()
 
- 
getCri
public org.hyperledger.fabric.protos.idemix.Idemix.CredentialRevocationInformation getCri()
 
- 
getSk
public org.apache.milagro.amcl.FP256BN.BIG getSk()
 
- 
getRevocationPk
public java.security.PublicKey getRevocationPk()
 
- 
getOu
public java.lang.String getOu()
 
- 
getRoleMask
public int getRoleMask()
 
 - 
 
 -