Interface ClaimsGenerator

All Known Implementing Classes:
JWTClaimsSetGenerator

public interface ClaimsGenerator
Since:
1.0
Author:
Sergio del Amo
  • Method Details

    • generateClaims

      Map<String,Object> generateClaims(Authentication authentication, Integer expiration)
      Parameters:
      authentication - Authenticated user's representation.
      expiration - JWT token expiration time in seconds
      Returns:
      The Claims
    • generateClaimsSet

      Map<String,Object> generateClaimsSet(Map<String,?> oldClaims, Integer expiration)
      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