Skip to main content

Class: UniversalResolverConnector

Class for performing identity operations on a universal resolver.

Implements​

  • IIdentityResolverConnector
  • IHealthProviderComponent

Constructors​

Constructor​

new UniversalResolverConnector(options): UniversalResolverConnector

Create a new instance of UniversalResolverConnector.

Parameters​

options​

IUniversalResolverConnectorConstructorOptions

The options for the identity connector.

Returns​

UniversalResolverConnector

Properties​

NAMESPACE​

readonly static NAMESPACE: string = "universal"

The namespace supported by the identity connector.


CLASS_NAME​

readonly static CLASS_NAME: string

Runtime name for the class.

Methods​

className()​

className(): string

Returns the class name of the component.

Returns​

string

The class name of the component.

Implementation of​

IIdentityResolverConnector.className


health()​

health(): Promise<IHealth[]>

Returns the health status of the component.

Returns​

Promise<IHealth[]>

The health status of the component.

Implementation of​

IHealthProviderComponent.health


resolveDocument()​

resolveDocument(documentId): Promise<IDidDocument>

Resolve a document from its id.

Parameters​

documentId​

string

The id of the document to resolve.

Returns​

Promise<IDidDocument>

The resolved document.

Throws​

NotFoundError if the id can not be resolved.

Implementation of​

IIdentityResolverConnector.resolveDocument