Utilities¶
JOSE utilities.
-
class
josepy.util.
abstractclassmethod
(target)[source]¶ 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 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]¶ Wrapper for OpenSSL.crypto.X509** objects that supports __eq__.
- Variables
wrapped – Wrapped certificate or certificate request.
-
class
josepy.util.
ComparableRSAKey
(wrapped)[source]¶ Wrapper for
cryptography
RSA keys.Wraps around:
RSAPrivateKey
RSAPublicKey
-
class
josepy.util.
ComparableECKey
(wrapped)[source]¶ Wrapper for
cryptography
RSA keys. Wraps around: -EllipticCurvePrivateKey
-EllipticCurvePublicKey