INNER CODE UNIT · Python
plain_keys
kurtbrose/pyjks · jks/bks.py:243
def plain_keys(self):
"""A subset of the :attr:`entries` dictionary, filtered down to only
those entries of type :class:`BksKeyEntry`."""
return dict([(a, e) for a, e in self.entries.items()
if isinstance(e, BksKeyEntry)])
@classmethod
def loads(cls, data, store_password, try_decrypt_keys=True):
"""
See :meth:`jks.jks.KeyStore.loads`.
:param bytes data: Byte string representation of the keystore to be loaded.
:param str password: Keystore password string
:param bool try_decrypt_keys: Whether to automatically try to decrypt any encountered key entries using the same password
as the keystore password.
:returns: A loaded :class:`BksKeyStore` instance, if the keystore could be successfully parsed and the supplied store password is correct.