Package org.hyperledger.fabric.sdk
Class NetworkConfig.UserInfo
- java.lang.Object
 - 
- org.hyperledger.fabric.sdk.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.StringenrollSecretprotected java.lang.Stringmspidprotected java.lang.Stringname 
- 
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.EnrollmentgetEnrollment()Get the user's enrollment certificate information.java.lang.StringgetEnrollSecret()java.lang.StringgetMspid()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.util.Set<java.lang.String>getRoles()Get the roles to which the user belongs.voidsetAccount(java.lang.String account)voidsetAffiliation(java.lang.String affiliation)voidsetEnrollment(Enrollment enrollment)voidsetEnrollSecret(java.lang.String enrollSecret)voidsetMspid(java.lang.String mspid)voidsetName(java.lang.String name)voidsetRoles(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 
- 
Methods inherited from interface org.hyperledger.fabric.sdk.User
userContextCheck 
 - 
 
 - 
 
- 
- 
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: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.
 
 
 - 
 
 -