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

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

There is a newer version: 2.0.0
Show newest version
package be.looorent.micronaut.security;

/**
 * Parses and validates a JWT.
 * @author Lorent Lempereur - [email protected]
 */
interface TokenParser {

    /**
     * @param token a textual JWT
     * @return a structured version of the token body that contains the relevant information for you app.
     * @throws SecurityException if an error occurs during the parsing
     */
    SecurityContext parse(String token) throws SecurityException;
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy