JWT Framework
Search…
v3.0
Introduction
Introduction
Provided Features
Pre-requisite
Continous Integration
Contributing
The Components
Algorithm Management (JWA)
Key (JWK) and Key Set (JWKSet)
Header Checker
Claim Checker
Signed Tokens (JWS)
Encrypted Tokens (JWE)
The Symfony Bundle
Symfony Bundle
Algorithm Management
Key and Key Set Management
Header and Claim Checker Management
Signed Tokens
Encrypted Tokens
JWE serializers
JWE creation
JWE decryption
Configuration Helper
Events
Console Command
Console
Standalone Application
PHAR Application
Symfony Console
Advanced Topics
Security Recommendations
Nested Tokens
Serialization
Custom Algorithm
Signed tokens and
Encrypted tokens and
Benchmark
How To
Result table
Migration
From v1.x to v2.0
From v2.x to v3.0
Powered By
GitBook
Encrypted Tokens
To use the encrypted tokens (JWE), you have to install the
web-token/jwt-encryption
component
.
composer
require web-token/jwt-encryption
When this component is installed, encryption algorithms are automatically handles by the Algorithm Manager Factory.
JWE serializers
,
JWE creation
,
JWE decryption
.
You can use
symfony/serializer
to serialize/unserialize your tokens:
// $serializer corresponds to the Symfony serializer
$serializer
->
serialize
(
$data
,
'jwe_compact'
);
Previous
JWS verification
Next
JWE serializers
Last modified
5mo ago
Export as PDF
Copy link