Utilities
Internal class delegating to a module, and displaying warnings when attributes related to the deprecated “abstractclassmethod” attributes in the josepy.util module.
- class josepy.util.ComparableX509(wrapped: X509 | X509Req)[source]
Wrapper for OpenSSL.crypto.X509** objects that supports __eq__.
- Variables:
wrapped – Wrapped certificate or certificate request.
- class josepy.util.ComparableKey(wrapped: RSAPrivateKey | RSAPublicKey | EllipticCurvePrivateKey | EllipticCurvePublicKey)[source]
Comparable wrapper for
cryptography
keys.See https://github.com/pyca/cryptography/issues/2122.
- public_key() ComparableKey [source]
Get wrapped public key.
- class josepy.util.ComparableRSAKey(wrapped: RSAPrivateKey | RSAPublicKey | EllipticCurvePrivateKey | EllipticCurvePublicKey)[source]
Wrapper for
cryptography
RSA keys.Wraps around:
- class josepy.util.ComparableECKey(wrapped: RSAPrivateKey | RSAPublicKey | EllipticCurvePrivateKey | EllipticCurvePublicKey)[source]
Wrapper for
cryptography
EC keys. Wraps around: -EllipticCurvePrivateKey
-EllipticCurvePublicKey