org.jboss.web.tomcat.security
Class JaccAuthorizationRealm

java.lang.Object
  extended byRealmBase
      extended byorg.jboss.web.tomcat.security.JBossSecurityMgrRealm (src) 
          extended byorg.jboss.web.tomcat.security.JaccAuthorizationRealm

public class JaccAuthorizationRealm
extends JBossSecurityMgrRealm (src)

A subclass of JBossSecurityMgrRealm that peforms authorization based on the JACC permissions and active Policy implementation.

See Also:
Serialized Form

Constructor Summary
JaccAuthorizationRealm()
           
 
Method Summary
 boolean hasResourcePermission(Request request, Response response, SecurityConstraint[] securityConstraints, Context context)
           
 boolean hasRole(java.security.Principal principal, java.lang.String name)
          Returns true if the specified user Principal has the specified security role, within the context of this Realm; otherwise return false.
 boolean hasUserDataPermission(Request request, Response response, SecurityConstraint[] constraints)
           
 
Methods inherited from class org.jboss.web.tomcat.security.JBossSecurityMgrRealm (src)
authenticate, authenticate, authenticate, authenticate, getCachingPrincpal, getName, getPassword, getPrincipal, getPrincipalRoles, setCertificatePrincipal, start, stop
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JaccAuthorizationRealm

public JaccAuthorizationRealm()
Method Detail

hasResourcePermission

public boolean hasResourcePermission(Request request,
                                     Response response,
                                     SecurityConstraint[] securityConstraints,
                                     Context context)
                              throws java.io.IOException
Throws:
java.io.IOException

hasRole

public boolean hasRole(java.security.Principal principal,
                       java.lang.String name)
Description copied from class: JBossSecurityMgrRealm (src)
Returns true if the specified user Principal has the specified security role, within the context of this Realm; otherwise return false. This will be true when an associated role Principal can be found whose getName method returns a String equalling the specified role.

Overrides:
hasRole in class JBossSecurityMgrRealm (src)
Parameters:
principal - Principal for whom the role is to be checked
name - Security role to be checked

hasUserDataPermission

public boolean hasUserDataPermission(Request request,
                                     Response response,
                                     SecurityConstraint[] constraints)
                              throws java.io.IOException
Throws:
java.io.IOException