menu

CryptoStoreBinding

import { CryptoStoreBinding } from "destack:crypto/binding";

Store binding family.

language/library/src/crypto/binding/store.ds:158:213
1export interface CryptoStoreBinding {2    readCryptoProviderCapability(): Result<CryptoProviderCapability, HostError>;3    openCryptoStore(options: &'a readonly CryptoStoreOptions): Result<CryptoStoreHandle, HostError>;4    closeCryptoStore(store: CryptoStoreHandle): Result<void, HostError>;5    listCryptoKeys(store: CryptoStoreHandle, query: &'a readonly CryptoKeyQuery): Result<CryptoKeyListPage, HostError>;6    listCryptoCertificates(store: CryptoStoreHandle, query: &'a readonly CryptoCertificateQuery): Result<CryptoCertificateListPage, HostError>;7}

Members

readCryptoProviderCapability(): Result<CryptoProviderCapability, HostError>

Read crypto provider capabilities.

openCryptoStore(options: &'a readonly CryptoStoreOptions): Result<CryptoStoreHandle, HostError>

Open one crypto store.

closeCryptoStore(store: CryptoStoreHandle): Result<void, HostError>

Close one crypto store.

listCryptoKeys(store: CryptoStoreHandle, query: &'a readonly CryptoKeyQuery): Result<CryptoKeyListPage, HostError>

List keys from one store.

listCryptoCertificates(store: CryptoStoreHandle, query: &'a readonly CryptoCertificateQuery): Result<CryptoCertificateListPage, HostError>

List certificates from one store.