INNER CODE UNIT · Python
__init__
kurtbrose/pyjks · jks/bks.py:216
def __init__(self, store_type, entries, version=2):
super(BksKeyStore, self).__init__(store_type, entries)
self.version = version
"""Version of the keystore format, if loaded."""
@property
def certs(self):
"""A subset of the :attr:`entries` dictionary, filtered down to only
those entries of type :class:`BksTrustedCertEntry`."""
return dict([(a, e) for a, e in self.entries.items()
if isinstance(e, BksTrustedCertEntry)])
@property
def secret_keys(self):
"""A subset of the :attr:`entries` dictionary, filtered down to only
those entries of type :class:`BksSecretKeyEntry`."""
return dict([(a, e) for a, e in self.entries.items()
if isinstance(e, BksSecretKeyEntry)])