Constructor
new EmbeddedSecurityContext(connection, identity)
Constructor.
Parameters:
Name | Type | Description |
---|---|---|
connection |
Connection | The owning connection. |
identity |
Object | The current identity. |
- Source:
Methods
getChaincodeID() → {string}
Get the chaincode ID.
- Source:
Returns:
The chaincode ID.
- Type
- string
getIdentity() → {string}
Get the current identity.
- Source:
Returns:
The current identity.
- Type
- string
getUser() → {string}
Get the current username.
- Source:
Returns:
The username
- Type
- string
setChaincodeID(chaincodeID)
Set the chaincode ID.
Parameters:
Name | Type | Description |
---|---|---|
chaincodeID |
string | The chaincode ID. |
- Source: