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

Method __get_dn_values

python3_cron_scripts/libs3/X509Parser.py:505–521  ·  view source on GitHub ↗

This function enumerates the Name OIDs for the subject and the issuer. The results are added to the cert_object

(self, cert_object, names, source)

Source from the content-addressed store, hash-verified

503 cert_object[name].append(value)
504
505 def __get_dn_values(self, cert_object, names, source):
506 """
507 This function enumerates the Name OIDs for the subject and the issuer.
508 The results are added to the cert_object
509 """
510 oid_names = []
511 for p in dir(NameOID):
512 if not p.startswith("__"):
513 oid_names.append(p)
514
515 for entry in names:
516 for oid in oid_names:
517 if entry.oid == getattr(NameOID, oid):
518 self.__add_co_array_value(
519 cert_object, source + "_" + oid.lower(), entry.value
520 )
521 continue
522
523 def __get_signature_algorithm(self, cert_object, sig_oid):
524 """

Callers 1

Calls 1

__add_co_array_valueMethod · 0.95

Tested by

no test coverage detected