public class PropertiesBackingEngine extends Object implements BackingEngine
GROUP_PREFIX| Constructor and Description |
|---|
PropertiesBackingEngine(org.apache.felix.utils.properties.Properties users) |
PropertiesBackingEngine(org.apache.felix.utils.properties.Properties users,
EncryptionSupport encryptionSupport) |
| 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. |
public PropertiesBackingEngine(org.apache.felix.utils.properties.Properties users)
public PropertiesBackingEngine(org.apache.felix.utils.properties.Properties users,
EncryptionSupport encryptionSupport)
public void addUser(String username, String password)
BackingEngineaddUser in interface BackingEngineusername - the user name.password - the user password.public void deleteUser(String username)
BackingEnginedeleteUser in interface BackingEngineusername - the user name.public List<org.apache.karaf.jaas.boot.principal.UserPrincipal> listUsers()
BackingEnginelistUsers in interface BackingEngineUserPrincipal.public org.apache.karaf.jaas.boot.principal.UserPrincipal lookupUser(String username)
BackingEngineUserPrincipal corresponding to an username, or null if user doesn't exist.lookupUser in interface BackingEngineusername - The username.UserPrincipal or null.public List<org.apache.karaf.jaas.boot.principal.RolePrincipal> listRoles(Principal principal)
BackingEngineprincipal. This could either be a
UserPrincipal or a GroupPrincipal.listRoles in interface BackingEngineprincipal - the principal.public void addRole(String username, String role)
BackingEngineaddRole in interface BackingEngineusername - the user name.role - the role.public void deleteRole(String username, String role)
BackingEnginedeleteRole in interface BackingEngineusername - the user name.role - the role.public List<org.apache.karaf.jaas.boot.principal.GroupPrincipal> listGroups(org.apache.karaf.jaas.boot.principal.UserPrincipal user)
BackingEnginelistGroups in interface BackingEngineuser - the UserPrincipal.GroupPrincipal.public void addGroup(String username, String group)
BackingEngineaddGroup in interface BackingEngineusername - the user name.group - the group.public void deleteGroup(String username, String group)
BackingEnginedeleteGroup in interface BackingEngineusername - the user name.group - the group.public void addGroupRole(String group, String role)
BackingEngineaddGroupRole in interface BackingEnginegroup - the group.role - the role.public void deleteGroupRole(String group, String role)
BackingEnginedeleteGroupRole in interface BackingEnginegroup - the group.role - the role.public Map<org.apache.karaf.jaas.boot.principal.GroupPrincipal,String> listGroups()
BackingEnginelistGroups in interface BackingEnginepublic void createGroup(String group)
BackingEnginecreateGroup in interface BackingEnginegroup - the group.Copyright © 2007–2019 The Apache Software Foundation. All rights reserved.