All Downloads are FREE. Search and download functionalities are using the official Maven repository.

be.looorent.micronaut.security.TokenValidator Maven / Gradle / Ivy

There is a newer version: 2.0.0
Show newest version
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