public class AuthManager
extends org.neo4j.kernel.lifecycle.LifecycleAdapter
Through the AuthManager you can create, update and delete users, and authenticate using credentials.
| Constructor and Description |
|---|
AuthManager(UserRepository users,
AuthenticationStrategy authStrategy) |
AuthManager(UserRepository users,
AuthenticationStrategy authStrategy,
boolean authEnabled) |
AuthManager(UserRepository users,
org.neo4j.helpers.Clock clock,
boolean authEnabled) |
| Modifier and Type | Method and Description |
|---|---|
AuthenticationResult |
authenticate(String username,
String password) |
boolean |
deleteUser(String username) |
User |
getUser(String username) |
User |
newUser(String username,
String initialPassword,
boolean requirePasswordChange) |
User |
setPassword(String username,
String password) |
void |
start() |
public AuthManager(UserRepository users, AuthenticationStrategy authStrategy, boolean authEnabled)
public AuthManager(UserRepository users, AuthenticationStrategy authStrategy)
public AuthManager(UserRepository users, org.neo4j.helpers.Clock clock, boolean authEnabled)
public void start()
throws Throwable
start in interface org.neo4j.kernel.lifecycle.Lifecyclestart in class org.neo4j.kernel.lifecycle.LifecycleAdapterThrowablepublic AuthenticationResult authenticate(String username, String password)
public User newUser(String username, String initialPassword, boolean requirePasswordChange) throws IOException, IllegalUsernameException
IOExceptionIllegalUsernameExceptionpublic boolean deleteUser(String username) throws IOException
IOExceptionpublic User setPassword(String username, String password) throws IOException
IOExceptionCopyright © 2002–2017 The Neo4j Graph Database Project. All rights reserved.