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

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

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 - 2024 Weber Informatics LLC | Privacy Policy