org.apache.karaf.jaas.modules.properties
Class PropertiesBackingEngine

java.lang.Object
  extended by org.apache.karaf.jaas.modules.properties.PropertiesBackingEngine
All Implemented Interfaces:
BackingEngine

public class PropertiesBackingEngine
extends Object
implements BackingEngine


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

Constructor Detail

PropertiesBackingEngine

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

Parameters:
users -

PropertiesBackingEngine

public PropertiesBackingEngine(org.apache.felix.utils.properties.Properties users,
                               EncryptionSupport encryptionSupport)
Method Detail

addUser

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

Specified by:
addUser in interface BackingEngine
Parameters:
username -
password -

deleteUser

public void deleteUser(String username)
Delete a User.

Specified by:
deleteUser in interface BackingEngine
Parameters:
username -

listUsers

public List<org.apache.karaf.jaas.boot.principal.UserPrincipal> listUsers()
List Users

Specified by:
listUsers in interface BackingEngine
Returns:

listRoles

public List<org.apache.karaf.jaas.boot.principal.RolePrincipal> listRoles(org.apache.karaf.jaas.boot.principal.UserPrincipal user)
List the Roles of the

Specified by:
listRoles in interface BackingEngine
Parameters:
user -
Returns:

addRole

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

Specified by:
addRole in interface BackingEngine
Parameters:
username -
role -

deleteRole

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

Specified by:
deleteRole in interface BackingEngine
Parameters:
username -
role -


Copyright © 2007-2012 The Apache Software Foundation. All Rights Reserved.