public interface JWTService
| Modifier and Type | Interface and Description | 
|---|---|
static interface  | 
JWTService.JWTBuilder
A builder for a JSON Web Token (JWT). 
 | 
| Modifier and Type | Method and Description | 
|---|---|
JWTService.JWTBuilder | 
newBuilder()
Creates a new builder for a JSON Web Token. 
 | 
Map<String,Object> | 
verifyToken(String token)
Verifies the token and returns its claims, or  
null if the token is invalid (corrupted, constructed from
 an invalid secret, or expired). | 
JWTService.JWTBuilder newBuilder()
Map<String,Object> verifyToken(String token)
null if the token is invalid (corrupted, constructed from
 an invalid secret, or expired).
 
 The claim JWTClaims.CLAIM_SUBJECT contains the token's creator user id.
 
The token hash algorithm is based on a secret provided by the service configuration.
token - the tokennull if the token is invalidCopyright © 2019 Nuxeo. All rights reserved.