Class: SecurityContext

composer-common. SecurityContext

SecurityContext is used to authenticate and manage
user credentials to the underlying blockchain fabric.


<abstract> new SecurityContext(connection, user)

Create the SecurityContext.
Note: Only to be called by framework code. Applications should
retrieve instances by calling login

Parameters:
Name Type Description
connection Connection

The owning connection.

user string

The user identifier.

Source:

Methods


getConnection()

Get the owning connection.

Source:
Returns:

The owning connection.

Type
Connection

<abstract> getUser()

Get the current username.

Source:
Returns:

The username

Type
string

toJSON()

Stop serialization of this object.

Source:
Returns:

An empty object.

Type
Object