Class IdemixUser

  • All Implemented Interfaces:
    User


    public class IdemixUser
    extends java.lang.Object
    implements User
    • Field Detail

      • name

        protected final java.lang.String name
      • mspId

        protected final java.lang.String mspId
    • 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.
        Specified by:
        getName in interface User
        Returns:
        the user name.
      • getRoles

        public java.util.Set<java.lang.String> getRoles​()
        Description copied from interface: User
        Get the roles to which the user belongs.
        Specified by:
        getRoles in interface User
        Returns:
        role names.
      • getAccount

        public java.lang.String getAccount​()
        Description copied from interface: User
        Get the user's account
        Specified by:
        getAccount in interface User
        Returns:
        the account name
      • getAffiliation

        public java.lang.String getAffiliation​()
        Description copied from interface: User
        Get the user's affiliation.
        Specified by:
        getAffiliation in interface User
        Returns:
        the affiliation.
      • getEnrollment

        public Enrollment getEnrollment​()
        Description copied from interface: User
        Get the user's enrollment certificate information.
        Specified by:
        getEnrollment in interface User
        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.
        Specified by:
        getMspId in interface User
        Returns:
        MSP Id.
      • 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​()