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

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

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