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

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

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

import io.jsonwebtoken.Claims;

import javax.inject.Singleton;

/**
 * Default implementation to create an empty {@link SecurityContext}.
 * To override this implementation, @{@link io.micronaut.context.annotation.Replaces} must be set on
 * the replacement implementation.
 * @author Lorent Lempereur - [email protected]
 */
@Singleton
public class DefaultSecurityContextFactory implements SecurityContextFactory {
    @Override
    public SecurityContext createSecurityContext(Claims tokenContent) {
        return new SecurityContext() {};
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy