public interface BackingEngine
| Modifier and Type | Field and Description |
|---|---|
static String |
GROUP_PREFIX |
| Modifier and Type | Method and Description |
|---|---|
void |
addGroup(String username,
String group)
Add a user into a given group.
|
void |
addGroupRole(String group,
String role)
Add a role in a group.
|
void |
addRole(String username,
String role)
Add a role to the user.
|
void |
addUser(String username,
String password)
Create a new user.
|
void |
createGroup(String group)
Create a group
|
void |
deleteGroup(String username,
String group)
Remove a user from a group.
|
void |
deleteGroupRole(String group,
String role)
Remove a role from a group.
|
void |
deleteRole(String username,
String role)
Remove a role from a user.
|
void |
deleteUser(String username)
Delete an user.
|
Map<org.apache.karaf.jaas.boot.principal.GroupPrincipal,String> |
listGroups()
List all groups.
|
List<org.apache.karaf.jaas.boot.principal.GroupPrincipal> |
listGroups(org.apache.karaf.jaas.boot.principal.UserPrincipal user)
List groups that a user is member of.
|
List<org.apache.karaf.jaas.boot.principal.RolePrincipal> |
listRoles(Principal principal)
List Roles for
principal. |
List<org.apache.karaf.jaas.boot.principal.UserPrincipal> |
listUsers()
List all users.
|
org.apache.karaf.jaas.boot.principal.UserPrincipal |
lookupUser(String username)
Retrieve the
UserPrincipal corresponding to an username, or null if user doesn't exist. |
static final String GROUP_PREFIX
void addUser(String username, String password)
username - the user name.password - the user password.void deleteUser(String username)
username - the user name.List<org.apache.karaf.jaas.boot.principal.UserPrincipal> listUsers()
UserPrincipal.org.apache.karaf.jaas.boot.principal.UserPrincipal lookupUser(String username)
UserPrincipal corresponding to an username, or null if user doesn't exist.username - The username.UserPrincipal or null.List<org.apache.karaf.jaas.boot.principal.GroupPrincipal> listGroups(org.apache.karaf.jaas.boot.principal.UserPrincipal user)
user - the UserPrincipal.GroupPrincipal.Map<org.apache.karaf.jaas.boot.principal.GroupPrincipal,String> listGroups()
void addGroup(String username, String group)
username - the user name.group - the group.void createGroup(String group)
group - the group.void deleteGroup(String username, String group)
username - the user name.group - the group.List<org.apache.karaf.jaas.boot.principal.RolePrincipal> listRoles(Principal principal)
principal. This could either be a
UserPrincipal or a GroupPrincipal.principal - the principal.void addRole(String username, String role)
username - the user name.role - the role.void deleteRole(String username, String role)
username - the user name.role - the role.void addGroupRole(String group, String role)
group - the group.role - the role.Copyright © 2007–2019 The Apache Software Foundation. All rights reserved.