Utilities¶
JOSE utilities.
-
class
josepy.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 implementation is from a StackOverflow answer that was derived from the implementation in the Python 3.3 abc library. http://stackoverflow.com/questions/11217878/python-2-7-combine-abc-abstractmethod-and-classmethod.
-
class
josepy.util.ComparableX509(wrapped)[source]¶ Bases:
objectWrapper for OpenSSL.crypto.X509** objects that supports __eq__.
Variables: wrapped – Wrapped certificate or certificate request.
-
class
josepy.util.ComparableKey(wrapped)[source]¶ Bases:
objectComparable wrapper for
cryptographykeys.
-
class
josepy.util.ComparableRSAKey(wrapped)[source]¶ Bases:
josepy.util.ComparableKeyWrapper for
cryptographyRSA keys.Wraps around:
RSAPrivateKeyRSAPublicKey