Class NetworkConfig.UserInfo

  • All Implemented Interfaces:
    User
    Enclosing class:
    NetworkConfig


    public static class NetworkConfig.UserInfo
    extends java.lang.Object
    implements User
    Holds details of a User
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected java.lang.String enrollSecret  
      protected java.lang.String mspid  
      protected java.lang.String name  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getAccount​()
      Get the user's account
      java.lang.String getAffiliation​()
      Get the user's affiliation.
      Enrollment getEnrollment​()
      Get the user's enrollment certificate information.
      java.lang.String getEnrollSecret​()  
      java.lang.String getMspid​()  
      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.util.Set<java.lang.String> getRoles​()
      Get the roles to which the user belongs.
      void setAccount​(java.lang.String account)  
      void setAffiliation​(java.lang.String affiliation)  
      void setEnrollment​(Enrollment enrollment)  
      void setEnrollSecret​(java.lang.String enrollSecret)  
      void setMspid​(java.lang.String mspid)  
      void setName​(java.lang.String name)  
      void setRoles​(java.util.Set<java.lang.String> roles)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • name

        protected java.lang.String name
      • enrollSecret

        protected java.lang.String enrollSecret
      • mspid

        protected java.lang.String mspid
    • Method Detail

      • setName

        public void setName​(java.lang.String name)
      • setEnrollSecret

        public void setEnrollSecret​(java.lang.String enrollSecret)
      • getMspid

        public java.lang.String getMspid​()
      • setMspid

        public void setMspid​(java.lang.String mspid)
      • setRoles

        public void setRoles​(java.util.Set<java.lang.String> roles)
      • setAccount

        public void setAccount​(java.lang.String account)
      • setAffiliation

        public void setAffiliation​(java.lang.String affiliation)
      • setEnrollment

        public void setEnrollment​(Enrollment enrollment)
      • getEnrollSecret

        public java.lang.String getEnrollSecret​()
      • 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.