be.looorent.micronaut.security.TokenValidator Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of keycloak-micronaut-adapter Show documentation
Show all versions of keycloak-micronaut-adapter Show documentation
Create API middleware to check Authorization headers against Keycloak
package be.looorent.micronaut.security;
import io.jsonwebtoken.Claims;
/**
* Validates the content of a token.
* @author Lorent Lempereur - [email protected]
*/
public interface TokenValidator {
/**
* Validates each attribute that is relevant to check in a JWT.
* @param tokenContent a token's body
* @throws SecurityException if a validation error occurs
*/
void validate(Claims tokenContent) throws SecurityException;
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy