Package org.nuxeo.runtime.api.login
Interface Authenticator
-
- All Known Subinterfaces:
UserManager
- All Known Implementing Classes:
FakeUserManagerImpl
,MultiTenantUserManager
,UserManagerImpl
,UserManagerWithComputedGroups
public interface Authenticator
Authenticate the given username against the given password.This service should be exposed by a user manager framework implementation.
- Author:
- Bogdan Stefanescu
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Principal
authenticate(String name, String password)
Get a principal object for the given username if the username / password pair is valid, otherwise returns null.boolean
checkUsernamePassword(String name, String password)
Check the password for the given username.
-
-
-
Method Detail
-
authenticate
Principal authenticate(String name, String password)
Get a principal object for the given username if the username / password pair is valid, otherwise returns null.This method is doing the authentication of the given username / password pair and returns the corresponding principal object if authentication succeeded otherwise returns null.
- Returns:
- the authenticated principal if authentication succeded otherwise null
-
-