Interface ClaimsGenerator
- All Known Implementing Classes:
JWTClaimsSetGenerator
public interface ClaimsGenerator
- Since:
- 1.0
- Author:
- Sergio del Amo
-
Method Summary
Modifier and TypeMethodDescriptiongenerateClaims
(Authentication authentication, Integer expiration) generateClaimsSet
(Map<String, ?> oldClaims, Integer expiration) Generate a claims set based on claims.
-
Method Details
-
generateClaims
- Parameters:
authentication
- Authenticated user's representation.expiration
- JWT token expiration time in seconds- Returns:
- The Claims
-
generateClaimsSet
Generate a claims set based on claims.- Parameters:
oldClaims
- The old claims to use as a base in the new token generation.expiration
- JWT token expiration time in seconds- Returns:
- The Claims
-