The DID method that this Agent was constructed with, or otherwise the SDK's default DID method
The Agent's IdentityWallet instance.
Shortcut for identityWallet
The Agent's KeyProvider instance.
Returns a base64 encoded signed credential issuance token, given issuance attributes and a recieved token selecting desired issuance
credential issuance attributes
base64 encoded credential offer response token
A base64 encoded signed issuance token containing verifiable credentials
Returns a Signed Credential
credential attributes
SignedCredential instance
Creates and registers an Identity based on a BIP39 mnemonic phrase
a BIP39 mnemonic phrase to use
if true, overwrite any pre-existing identity in storage (default false)
An IdentityWallet holding an Identity created by the configured DID Method given the entropy encoded in the mnemonic phrase
Create and store new Identity using the Agent's didMethod
the newly created {@link IdentityWallet}
Loads an Identity based on a BIP39 mnemonic phrase
a BIP39 mnemonic phrase to use
An IdentityWallet holding an Identity created by the configured DID Method given the entropy encoded in the mnemonic phrase
Load an Identity from storage, given its DID.
If no DID is specified, the first Identity found in storage will be loaded.
DID of Identity to be loaded from DB
An IdentityWallet corrosponding to the given DID
Find an interaction, by id or by jwt, or by JSONWebToken object
id, JWT string, or JSONWebToken object
Promise
Parses a recieved interaction token in JWT format and process it through the interaction system, returning the corresponding Interaction
recieved jwt string
Promise
Creates a signed, base64 encoded Authentication Request, given a callbackURL
Base64 encoded signed Authentication Request
Creates a signed, base64 encoded Authorization Request, given the request attributes
Authrization Request Attributes
Base64 encoded signed Authentication Request
Returns a base64 encoded signed credential offer token, given request attributes
credential offer attributes
A base64 encoded signed credential offer token offering
credentials according to offer
Creates a signed, base64 encoded Credential Request, given a set of requirements
Credential Request Attributes
Base64 encoded signed credential request
Creates a signed, base64 encoded JWT for an EstablishChannelRequest interaction token
EstablishChannelRequest Attributes
Base64 encoded signed EstablishChannelRequest
Creates a signed, base64 encoded Resolution Request, given a URI
Base64 encoded signed Resolution Request
Returns the Proof of Control Authority for an Agent the PCA is a DID Method specific set of data which proves that the key holder also controls the Identifier
Control Proof string
Generated using TypeDoc
The
Agent
class mainly provides an abstraction around the {@link IdentityWallet} and InteractionManager components. It provides glue code for:The JolocomSDK has further convenience methods for Agent construction: JolocomSDK.createAgent, JolocomSDK.loadAgent, JolocomSDK.initAgent