Class UserAuthenticator<A extends PrincipalCredentials,B extends Identity,C extends User<B>>

java.lang.Object
io.inverno.mod.security.authentication.AbstractPrincipalAuthenticator<A,C,UserAuthentication<B>>
io.inverno.mod.security.authentication.user.UserAuthenticator<A,B,C>
Type Parameters:
A - the type of principal credentials to authenticate
B - the identity type
C - the user type
All Implemented Interfaces:
Authenticator<A,UserAuthentication<B>>

public class UserAuthenticator<A extends PrincipalCredentials,B extends Identity,C extends User<B>> extends AbstractPrincipalAuthenticator<A,C,UserAuthentication<B>>

An authenticator used to authenticate users with PrincipalCredentials.

The resulting UserAuthentication extends the PrincipalAuthentication to expose details about the authenticated user, such as its identity and the groups it belongs to. A RoleBasedAccessController can then be obtained to secure access to protected services of resources.

This implementation typically uses a UserRepository to resolve users to authenticate but it also allows to use any compliant CredentialsResolver implementation.

Since:
1.5
Author:
Jeremy Kuhn