public interface ClaimsGenerator
Modifier and Type | Method and Description |
---|---|
java.util.Map<java.lang.String,java.lang.Object> |
generateClaims(Authentication authentication,
java.lang.Integer expiration) |
java.util.Map<java.lang.String,java.lang.Object> |
generateClaimsSet(java.util.Map<java.lang.String,?> oldClaims,
java.lang.Integer expiration)
Generate a claims set based on claims.
|
java.util.Map<java.lang.String,java.lang.Object> generateClaims(Authentication authentication, java.lang.Integer expiration)
authentication
- Authenticated user's representation.expiration
- JWT token expiration time in secondsjava.util.Map<java.lang.String,java.lang.Object> generateClaimsSet(java.util.Map<java.lang.String,?> oldClaims, java.lang.Integer expiration)
oldClaims
- The old claims to use as a base in the new token generation.expiration
- JWT token expiration time in seconds