org.jboss.messaging.core.security
Interface JBMSecurityManager

All Superinterfaces:
MessagingComponent
All Known Implementing Classes:
JAASSecurityManager, JBMSecurityManagerImpl, JBossASSecurityManager

public interface JBMSecurityManager
extends MessagingComponent

USe to validate whether a user has is valid to connect to the server and perform certain functions

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.
 void setDefaultUser(java.lang.String username)
           
 boolean validateUser(java.lang.String user, java.lang.String password)
          is this a valid user.
 boolean validateUserAndRole(java.lang.String user, java.lang.String password, java.util.Set<Role> roles, CheckType checkType)
          is this a valid user and do they have the correct role
 
Methods inherited from interface org.jboss.messaging.core.server.MessagingComponent
isStarted, start, stop
 

Method Detail

validateUser

boolean validateUser(java.lang.String user,
                     java.lang.String password)
is this a valid user.

Parameters:
user - the user
password - the users password
Returns:
true if a valid user

validateUserAndRole

boolean validateUserAndRole(java.lang.String user,
                            java.lang.String password,
                            java.util.Set<Role> roles,
                            CheckType checkType)
is this a valid user and do they have the correct role

Parameters:
user - the user
password - the users password
roles - the roles the user has
checkType - the type of check to perform
Returns:
true if the user is valid and they have the correct roles

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

setDefaultUser

void setDefaultUser(java.lang.String username)


Copyright © 2006 JBoss Inc. All Rights Reserved.