class CCL::Security::JWSObject

JSON Web Signature (JWS) - https://tools.ietf.org/html/rfc7515.

#include <jsonwebsecurity.h>

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

    PROPERTY_OBJECT (Crypto::Material, payload, Payload);
    String toCompactSerialization () const;
    INLINE bool verify (const Crypto::Material& publicKey);
    INLINE bool sign (const Crypto::Material& privateKey);
};

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;