[jboss-cvs] jbosssx/src/main/org/jboss/security ...
Anil Saldhana
anil.saldhana at jboss.com
Tue Jul 11 15:38:36 EDT 2006
User: asaldhana
Date: 06/07/11 15:38:36
Modified: src/main/org/jboss/security AuthorizationManager.java
Log:
JBAS-2624: Remove the hasPermission method to give preference to the authorize method
Revision Changes Path
1.4 +3 -17 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.3
retrieving revision 1.4
diff -u -b -r1.3 -r1.4
--- AuthorizationManager.java 28 Jun 2006 02:20:58 -0000 1.3
+++ AuthorizationManager.java 11 Jul 2006 19:38:36 -0000 1.4
@@ -28,7 +28,7 @@
import org.jboss.security.authorization.AuthorizationException;
import org.jboss.security.authorization.Resource;
-//$Id: AuthorizationManager.java,v 1.3 2006/06/28 02:20:58 asaldhana Exp $
+//$Id: AuthorizationManager.java,v 1.4 2006/07/11 19:38:36 asaldhana Exp $
/**
* Generalized Authorization Manager Interface.
@@ -37,25 +37,11 @@
* @see org.jboss.security.RealmMapping
* @author <a href="mailto:Anil.Saldhana at jboss.org">Anil Saldhana</a>
* @since Jan 2, 2006
- * @version $Revision: 1.3 $
+ * @version $Revision: 1.4 $
*/
public interface AuthorizationManager
{
/**
- * Method that is relevant to JACC enabled system.
- * Permission can be any of the following:
- * @see javax.security.jacc.WebResourcePermission
- * @see javax.security.jacc.WebRoleRefPermission
- * @see javax.security.jacc.WebUserDataPermission
- * @see javax.security.jacc.EJBMethodPermission
- * @see javax.security.jacc.EJBRoleRefPermission
- * @param perm Permission that needs to be checked for the principal
- * @param principal
- * @return if the authenticated principal has permissions
- */
- public boolean hasPermission(Permission perm, Principal principal);
-
- /**
* Checks whether the authenticated Principal has the role
* @param roleName the role to check for the caller/user principal
* @return Whether the authenticated principal has the role
More information about the jboss-cvs-commits
mailing list