public interface ClaimsGenerator
Modifier and Type | Method and Description |
---|---|
Map<String,Object> |
generateClaims(UserDetails userDetails,
Integer expiration) |
Map<String,Object> |
generateClaimsSet(Map<String,?> oldClaims,
Integer expiration)
Generate a claims set based on claims.
|
Map<String,Object> generateClaims(UserDetails userDetails, Integer expiration)
userDetails
- Authenticated user's representation.expiration
- JWT token expiration time in seconds