portals-jetspeed-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tay...@apache.org
Subject svn commit: r327602 - /portals/jetspeed-2/trunk/jetspeed-api/src/java/org/apache/jetspeed/security/PermissionManager.java
Date Fri, 21 Oct 2005 23:03:48 GMT
Author: taylor
Date: Fri Oct 21 16:03:46 2005
New Revision: 327602

URL: http://svn.apache.org/viewcvs?rev=327602&view=rev
Log:
http://issues.apache.org/jira/browse/JS2-384

Modified:
    portals/jetspeed-2/trunk/jetspeed-api/src/java/org/apache/jetspeed/security/PermissionManager.java

Modified: portals/jetspeed-2/trunk/jetspeed-api/src/java/org/apache/jetspeed/security/PermissionManager.java
URL: http://svn.apache.org/viewcvs/portals/jetspeed-2/trunk/jetspeed-api/src/java/org/apache/jetspeed/security/PermissionManager.java?rev=327602&r1=327601&r2=327602&view=diff
==============================================================================
--- portals/jetspeed-2/trunk/jetspeed-api/src/java/org/apache/jetspeed/security/PermissionManager.java
(original)
+++ portals/jetspeed-2/trunk/jetspeed-api/src/java/org/apache/jetspeed/security/PermissionManager.java
Fri Oct 21 16:03:46 2005
@@ -19,6 +19,8 @@
 import java.security.Principal;
 import java.util.Collection;
 
+import javax.security.auth.Subject;
+
 /**
  * <p>
  * Describe the interface for managing {@link Permission}and permission
@@ -126,4 +128,16 @@
      */
     void revokePermission(Principal principal, Permission permission) throws SecurityException;
 
+    /**
+     * <p>
+     * Check permission for the given subject's access to the resource protected by the permission
+     * This is an abstraction introduced in M4 for Permission Manager implementations NOT
+     * founded upon the a Java security policy.
+     * 
+     * @param subject The Java subject.
+     * @param permission The permission, usually a portlet, page or folder type permission.
+     * @throws Throws a security exception.
+     */
+    void checkPermission(Subject subject, Permission permission) throws SecurityException;
+    
 }



---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-dev-unsubscribe@portals.apache.org
For additional commands, e-mail: jetspeed-dev-help@portals.apache.org


Mime
View raw message