MCPcopy Create free account
hub / github.com/adobe/Marinus / __get_basic_constraints

Method __get_basic_constraints

python3_cron_scripts/libs3/X509Parser.py:604–615  ·  view source on GitHub ↗

Obtain the basic_constraints from the Python cryptography extensions object.

(self, cert_object, extensions)

Source from the content-addressed store, hash-verified

602 self._logger.debug("No extended key usage")
603
604 def __get_basic_constraints(self, cert_object, extensions):
605 """
606 Obtain the basic_constraints from the Python cryptography extensions object.
607 """
608 try:
609 constraints = extensions.get_extension_for_oid(
610 ExtensionOID.BASIC_CONSTRAINTS
611 )
612 cert_object["basic_constraint_ca"] = constraints.value.ca
613 cert_object["basic_constraint_path_length"] = constraints.value.path_length
614 except ExtensionNotFound:
615 self._logger.debug("No basic constraints")
616
617 def __SCT_get_signature_nid(self, version, hash_alg, sig_alg):
618 """

Callers 1

__get_extensionsMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected