[Jboss-cvs] JBossAS SVN: r56122 - trunk/security/src/main/org/jboss/security
jboss-cvs-commits at lists.jboss.org
jboss-cvs-commits at lists.jboss.org
Mon Aug 21 12:42:02 EDT 2006
Author: anil.saldhana at jboss.com
Date: 2006-08-21 12:42:01 -0400 (Mon, 21 Aug 2006)
New Revision: 56122
Modified:
trunk/security/src/main/org/jboss/security/AuthorizationManager.java
Log:
JBAS-3535: Inherit from RealmMapping
Modified: trunk/security/src/main/org/jboss/security/AuthorizationManager.java
===================================================================
--- trunk/security/src/main/org/jboss/security/AuthorizationManager.java 2006-08-21 16:41:32 UTC (rev 56121)
+++ trunk/security/src/main/org/jboss/security/AuthorizationManager.java 2006-08-21 16:42:01 UTC (rev 56122)
@@ -19,12 +19,8 @@
* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
*/
-package org.jboss.security;
+package org.jboss.security;
-import java.security.Permission;
-import java.security.Principal;
-import java.util.Set;
-
import org.jboss.security.authorization.AuthorizationException;
import org.jboss.security.authorization.Resource;
@@ -39,41 +35,15 @@
* @since Jan 2, 2006
* @version $Revision$
*/
-public interface AuthorizationManager
+public interface AuthorizationManager extends RealmMapping
{
/**
* 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
*/
- public boolean doesUserHaveRole(String roleName);
+ 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
- domain.
- @param principal the caller principal as known in the operation environment.
- @return the principal
- */
- public Principal getPrincipal(Principal principal);
-
- /** Return the set of domain roles the principal has been assigned.
- @return The Set<Principal> for the application domain roles that the
- principal has been assigned.
- */
- public Set getUserRoles(Principal principal);
-
/**
* Authorize a resource
* @param resource
More information about the jboss-cvs-commits
mailing list