Interface VirtualHostRealmConfig
- All Superinterfaces:
Config
Virtual Host Realm Configuration.
This is part of the configuration of a Virtual Host
. It defines the users of the realm.
- Since:
- 4.4
-
Method Summary
Modifier and TypeMethodDescriptionAdd a realm user.getName()
Gets the realm name.getPath()
Gets the realm path.Gets a named realm user.getUsers()
Gets the realm users.removeUser
(String name) Remove a realm user.
-
Method Details
-
getName
String getName()Gets the realm name.- Returns:
- realm name
-
getPath
String getPath()Gets the realm path.- Returns:
- path
-
getUsers
List<VirtualHostRealmUserConfig> getUsers()Gets the realm users.- Returns:
- list of realm users which can be empty if none defined.
-
getUser
Gets a named realm user.- Parameters:
name
- the user name- Returns:
- the realm user or null if not defined
-
addUser
Add a realm user.- Parameters:
name
- user namepassword
- the password- Returns:
- realm user
- Throws:
ConfigException
- if unable to add realm user
-
removeUser
Remove a realm user.- Parameters:
name
- realm user name- Returns:
- user removed or null if it did not exist
- Throws:
ConfigException
- if unable to remove
-