Package org.opennms.container.jaas
Class OpenNMSBackingEngine
- java.lang.Object
-
- org.opennms.container.jaas.OpenNMSBackingEngine
-
- All Implemented Interfaces:
org.apache.karaf.jaas.modules.BackingEngine
public class OpenNMSBackingEngine extends java.lang.Object implements org.apache.karaf.jaas.modules.BackingEngine
This
BackingEngine
maps theadmin
user to the following roles:- admin
- manager
- viewer
- systembundles
-
-
Constructor Summary
Constructors Constructor Description OpenNMSBackingEngine()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addGroup(java.lang.String username, java.lang.String group)
void
addGroupRole(java.lang.String group, java.lang.String role)
void
addRole(java.lang.String username, java.lang.String role)
void
addUser(java.lang.String username, java.lang.String password)
void
createGroup(java.lang.String group)
void
deleteGroup(java.lang.String username, java.lang.String group)
void
deleteGroupRole(java.lang.String group, java.lang.String role)
void
deleteRole(java.lang.String username, java.lang.String role)
void
deleteUser(java.lang.String username)
java.util.Map<org.apache.karaf.jaas.boot.principal.GroupPrincipal,java.lang.String>
listGroups()
java.util.List<org.apache.karaf.jaas.boot.principal.GroupPrincipal>
listGroups(org.apache.karaf.jaas.boot.principal.UserPrincipal user)
java.util.List<org.apache.karaf.jaas.boot.principal.RolePrincipal>
listRoles(java.security.Principal principal)
java.util.List<org.apache.karaf.jaas.boot.principal.UserPrincipal>
listUsers()
org.apache.karaf.jaas.boot.principal.UserPrincipal
lookupUser(java.lang.String s)
-
-
-
Method Detail
-
addUser
public void addUser(java.lang.String username, java.lang.String password)
- Specified by:
addUser
in interfaceorg.apache.karaf.jaas.modules.BackingEngine
-
deleteUser
public void deleteUser(java.lang.String username)
- Specified by:
deleteUser
in interfaceorg.apache.karaf.jaas.modules.BackingEngine
-
listUsers
public java.util.List<org.apache.karaf.jaas.boot.principal.UserPrincipal> listUsers()
- Specified by:
listUsers
in interfaceorg.apache.karaf.jaas.modules.BackingEngine
-
lookupUser
public org.apache.karaf.jaas.boot.principal.UserPrincipal lookupUser(java.lang.String s)
- Specified by:
lookupUser
in interfaceorg.apache.karaf.jaas.modules.BackingEngine
-
listGroups
public java.util.List<org.apache.karaf.jaas.boot.principal.GroupPrincipal> listGroups(org.apache.karaf.jaas.boot.principal.UserPrincipal user)
- Specified by:
listGroups
in interfaceorg.apache.karaf.jaas.modules.BackingEngine
-
listGroups
public java.util.Map<org.apache.karaf.jaas.boot.principal.GroupPrincipal,java.lang.String> listGroups()
- Specified by:
listGroups
in interfaceorg.apache.karaf.jaas.modules.BackingEngine
-
addGroup
public void addGroup(java.lang.String username, java.lang.String group)
- Specified by:
addGroup
in interfaceorg.apache.karaf.jaas.modules.BackingEngine
-
createGroup
public void createGroup(java.lang.String group)
- Specified by:
createGroup
in interfaceorg.apache.karaf.jaas.modules.BackingEngine
-
deleteGroup
public void deleteGroup(java.lang.String username, java.lang.String group)
- Specified by:
deleteGroup
in interfaceorg.apache.karaf.jaas.modules.BackingEngine
-
listRoles
public java.util.List<org.apache.karaf.jaas.boot.principal.RolePrincipal> listRoles(java.security.Principal principal)
- Specified by:
listRoles
in interfaceorg.apache.karaf.jaas.modules.BackingEngine
-
addRole
public void addRole(java.lang.String username, java.lang.String role)
- Specified by:
addRole
in interfaceorg.apache.karaf.jaas.modules.BackingEngine
-
deleteRole
public void deleteRole(java.lang.String username, java.lang.String role)
- Specified by:
deleteRole
in interfaceorg.apache.karaf.jaas.modules.BackingEngine
-
addGroupRole
public void addGroupRole(java.lang.String group, java.lang.String role)
- Specified by:
addGroupRole
in interfaceorg.apache.karaf.jaas.modules.BackingEngine
-
deleteGroupRole
public void deleteGroupRole(java.lang.String group, java.lang.String role)
- Specified by:
deleteGroupRole
in interfaceorg.apache.karaf.jaas.modules.BackingEngine
-
-