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 IdemixEnrollment
enrollment
protected java.lang.String
mspId
protected java.lang.String
name
-
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.String
getAccount()
Get the user's accountjava.lang.String
getAffiliation()
Get the user's affiliation.org.hyperledger.fabric.protos.idemix.Idemix.CredentialRevocationInformation
getCri()
Enrollment
getEnrollment()
Get the user's enrollment certificate information.IdemixCredential
getIdemixCredential()
IdemixIssuerPublicKey
getIpk()
java.lang.String
getMspId()
Get the Membership Service Provider Identifier provided by the user's organization.java.lang.String
getName()
Get the name that identifies the user.java.lang.String
getOu()
java.security.PublicKey
getRevocationPk()
int
getRoleMask()
java.util.Set<java.lang.String>
getRoles()
Get the roles to which the user belongs.org.apache.milagro.amcl.FP256BN.BIG
getSk()
-
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:User
Get the name that identifies the user.
-
getRoles
public java.util.Set<java.lang.String> getRoles()
Description copied from interface:User
Get the roles to which the user belongs.
-
getAccount
public java.lang.String getAccount()
Description copied from interface:User
Get the user's account- Specified by:
getAccount
in interfaceUser
- Returns:
- the account name
-
getAffiliation
public java.lang.String getAffiliation()
Description copied from interface:User
Get the user's affiliation.- Specified by:
getAffiliation
in interfaceUser
- Returns:
- the affiliation.
-
getEnrollment
public Enrollment getEnrollment()
Description copied from interface:User
Get the user's enrollment certificate information.- Specified by:
getEnrollment
in interfaceUser
- Returns:
- the enrollment information.
-
getMspId
public java.lang.String getMspId()
Description copied from interface:User
Get 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()
-
-