a ‚oeÕã@sšddlmZddlZddlZddlmZddlmZddl m Z Gdd„dej ƒZ Gdd „d ej ƒZ Gd d „d ej ƒZGd d „d ejd�Ze ej¡dS)é)Ú annotationsN)Úutils)Úx509)Ú HashAlgorithmc@seZdZdZdZdS)Ú LogEntryTyperéN)Ú__name__Ú __module__Ú __qualname__ZX509_CERTIFICATEZPRE_CERTIFICATE©r r úKC:\Program Files\Certbot\pkgs\cryptography\x509\certificate_transparency.pyrsrc@seZdZdZdS)ÚVersionrN)rr r Zv1r r r r r sr c@s eZdZdZdZdZdZdZdS)ÚSignatureAlgorithmzÐ Signature algorithms that are valid for SCTs. These are exactly the same as SignatureAlgorithm in RFC 5246 (TLS 1.2). See: rrééN)rr r Ú__doc__Z ANONYMOUSZRSAZDSAZECDSAr r r r rs rc@sÌeZdZeejddœdd„ƒƒZeejddœdd„ƒƒZeejddœd d „ƒƒZeejd dœd d „ƒƒZ eejddœdd„ƒƒZ eejddœdd„ƒƒZ eejddœdd„ƒƒZ eejddœdd„ƒƒZ dS)ÚSignedCertificateTimestampr )ÚreturncCsdS)z* Returns the SCT version. Nr ©Úselfr r r Úversion(sz"SignedCertificateTimestamp.versionÚbytescCsdS)zM Returns an identifier indicating which log this SCT is for. Nr rr r r Úlog_id/sz!SignedCertificateTimestamp.log_idzdatetime.datetimecCsdS)z5 Returns the timestamp for this SCT. Nr rr r r Ú timestamp6sz$SignedCertificateTimestamp.timestamprcCsdS)zV Returns whether this is an SCT for a certificate or pre-certificate. Nr rr r r Ú entry_type=sz%SignedCertificateTimestamp.entry_typercCsdS)zJ Returns the hash algorithm used for the SCT's signature. Nr rr r r Úsignature_hash_algorithmDsz3SignedCertificateTimestamp.signature_hash_algorithmrcCsdS)zM Returns the signing algorithm used for the SCT's signature. Nr rr r r Úsignature_algorithmKsz.SignedCertificateTimestamp.signature_algorithmcCsdS)z5 Returns the signature for this SCT. Nr rr r r Ú signatureRsz$SignedCertificateTimestamp.signaturecCsdS)zG Returns the raw bytes of any extensions for this SCT. Nr rr r r Úextension_bytesYsz*SignedCertificateTimestamp.extension_bytesN)rr r ÚpropertyÚabcÚabstractmethodrrrrrrrrr r r r r's0r)Ú metaclass)Z __future__rr ZdatetimeZ cryptographyrZ"cryptography.hazmat.bindings._rustrZ rust_x509Z%cryptography.hazmat.primitives.hashesrÚEnumrr rÚABCMetarÚregisterZSctr r r r Ús    :