org.fusesource.fabric.jaas
Class ZookeeperBackingEngine

java.lang.Object
  extended by org.fusesource.fabric.jaas.ZookeeperBackingEngine
All Implemented Interfaces:
org.apache.karaf.jaas.modules.BackingEngine

public class ZookeeperBackingEngine
extends java.lang.Object
implements org.apache.karaf.jaas.modules.BackingEngine


Field Summary
static java.lang.String USERS_NODE
           
 
Constructor Summary
ZookeeperBackingEngine(org.apache.felix.utils.properties.Properties users)
          Constructor
ZookeeperBackingEngine(org.apache.felix.utils.properties.Properties users, org.apache.karaf.jaas.modules.encryption.EncryptionSupport encryptionSupport)
           
 
Method Summary
 void addRole(java.lang.String username, java.lang.String role)
          Add a role to a User.
 void addUser(java.lang.String username, java.lang.String password)
          Add a user.
 void deleteRole(java.lang.String username, java.lang.String role)
          Delete a Role form User.
 void deleteUser(java.lang.String username)
          Delete a User.
 java.util.List<org.apache.karaf.jaas.modules.RolePrincipal> listRoles(org.apache.karaf.jaas.modules.UserPrincipal user)
          List the Roles of the
 java.util.List<org.apache.karaf.jaas.modules.UserPrincipal> listUsers()
          List Users
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

USERS_NODE

public static final java.lang.String USERS_NODE
See Also:
Constant Field Values
Constructor Detail

ZookeeperBackingEngine

public ZookeeperBackingEngine(org.apache.felix.utils.properties.Properties users)
Constructor

Parameters:
users -

ZookeeperBackingEngine

public ZookeeperBackingEngine(org.apache.felix.utils.properties.Properties users,
                              org.apache.karaf.jaas.modules.encryption.EncryptionSupport encryptionSupport)
Method Detail

addUser

public void addUser(java.lang.String username,
                    java.lang.String password)
Add a user.

Specified by:
addUser in interface org.apache.karaf.jaas.modules.BackingEngine
Parameters:
username -
password -

deleteUser

public void deleteUser(java.lang.String username)
Delete a User.

Specified by:
deleteUser in interface org.apache.karaf.jaas.modules.BackingEngine
Parameters:
username -

listUsers

public java.util.List<org.apache.karaf.jaas.modules.UserPrincipal> listUsers()
List Users

Specified by:
listUsers in interface org.apache.karaf.jaas.modules.BackingEngine
Returns:

listRoles

public java.util.List<org.apache.karaf.jaas.modules.RolePrincipal> listRoles(org.apache.karaf.jaas.modules.UserPrincipal user)
List the Roles of the

Specified by:
listRoles in interface org.apache.karaf.jaas.modules.BackingEngine
Parameters:
user -
Returns:

addRole

public void addRole(java.lang.String username,
                    java.lang.String role)
Add a role to a User.

Specified by:
addRole in interface org.apache.karaf.jaas.modules.BackingEngine
Parameters:
username -
role -

deleteRole

public void deleteRole(java.lang.String username,
                       java.lang.String role)
Delete a Role form User.

Specified by:
deleteRole in interface org.apache.karaf.jaas.modules.BackingEngine
Parameters:
username -
role -


Copyright © 2012 FuseSource. All Rights Reserved.