aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPaul Kehrer <paul.l.kehrer@gmail.com>2015-02-12 14:05:44 -0600
committerPaul Kehrer <paul.l.kehrer@gmail.com>2015-02-12 14:05:44 -0600
commit13b6aff79d8d776968e7613b962b36ac895750cd (patch)
tree8f751453962206bb53b24f59e519e1b1fa729f59
parentb41c80b0cfa4fd9a14016c81557776cc01feedba (diff)
downloadcryptography-13b6aff79d8d776968e7613b962b36ac895750cd.tar.gz
cryptography-13b6aff79d8d776968e7613b962b36ac895750cd.tar.bz2
cryptography-13b6aff79d8d776968e7613b962b36ac895750cd.zip
remove unused X509 certificate interface
We merged this interface and then changed our approach and use the cryptography.x509.Certificate interface instead. This one was never directly used.
-rw-r--r--docs/hazmat/backends/interfaces.rst6
-rw-r--r--src/cryptography/hazmat/primitives/interfaces/__init__.py39
2 files changed, 2 insertions, 43 deletions
diff --git a/docs/hazmat/backends/interfaces.rst b/docs/hazmat/backends/interfaces.rst
index a2dd0c1c..e3dc96c0 100644
--- a/docs/hazmat/backends/interfaces.rst
+++ b/docs/hazmat/backends/interfaces.rst
@@ -502,12 +502,10 @@ A specific ``backend`` may provide one or more of these interfaces.
:param bytes data: PEM formatted certificate data.
- :returns: An instance of
- :class:`~cryptography.hazmat.primitives.interfaces.X509Certificate`.
+ :returns: An instance of :class:`~cryptography.x509.Certificate`.
.. method:: load_der_x509_certificate(data)
:param bytes data: DER formatted certificate data.
- :returns: An instance of
- :class:`~cryptography.hazmat.primitives.interfaces.X509Certificate`.
+ :returns: An instance of :class:`~cryptography.x509.Certificate`.
diff --git a/src/cryptography/hazmat/primitives/interfaces/__init__.py b/src/cryptography/hazmat/primitives/interfaces/__init__.py
index 69593b4c..a2154df5 100644
--- a/src/cryptography/hazmat/primitives/interfaces/__init__.py
+++ b/src/cryptography/hazmat/primitives/interfaces/__init__.py
@@ -377,42 +377,3 @@ class MACContext(object):
# DeprecatedIn07
CMACContext = MACContext
-
-
-@six.add_metaclass(abc.ABCMeta)
-class X509Certificate(object):
- @abc.abstractmethod
- def fingerprint(self, algorithm):
- """
- Returns bytes using digest passed.
- """
-
- @abc.abstractproperty
- def serial(self):
- """
- Returns certificate serial number
- """
-
- @abc.abstractproperty
- def version(self):
- """
- Returns the certificate version
- """
-
- @abc.abstractmethod
- def public_key(self):
- """
- Returns the public key
- """
-
- @abc.abstractproperty
- def not_valid_before(self):
- """
- Not before time (represented as UTC datetime)
- """
-
- @abc.abstractproperty
- def not_valid_after(self):
- """
- Not after time (represented as UTC datetime)
- """