INNER CODE UNIT · Python
_type
kurtbrose/pyjks · jks/bks.py:324
elif _type == 3: # secret key: opaque arbitrary data blob, stored as-is by the keystore; can be anything (assumed to already be protected when supplied).
entry, pos = cls._read_bks_secret(data, pos, store_type)
elif _type == 4: # sealed key; a well-formatted certificate, private key or public key, encrypted by the BKS implementation with a standard algorithm at save time
entry, pos = cls._read_bks_sealed(data, pos, store_type)
else:
raise BadKeystoreFormatException("Unexpected keystore entry type %d", tag)
entry.alias = alias
entry.timestamp = timestamp
entry.cert_chain = cert_chain
if try_decrypt_keys:
try:
entry.decrypt(store_password)
except DecryptionFailureException:
pass # ok, let user call .decrypt() manually afterwards
if alias in entries: