class CCL::Security::JWTObject

JSON Web Token (JWT) - https://tools.ietf.org/html/rfc7519.

#include <jsonwebsecurity.h>

class JWTObject
{
public:
    // methods

    PROPERTY_OBJECT (CCL::Attributes, claims, Claims);
    JWTObject& fromSignature (const JWSObject& jws);
    void toSignature (JWSObject& jws) const;
    JWTObject& fromAttributes (const CCL::Attributes& other);
    String getSubject () const;
    void setSubject (StringRef subject);
    String getAudience () const;
    void setAudience (StringRef audience);
    bool getIssuedAt (int64& time) const;
    void setIssuedAt (int64 time);
    bool getNotBefore (int64& time) const;
    void setNotBefore (int64 time);
    bool getExpirationTime (int64& time) const;
    void setExpirationTime (int64 time);
};