[jboss-cvs] jbosssx/src/main/org/jboss/security ...
Anil Saldhana
anil.saldhana at jboss.com
Tue Jul 25 13:04:02 EDT 2006
User: asaldhana
Date: 06/07/25 13:04:02
Modified: src/main/org/jboss/security AuthorizationManager.java
Log:
JBAS-2624: Additional method doesUserHaveRole from RealmMapping
Revision Changes Path
1.5 +13 -2 jbosssx/src/main/org/jboss/security/AuthorizationManager.java
(In the diff below, changes in quantity of whitespace are not shown.)
Index: AuthorizationManager.java
===================================================================
RCS file: /cvsroot/jboss/jbosssx/src/main/org/jboss/security/AuthorizationManager.java,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -b -r1.4 -r1.5
--- AuthorizationManager.java 11 Jul 2006 19:38:36 -0000 1.4
+++ AuthorizationManager.java 25 Jul 2006 17:04:02 -0000 1.5
@@ -28,7 +28,7 @@
import org.jboss.security.authorization.AuthorizationException;
import org.jboss.security.authorization.Resource;
-//$Id: AuthorizationManager.java,v 1.4 2006/07/11 19:38:36 asaldhana Exp $
+//$Id: AuthorizationManager.java,v 1.5 2006/07/25 17:04:02 asaldhana Exp $
/**
* Generalized Authorization Manager Interface.
@@ -37,7 +37,7 @@
* @see org.jboss.security.RealmMapping
* @author <a href="mailto:Anil.Saldhana at jboss.org">Anil Saldhana</a>
* @since Jan 2, 2006
- * @version $Revision: 1.4 $
+ * @version $Revision: 1.5 $
*/
public interface AuthorizationManager
{
@@ -48,6 +48,17 @@
*/
public boolean doesUserHaveRole(String roleName);
+ /** Validates the application domain roles to which the operational
+ environment Principal belongs.
+ @param principal the caller principal as known in the operation environment.
+ @param roles The Set<Principal> for the application domain roles that the
+ principal is to be validated against.
+ @return true if the principal has at least one of the roles in the roles set,
+ false otherwise.
+ */
+ public boolean doesUserHaveRole(Principal principal, Set roles);
+
+
/** Map from the operational environment Principal to the application
domain principal. This is used by the EJBContext.getCallerPrincipal implentation
to map from the authenticated principal to a principal in the application
More information about the jboss-cvs-commits
mailing list