public interface TokenGenerator
Modifier and Type | Method and Description |
---|---|
Optional<String> |
generateToken(Map<String,Object> claims) |
Optional<String> |
generateToken(UserDetails userDetails,
Integer expiration) |
Optional<String> generateToken(UserDetails userDetails, @Nullable Integer expiration)
userDetails
- Authenticated user's representation.expiration
- The amount of time in milliseconds until the token expires