Class StaticKeystoreProvider

StaticKeystoreProvider will look for a privateKeyOverride in the provided options, and bootstrap a Keystore using those options if provided.

If no privateKeyOverride is supplied will throw a KeystoreProviderUnavailableError causing the client to continue iterating through the KeystoreProviders list.

Implements

Constructors

Methods

Constructors

Methods

  • Parameters

    • opts: KeystoreProviderOptions

    Returns Promise<Flatten<{
        createAuthToken: ((req) => Promise<Token>);
        createInvite: ((req) => Promise<CreateInviteResponse>);
        decryptV1: ((req) => Promise<DecryptResponse>);
        decryptV2: ((req) => Promise<DecryptResponse>);
        encryptV1: ((req) => Promise<EncryptResponse>);
        encryptV2: ((req) => Promise<EncryptResponse>);
        getPrivateKeyBundle: (() => Promise<PrivateKeyBundleV1>);
        getPrivatePreferencesTopicIdentifier: (() => Promise<GetPrivatePreferencesTopicIdentifierResponse>);
        getPublicKeyBundle: (() => Promise<PublicKeyBundle>);
        getRefreshJob: ((req) => Promise<GetRefreshJobResponse>);
        getV1Conversations: (() => Promise<GetConversationsResponse>);
        getV2ConversationHmacKeys: ((req) => Promise<GetConversationHmacKeysResponse>);
        getV2Conversations: (() => Promise<GetConversationsResponse>);
        saveInvites: ((req) => Promise<SaveInvitesResponse>);
        saveV1Conversations: ((req) => Promise<SaveV1ConversationsResponse>);
        selfDecrypt: ((req) => Promise<DecryptResponse>);
        selfEncrypt: ((req) => Promise<SelfEncryptResponse>);
        setRefreshJob: ((req) => Promise<SetRefreshJobResponse>);
        signDigest: ((req) => Promise<Signature>);
    } & OtherKeyStoreMethods>>