Package be.looorent.micronaut.security
Interface TokenValidator
-
- All Known Implementing Classes:
DefaultTokenValidator
public interface TokenValidatorValidates the content of a token.
-
-
Method Summary
Modifier and Type Method Description voidvalidate(io.jsonwebtoken.Claims tokenContent)Validates each attribute that is relevant to check in a JWT.
-
-
-
Method Detail
-
validate
void validate(io.jsonwebtoken.Claims tokenContent) throws SecurityExceptionValidates each attribute that is relevant to check in a JWT.- Parameters:
tokenContent- a token's body- Throws:
SecurityException- if a validation error occurs
-
-