public interface JWTGenerator
Modifier and Type | Interface and Description |
---|---|
static interface |
JWTGenerator.Builder |
Modifier and Type | Method and Description |
---|---|
String |
generate(Claims claims)
Generates a signed and optionally encrypted JWT.
|
String generate(Claims claims) throws JWTSignatureException, JWTEncryptionException
claims
- claims for the nested payload (JWS in JWE) or payload
(JWS only)JWE
operator is available to the generator, a JWE is returned, otherwise a
JWS is returnedJWTSignatureException
- if an error occurs in signing the payloadJWTEncryptionException
- if an error occurs in encrypting the signed
payloadCopyright © 2019. All rights reserved.