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: CreateAuthTokenRequest) => Promise<Token>);
        createInvite: ((req: CreateInviteRequest) => Promise<CreateInviteResponse>);
        decryptV1: ((req: DecryptV1Request) => Promise<DecryptResponse>);
        decryptV2: ((req: DecryptV2Request) => Promise<DecryptResponse>);
        encryptV1: ((req: EncryptV1Request) => Promise<EncryptResponse>);
        encryptV2: ((req: EncryptV2Request) => Promise<EncryptResponse>);
        getPrivateKeyBundle: (() => Promise<PrivateKeyBundleV1>);
        getPrivatePreferencesTopicIdentifier: (() => Promise<GetPrivatePreferencesTopicIdentifierResponse>);
        getPublicKeyBundle: (() => Promise<PublicKeyBundle>);
        getRefreshJob: ((req: GetRefreshJobRequest) => Promise<GetRefreshJobResponse>);
        getV1Conversations: (() => Promise<GetConversationsResponse>);
        getV2ConversationHmacKeys: ((req: GetConversationHmacKeysRequest) => Promise<GetConversationHmacKeysResponse>);
        getV2Conversations: (() => Promise<GetConversationsResponse>);
        saveInvites: ((req: SaveInvitesRequest) => Promise<SaveInvitesResponse>);
        saveV1Conversations: ((req: SaveV1ConversationsRequest) => Promise<SaveV1ConversationsResponse>);
        selfDecrypt: ((req: SelfDecryptRequest) => Promise<DecryptResponse>);
        selfEncrypt: ((req: SelfEncryptRequest) => Promise<SelfEncryptResponse>);
        setRefreshJob: ((req: SetRefeshJobRequest) => Promise<SetRefreshJobResponse>);
        signDigest: ((req: SignDigestRequest) => Promise<Signature>);
    } & OtherKeyStoreMethods & PrivatePreferenceKeystoreMethods>>