be.looorent.micronaut.security.TokenParser 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;
/**
* 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