
be.looorent.micronaut.security.SecurityContextFactory 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
The newest version!
package be.looorent.micronaut.security;
import io.jsonwebtoken.Claims;
/**
* Contract that can be implemented by the adapter's user to build their {@link SecurityContext}.
* @author Lorent Lempereur - [email protected]
*/
public interface SecurityContextFactory {
/**
* Starting from a JWT's body, builds a context of security.
* @param tokenContent a JWT's body; must not be null
* @return the built security context
*/
SecurityContext createSecurityContext(Claims tokenContent);
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy