aboutsummaryrefslogtreecommitdiffstats
path: root/docs/hazmat/backends/interfaces.rst
diff options
context:
space:
mode:
authorAlex Gaynor <alex.gaynor@gmail.com>2014-11-26 21:04:22 -0600
committerAlex Gaynor <alex.gaynor@gmail.com>2014-11-26 21:04:22 -0600
commit77f457e734a6882b27a93483b8f0494aabe860b9 (patch)
treed7f3c39640bc3fd4d214f8e7d78f6aa8128a889b /docs/hazmat/backends/interfaces.rst
parentfcea445e88b4435b9c093f01b4a6f90497974398 (diff)
parent244637cedae3eef1997fd2eb85c74eb3d92d52ce (diff)
downloadcryptography-77f457e734a6882b27a93483b8f0494aabe860b9.tar.gz
cryptography-77f457e734a6882b27a93483b8f0494aabe860b9.tar.bz2
cryptography-77f457e734a6882b27a93483b8f0494aabe860b9.zip
Merge pull request #1442 from reaperhulk/x509-interface
X509 interfaces
Diffstat (limited to 'docs/hazmat/backends/interfaces.rst')
-rw-r--r--docs/hazmat/backends/interfaces.rst20
1 files changed, 20 insertions, 0 deletions
diff --git a/docs/hazmat/backends/interfaces.rst b/docs/hazmat/backends/interfaces.rst
index ce2f0918..e4c43d9e 100644
--- a/docs/hazmat/backends/interfaces.rst
+++ b/docs/hazmat/backends/interfaces.rst
@@ -512,3 +512,23 @@ 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
+ :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`.