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.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 accountjava.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
-
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: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.
-
-