class CCL::Security::JWEObject

JSON Web Encryption (JWE) - https://tools.ietf.org/html/rfc7516.

#include <jsonwebsecurity.h>

class JWEObject: public CCL::Security::JWProtectedObject
{
public:
    // methods

    PROPERTY_OBJECT (Crypto::Material, encryptedKey, EncryptedKey);
    bool isKnownEncryption () const;
    JWEObject& fromCompactSerialization (StringRef compactSerialization);
    String toCompactSerialization () const;
    bool decrypt (Crypto::Material& plainText, const Crypto::Material& key);
    bool encrypt (const Crypto::Material& plainText, const Crypto::Material& key);
};

Inherited Members

public:
    // methods

    PROPERTY_OBJECT (CCL::Attributes, protectedHeader, ProtectedHeader);
    JOSE::Algorithm getAlgorithm () const;
    void setAlgorithm (JOSE::Algorithm algorithm);
    bool isKnownAlgorithm () const;
    bool isDirect () const;
    MutableCString getKeyID () const;
    void setKeyID (StringID keyId);
    MutableCString getType () const;
    void setType (StringID type);
    bool isJWT () const;