org.jboss.security.plugins.javaee
Class WebAuthorizationHelper

java.lang.Object
  extended by org.jboss.security.javaee.AbstractJavaEEHelper
      extended by org.jboss.security.javaee.AbstractWebAuthorizationHelper
          extended by org.jboss.security.plugins.javaee.WebAuthorizationHelper

public class WebAuthorizationHelper
extends org.jboss.security.javaee.AbstractWebAuthorizationHelper

Web Authorization Helper Implementation

Since:
Apr 18, 2008
Version:
$Revision$
Author:
Anil.Saldhana@redhat.com

Field Summary
protected static org.jboss.logging.Logger log
           
 
Fields inherited from class org.jboss.security.javaee.AbstractWebAuthorizationHelper
enableAudit
 
Fields inherited from class org.jboss.security.javaee.AbstractJavaEEHelper
policyRegistration, securityContext
 
Constructor Summary
WebAuthorizationHelper()
           
 
Method Summary
 boolean checkResourcePermission(Map<String,Object> contextMap, javax.servlet.ServletRequest request, javax.servlet.ServletResponse response, Subject callerSubject, String contextID, String canonicalRequestURI)
           
 boolean hasRole(String roleName, Principal principal, String servletName, Set<Principal> principalRoles, String contextID, Subject callerSubject)
           
 boolean hasUserDataPermission(Map<String,Object> contextMap, javax.servlet.ServletRequest request, javax.servlet.ServletResponse response, String contextID, Subject callerSubject)
           
 
Methods inherited from class org.jboss.security.javaee.AbstractWebAuthorizationHelper
isEnableAudit, setEnableAudit
 
Methods inherited from class org.jboss.security.javaee.AbstractJavaEEHelper
audit, authorizationAudit, getCallerPrincipal, getContextMap, getPolicyRegistration, getSecurityContext, setPolicyRegistration, setSecurityContext
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

log

protected static org.jboss.logging.Logger log
Constructor Detail

WebAuthorizationHelper

public WebAuthorizationHelper()
Method Detail

checkResourcePermission

public boolean checkResourcePermission(Map<String,Object> contextMap,
                                       javax.servlet.ServletRequest request,
                                       javax.servlet.ServletResponse response,
                                       Subject callerSubject,
                                       String contextID,
                                       String canonicalRequestURI)
Specified by:
checkResourcePermission in class org.jboss.security.javaee.AbstractWebAuthorizationHelper

hasRole

public boolean hasRole(String roleName,
                       Principal principal,
                       String servletName,
                       Set<Principal> principalRoles,
                       String contextID,
                       Subject callerSubject)
Specified by:
hasRole in class org.jboss.security.javaee.AbstractWebAuthorizationHelper

hasUserDataPermission

public boolean hasUserDataPermission(Map<String,Object> contextMap,
                                     javax.servlet.ServletRequest request,
                                     javax.servlet.ServletResponse response,
                                     String contextID,
                                     Subject callerSubject)
Specified by:
hasUserDataPermission in class org.jboss.security.javaee.AbstractWebAuthorizationHelper


Copyright © 2009 JBoss Inc.. All Rights Reserved.