winstone.auth
Class SecurityConstraint

java.lang.Object
  extended by winstone.auth.SecurityConstraint

public class SecurityConstraint
extends java.lang.Object

Models a restriction on a particular set of resources in the webapp.

Version:
$Id: SecurityConstraint.java,v 1.7 2006/08/10 06:38:30 rickknowles Exp $
Author:
mailto: Rick Knowles

Constructor Summary
SecurityConstraint(org.w3c.dom.Node elm, java.util.Set rolesAllowed, int counter)
          Constructor
 
Method Summary
 java.lang.String getName()
           
 boolean isAllowed(HttpServletRequest request)
          Call this to evaluate the security constraint - is this operation allowed ?
 boolean isApplicable(java.lang.String url, java.lang.String method)
          Call this to evaluate the security constraint - is this constraint applicable to this url ?
 boolean needsSSL()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SecurityConstraint

public SecurityConstraint(org.w3c.dom.Node elm,
                          java.util.Set rolesAllowed,
                          int counter)
Constructor

Method Detail

isAllowed

public boolean isAllowed(HttpServletRequest request)
Call this to evaluate the security constraint - is this operation allowed ?


isApplicable

public boolean isApplicable(java.lang.String url,
                            java.lang.String method)
Call this to evaluate the security constraint - is this constraint applicable to this url ?


needsSSL

public boolean needsSSL()

getName

public java.lang.String getName()


Copyright © 2013. All Rights Reserved.