def _decode_validity(self, validity):
not_after = validity.getComponentByName('<STR_LIT>')<EOL>not_after = str(not_after.getComponent())<EOL>if isinstance(not_after, GeneralizedTime):<EOL><INDENT>self.not_after = datetime.strptime(not_after, "<STR_LIT>")<EOL><DEDENT>else:<EOL><INDENT>self.not_after = datetime.strptime(not_after, "<STR_LIT>")<EOL><DEDENT>self.alt_names = defaultdict(list)<EOL>
Load data from a ASN.1 validity value.