public interface AuthManager
| Modifier and Type | Field and Description |
|---|---|
static AuthManager |
NO_AUTH
Implementation that does no authentication.
|
| Modifier and Type | Method and Description |
|---|---|
AuthenticationResult |
authenticate(String username,
String password)
Authenticate a username and password
|
boolean |
deleteUser(String username)
Delete the given user
|
User |
getUser(String username)
Retrieves the user with the provided user name.
|
AuthSubject |
login(String username,
String password)
Log in using the provided username and password
|
User |
newUser(String username,
String initialPassword,
boolean requirePasswordChange)
Create a new user with the provided credentials.
|
User |
setPassword(String username,
String password)
Set the password of the provided user.
|
static final AuthManager NO_AUTH
AuthenticationResult authenticate(String username, String password)
username - The name of the userpassword - The password of the userAuthSubject login(String username, String password)
username - The name of the userpassword - The password of the userUser newUser(String username, String initialPassword, boolean requirePasswordChange) throws IOException, IllegalCredentialsException
username - The name of the user.initialPassword - The initial password.requirePasswordChange - Does the user need to change the initial password.IOException - If user can't be serialized to disk.IllegalCredentialsException - If the username is invalid.boolean deleteUser(String username) throws IOException
username - the name of the user to delete.IOExceptionUser getUser(String username)
username - The name of the user to retrieve.User setPassword(String username, String password) throws IOException
username - The name of the user whose password should be set.password - The new password for the user.IOExceptionCopyright © 2002–2016 The Neo4j Graph Database Project. All rights reserved.