From 6c4302e64c8ee866bfde6cd0acd5a86a9b1834de Mon Sep 17 00:00:00 2001 From: Paul Kehrer Date: Mon, 24 Nov 2014 09:20:38 -1000 Subject: add backend interface for loading x509 certificates --- docs/hazmat/backends/interfaces.rst | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'docs/hazmat/backends') diff --git a/docs/hazmat/backends/interfaces.rst b/docs/hazmat/backends/interfaces.rst index ce2f0918..47553a9d 100644 --- a/docs/hazmat/backends/interfaces.rst +++ b/docs/hazmat/backends/interfaces.rst @@ -512,3 +512,17 @@ A specific ``backend`` may provide one or more of these interfaces. :raises cryptography.exceptions.UnsupportedAlgorithm: If the data is encrypted with an unsupported algorithm. + +.. class:: X509Backend + + .. versionadded:: 0.7 + + A backend with methods for working with X.509 objects. + + .. method:: load_pem_x509_certificate(data) + + :param bytes data: PEM formatted certificate data. + + :returns: An instance of a + :class:`~cryptography.hazmat.primitives.interfaces.X509Certificate` + provider. -- cgit v1.2.3 From 333ae9be186d5a3fc39c6b175774fd4d4413ed2c Mon Sep 17 00:00:00 2001 From: Paul Kehrer Date: Mon, 24 Nov 2014 12:23:22 -1000 Subject: update docs with review feedback --- docs/hazmat/backends/interfaces.rst | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'docs/hazmat/backends') diff --git a/docs/hazmat/backends/interfaces.rst b/docs/hazmat/backends/interfaces.rst index 47553a9d..3cce1576 100644 --- a/docs/hazmat/backends/interfaces.rst +++ b/docs/hazmat/backends/interfaces.rst @@ -523,6 +523,5 @@ A specific ``backend`` may provide one or more of these interfaces. :param bytes data: PEM formatted certificate data. - :returns: An instance of a - :class:`~cryptography.hazmat.primitives.interfaces.X509Certificate` - provider. + :returns: An instance of + :class:`~cryptography.hazmat.primitives.interfaces.X509Certificate`. -- cgit v1.2.3 From 8473df6d553a2e0bf790b613c2818beb4bd2f416 Mon Sep 17 00:00:00 2001 From: Paul Kehrer Date: Mon, 24 Nov 2014 17:13:59 -1000 Subject: add load_der_x509_certificate X509Backend method --- docs/hazmat/backends/interfaces.rst | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'docs/hazmat/backends') diff --git a/docs/hazmat/backends/interfaces.rst b/docs/hazmat/backends/interfaces.rst index 3cce1576..e4c43d9e 100644 --- a/docs/hazmat/backends/interfaces.rst +++ b/docs/hazmat/backends/interfaces.rst @@ -525,3 +525,10 @@ A specific ``backend`` may provide one or more of these interfaces. :returns: An instance of :class:`~cryptography.hazmat.primitives.interfaces.X509Certificate`. + + .. method:: load_der_x509_certificate(data) + + :param bytes data: DER formatted certificate data. + + :returns: An instance of + :class:`~cryptography.hazmat.primitives.interfaces.X509Certificate`. -- cgit v1.2.3