org.jboss.messaging.core.security
Interface JBMUpdateableSecurityManager

All Superinterfaces:
JBMSecurityManager
All Known Implementing Classes:
JBMSecurityManagerImpl

public interface JBMUpdateableSecurityManager
extends JBMSecurityManager

extends JBMSecurityManager to allow the addition and removal of users and roles.

Author:
Andy Taylor

Method Summary
 void addRole(java.lang.String user, java.lang.String role)
          adds a new role for a user.
 void addUser(java.lang.String user, java.lang.String password)
          adds a new user
 void removeRole(java.lang.String user, java.lang.String role)
          removes a role from a user
 void removeUser(java.lang.String user)
          removes a user and any roles they may have.
 
Methods inherited from interface org.jboss.messaging.core.security.JBMSecurityManager
validateUser, validateUserAndRole
 

Method Detail

addUser

void addUser(java.lang.String user,
             java.lang.String password)
adds a new user

Parameters:
user - the user to add
password - theusers password

removeUser

void removeUser(java.lang.String user)
removes a user and any roles they may have.

Parameters:
user - the user to remove

addRole

void addRole(java.lang.String user,
             java.lang.String role)
adds a new role for a user.

Parameters:
user - the user
role - the role to add

removeRole

void removeRole(java.lang.String user,
                java.lang.String role)
removes a role from a user

Parameters:
user - the user
role - the role to remove


Copyright © 2006 JBoss Inc. All Rights Reserved.