load static method

JksKeyStore load(
  1. Uint8List bytes, {
  2. String storePassword = '',
})

Loads a JKS or JCEKS keystore from bytes.

With a non-empty storePassword the integrity digest is checked, as KeyStore.load does; with an empty one it is skipped.

Implementation

static JksKeyStore load(Uint8List bytes, {String storePassword = ''}) {
  try {
    return _load(bytes, storePassword);
  } on RangeError {
    throw BadKeystoreFormatException('Truncated JKS keystore');
  }
}