public interface Authenticator
This service should be exposed by a user manager framework implementation.
Modifier and Type | Method and 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.
|
Principal authenticate(String name, String password) throws Exception
This method is doing the authentication of the given username / password pair and returns the corresponding principal object if authentication succeeded otherwise returns null.
name
- password
- Exception
- - if an exception occursboolean checkUsernamePassword(String name, String password) throws Exception
name
- the usernamepassword
- the password to checkException
- - if an exception occursCopyright © 2013 Nuxeo SA. All Rights Reserved.