INNER CODE UNIT · Python
ENTRY_TYPE_SECRET
kurtbrose/pyjks · jks/bks.py:15
ENTRY_TYPE_SECRET = 3 # for keys that were added to the store in already-protected form; can be arbitrary data
ENTRY_TYPE_SEALED = 4 # for keys that were protected by the BC keystore implementation upon adding
KEY_TYPE_PRIVATE = 0 #: Type indicator for private keys in :class:`BksKeyEntry`.
KEY_TYPE_PUBLIC = 1 #: Type indicator for public keys in :class:`BksKeyEntry`.
KEY_TYPE_SECRET = 2 #: Type indicator for secret keys in :class:`BksKeyEntry`. Indicates a key for use with a symmetric encryption algorithm.
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