Utilities¶
JOSE utilities.
-
class
acme.jose.util.
abstractclassmethod
(target)[source]¶ Bases:
classmethod
Descriptor for an abstract classmethod.
It augments the
abc
framework with an abstract classmethod. This is implemented asabc.abstractclassmethod
in the standard Python library starting with version 3.2.This particular implementation, allegedly based on Python 3.3 source code, is stolen from http://stackoverflow.com/questions/11217878/python-2-7-combine-abc-abstractmethod-and-classmethod.
-
class
acme.jose.util.
ComparableX509
(wrapped)[source]¶ Bases:
object
Wrapper for OpenSSL.crypto.X509** objects that supports __eq__.
Variables: wrapped – Wrapped certificate or certificate request.
-
class
acme.jose.util.
ComparableKey
(wrapped)[source]¶ Bases:
object
Comparable wrapper for
cryptography
keys.
-
class
acme.jose.util.
ComparableRSAKey
(wrapped)[source]¶ Bases:
acme.jose.util.ComparableKey
Wrapper for
cryptography
RSA keys.Wraps around: -
cryptography.hazmat.primitives.asymmetric.RSAPrivateKey
-cryptography.hazmat.primitives.asymmetric.RSAPublicKey