From 13b6aff79d8d776968e7613b962b36ac895750cd Mon Sep 17 00:00:00 2001 From: Paul Kehrer Date: Thu, 12 Feb 2015 14:05:44 -0600 Subject: 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. --- .../hazmat/primitives/interfaces/__init__.py | 39 ---------------------- 1 file changed, 39 deletions(-) (limited to 'src') 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) - """ -- cgit v1.2.3