Utilities¶
JOSE utilities.
-
class
acme.jose.util.abstractclassmethod(target)[source]¶ Bases:
classmethodDescriptor for an abstract classmethod.
It augments the
abcframework with an abstract classmethod. This is implemented asabc.abstractclassmethodin 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:
objectWrapper for OpenSSL.crypto.X509** objects that supports __eq__.
Variables: wrapped – Wrapped certificate or certificate request.
-
class
acme.jose.util.ComparableKey(wrapped)[source]¶ Bases:
objectComparable wrapper for
cryptographykeys.
-
class
acme.jose.util.ComparableRSAKey(wrapped)[source]¶ Bases:
acme.jose.util.ComparableKeyWrapper for
cryptographyRSA keys.Wraps around: -
cryptography.hazmat.primitives.asymmetric.RSAPrivateKey-cryptography.hazmat.primitives.asymmetric.RSAPublicKey