public class BasicAuthSubject extends Object implements AuthSubject
| Constructor and Description |
|---|
BasicAuthSubject(BasicAuthManager authManager,
User user,
AuthenticationResult authenticationResult) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
allowsReads() |
boolean |
allowsSchemaWrites() |
boolean |
allowsWrites() |
boolean |
doesUsernameMatch(String username) |
AuthenticationResult |
getAuthenticationResult() |
void |
logout() |
String |
name() |
void |
setPassword(String password)
Sets a new password for the BasicAuthSubject.
|
public BasicAuthSubject(BasicAuthManager authManager, User user, AuthenticationResult authenticationResult)
public void logout()
logout in interface AuthSubjectpublic AuthenticationResult getAuthenticationResult()
getAuthenticationResult in interface AuthSubjectpublic void setPassword(String password) throws IOException, IllegalCredentialsException
setPassword in interface AuthSubjectpassword - The new passwordIOException - If the new user credentials cannot be stored on disk.IllegalCredentialsException - If password is invalid, e.g. if the new password is the same as the current.public boolean doesUsernameMatch(String username)
public boolean allowsReads()
allowsReads in interface org.neo4j.kernel.api.security.AccessModepublic boolean allowsWrites()
allowsWrites in interface org.neo4j.kernel.api.security.AccessModepublic boolean allowsSchemaWrites()
allowsSchemaWrites in interface org.neo4j.kernel.api.security.AccessModepublic String name()
name in interface org.neo4j.kernel.api.security.AccessModeCopyright © 2002–2016 The Neo4j Graph Database Project. All rights reserved.