aboutsummaryrefslogtreecommitdiffstats
path: root/docs
diff options
context:
space:
mode:
authorPaul Kehrer <paul.l.kehrer@gmail.com>2015-12-25 22:35:19 -0600
committerPaul Kehrer <paul.l.kehrer@gmail.com>2015-12-26 11:19:02 -0600
commit23c0bbc2dc007aa507b22f407c3a0048be98a1a4 (patch)
tree42370a4977fa7365d2e3d1aa9a9ffeaf71afbc9c /docs
parentd67d77f666417bff7ea52e2754f7a680c7a83b0c (diff)
downloadcryptography-23c0bbc2dc007aa507b22f407c3a0048be98a1a4.tar.gz
cryptography-23c0bbc2dc007aa507b22f407c3a0048be98a1a4.tar.bz2
cryptography-23c0bbc2dc007aa507b22f407c3a0048be98a1a4.zip
add invaliditydate class for crl entry extensions
Diffstat (limited to 'docs')
-rw-r--r--docs/x509/reference.rst27
1 files changed, 26 insertions, 1 deletions
diff --git a/docs/x509/reference.rst b/docs/x509/reference.rst
index 51de0747..72fd44be 100644
--- a/docs/x509/reference.rst
+++ b/docs/x509/reference.rst
@@ -907,7 +907,7 @@ X.509 Revoked Certificate Object
>>> for ext in revoked_certificate.extensions:
... print(ext)
- <Extension(oid=<ObjectIdentifier(oid=2.5.29.24, name=invalidityDate)>, critical=False, value=2015-01-01 00:00:00)>
+ <Extension(oid=<ObjectIdentifier(oid=2.5.29.24, name=invalidityDate)>, critical=False, value=<InvalidityDate(invalidity_date=2015-01-01 00:00:00)>)>
<Extension(oid=<ObjectIdentifier(oid=2.5.29.21, name=cRLReason)>, critical=False, value=<CRLReason(reason=ReasonFlags.key_compromise)>)>
X.509 Revoked Certificate Builder
@@ -2011,6 +2011,31 @@ These extensions are only valid within a :class:`RevokedCertificate` object.
:type: An element from :class:`~cryptography.x509.ReasonFlags`
+.. class:: InvalidityDate(invalidity_date)
+
+ .. versionadded:: 1.2
+
+ Invalidity date is an extension that is only valid inside
+ :class:`~cryptography.x509.RevokedCertificate` objects. It provides
+ the date on which it is known or suspected that the private key was
+ compromised or that the certificate otherwise became invalid.
+ This date may be earlier than the revocation date in the CRL entry,
+ which is the date at which the CA processed the revocation.
+
+ :param invalidity_date: The :class:`datetime.datetime` when it is known
+ or suspected that the private key was compromised.
+
+ .. attribute:: oid
+
+ :type: :class:`ObjectIdentifier`
+
+ Returns
+ :attr:`~cryptography.x509.oid.CRLEntryExtensionOID.INVALIDITY_DATE`.
+
+ .. attribute:: invalidity_date
+
+ :type: :class:`datetime.datetime`
+
Object Identifiers
~~~~~~~~~~~~~~~~~~