A JWT carries claims as a JSON object, either as the payload of a signed JWS or as the content of an encrypted JWE. It has three parts, a header, the claims and a signature, each encoded and joined by dots. The standard defines optional registered claims: issuer, subject, audience, expiry, not-before, issued-at and a unique identifier. Signing algorithms include HMAC with a shared secret, RSA and ECDSA. OAuth 2.0 describes access tokens, which grant access to protected resources, and refresh tokens, which are used only with the authorisation server. Bearer tokens are sent in the Authorization header.