WebCrypto GOST Class: KeyStore

GostKeys. KeyStore

Constructor

new KeyStore(entries)

This class represents a storage facility for cryptographic keys and certificates.
Parameters:
Name Type Description
entries Object Object contains aliased KeyEntry objects
Source:

Methods

aliases() → {Array.<string>}

Lists all the alias names of this keystore.
Source:
Returns:
Type
Array.<string>

containsAlias(alias) → {boolean}

Checks if the given alias exists in this keystore.
Parameters:
Name Type Description
alias string The alias name
Source:
Returns:
True if the alias exists, false otherwise
Type
boolean

deleteEntry(alias)

Deletes the entry identified by the given alias from this keystore.
Parameters:
Name Type Description
alias string The alias name
Source:

getEntry(alias) → {GostKeys.KeyEntry}

Gets a keystore Entry for the specified alias
Parameters:
Name Type Description
alias string The alias name
Source:
Returns:
The entry
Type
GostKeys.KeyEntry

load(store, password) → {Promise}

Loads this KeyStore from the given input stream.

A password may be given to unlock the keystore (e.g. the keystore resides on a hardware token device), or to check the integrity of the keystore data. If a password is not given for integrity checking, then integrity checking is not performed.
Parameters:
Name Type Description
store FormatedData | GostKeys.PKSC12 The input stream from which the keystore is loaded
password string The password used to check the integrity of the keystore, the password used to unlock the keystore
Source:
Returns:
Promise to return self object after store loaded
Type
Promise

setEntry(alias, entry)

Saves a keystore Entry under the specified alias.
Parameters:
Name Type Description
alias string The alias name
entry GostKeys.KeyEntry The entry
Source:

store(password, digestAlgortihm, encryptionAlgortihm) → {Promise}

Stores this keystore to the given output stream, and protects its integrity with the given password.
Parameters:
Name Type Description
password string The password to generate the keystore integrity check
digestAlgortihm string The digest algorithm or provider name for integrity check
encryptionAlgortihm string The encryption algorithm or provider name for encrypt certificates
Source:
Returns:
Promise to return GostKeyst.PKCS12
Type
Promise