Utilities¶
JOSE utilities.
- class acme.jose.util.abstractclassmethod(target)[source]¶
Bases: builtins.classmethod
Descriptor for an abstract classmethod.
It augments the abc framework with an abstract classmethod. This is implemented as abc.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: builtins.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: builtins.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