a oe@sddlmZddlZddlZddlmZddlmZddl m Z Gdddej Z Gdd d ej Z Gd d d ej ZGd d d ejdZeejdS)) annotationsN)utils)x509) HashAlgorithmc@seZdZdZdZdS) LogEntryTyperN)__name__ __module__ __qualname__ZX509_CERTIFICATEZPRE_CERTIFICATEr 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: rrN)rr r __doc__Z ANONYMOUSZRSAZDSAZECDSAr r r r rs rc@seZdZeejddddZeejddddZeejddd d Zeejd dd d Z eejddddZ eejddddZ eejddddZ eejddddZ dS)SignedCertificateTimestampr )returncCsdS)z* Returns the SCT version. Nr selfr r r version(sz"SignedCertificateTimestamp.versionbytescCsdS)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 propertyabcabstractmethodrrrrrrrrr r r r r's0r) metaclass)Z __future__rr ZdatetimeZ cryptographyrZ"cryptography.hazmat.bindings._rustrZ rust_x509Z%cryptography.hazmat.primitives.hashesrEnumrr rABCMetarregisterZSctr r r r s    :