org.jboss.messaging.core.security
Interface JBMSecurityManager

All Known Subinterfaces:
JBMUpdateableSecurityManager
All Known Implementing Classes:
JAASSecurityManager, JBMSecurityManagerImpl

public interface JBMSecurityManager

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

Author:
Andy Taylor

Method Summary
 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.HashSet<Role> roles, CheckType checkType)
          is this a valid user and do they have the correct role
 

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.HashSet<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


Copyright © 2006 JBoss Inc. All Rights Reserved.