INNER CODE UNIT · Python
__init__
kurtbrose/pyjks · jks/bks.py:23
def __init__(self, **kwargs):
super(AbstractBksEntry, self).__init__(**kwargs)
# All BKS entries can carry an arbitrary number of associated certificates
self.cert_chain = kwargs.get("cert_chain", [])
self._encrypted = kwargs.get("encrypted")
class BksTrustedCertEntry(TrustedCertEntry):
"""Represents a trusted certificate entry in a BKS or UBER keystore."""
pass # identical
class BksKeyEntry(AbstractBksEntry):
"""
Represents a non-encrypted cryptographic key (public, private or secret) stored in a BKS keystore.
May exceptionally appear as a top-level entry type in (very) old keystores, but you are most likely
to encounter these as the nested object inside a :class:`BksSealedKeyEntry` once decrypted.
"""
def __init__(self, type, format, algorithm, encoded, **kwargs):
super(BksKeyEntry, self).__init__(**kwargs)