Modifier and Type | Method and Description |
---|---|
void |
addUser(String username,
String password,
boolean coupleLocalUsername)
Create a new user account; the account will be disabled and
non-administrative by default.
|
void |
deleteUser(String username)
Delete a server account.
|
User |
getUser(String userName)
Get a particular user's description.
|
List<String> |
getUserNames()
List the currently-known account names.
|
void |
setUserAdmin(String username,
boolean admin)
Set or clear the mark on an account that indicates that it has
administrative privileges.
|
void |
setUserEnabled(String username,
boolean enabled)
Set or clear whether this account is enabled.
|
void |
setUserLocalUser(String username,
String localUsername)
Change what local system account to use for a server account.
|
void |
setUserPassword(String username,
String password)
Change the password for an account.
|
List<String> getUserNames()
User getUser(String userName)
userName
- The username to look up.void addUser(String username, String password, boolean coupleLocalUsername)
username
- The username to create.password
- The password to use.coupleLocalUsername
- Whether to set the local user name to the 'main' one.void setUserEnabled(String username, boolean enabled)
username
- The username to adjust.enabled
- Whether to enable the account.void setUserAdmin(String username, boolean admin)
username
- The username to adjust.admin
- Whether the account has admin privileges.void setUserPassword(String username, String password)
username
- The username to adjust.password
- The new password to use.void setUserLocalUser(String username, String localUsername)
username
- The username to adjust.localUsername
- The new local user account use.void deleteUser(String username)
username
- The username to delete.Copyright © 2015–2018 The Apache Software Foundation. All rights reserved.