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

Method parse_file

python3_cron_scripts/libs3/X509Parser.py:962–973  ·  view source on GitHub ↗

Parse the filename that is provided from the given certificate source Returns None if there is an error.

(self, file_name, certSource)

Source from the content-addressed store, hash-verified

960 return cert_object
961
962 def parse_file(self, file_name, certSource):
963 """
964 Parse the filename that is provided from the given certificate source
965 Returns None if there is an error.
966 """
967 data = self.__open_file(file_name)
968 if data == None:
969 self._logger.error("ERROR Could not parse: " + file_name)
970 return None
971
972 cert_object = self.__parse(data, certSource)
973 return cert_object
974
975 def parse_data(self, cert_data, certSource, addHeaders=False):
976 """

Callers

nothing calls this directly

Calls 2

__open_fileMethod · 0.95
__parseMethod · 0.95

Tested by

no test coverage detected