INNER CODE UNIT · Python

AbstractBksEntry

kurtbrose/pyjks · jks/bks.py:21

class AbstractBksEntry(AbstractKeystoreEntry):
    """Abstract superclass for BKS keystore entry types"""
    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.
    """

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…