javax.security.jacc
Class WebUserDataPermission

java.lang.Object
  extended by java.security.Permission
      extended by javax.security.jacc.WebUserDataPermission
All Implemented Interfaces:
Serializable, Guard

public final class WebUserDataPermission
extends Permission
implements Serializable

Class for Servlet Web user data permissions. A WebUserDataPermission is a named permission and has actions.

The name of a WebUserDataPermission (also referred to as the target name) identifies a Web resource by its context path relative URL pattern.

Version:
$Rev: 431818 $ $Date: 2006-08-15 21:55:26 -0700 (Tue, 15 Aug 2006) $
See Also:
Permission, Serialized Form

Constructor Summary
WebUserDataPermission(HttpServletRequest request)
          Creates a new WebUserDataPermission from the HttpServletRequest object.
WebUserDataPermission(String name, String actions)
           
WebUserDataPermission(String urlPattern, String[] HTTPMethods, String transportType)
           
 
Method Summary
 boolean equals(Object o)
           
 String getActions()
           
 int hashCode()
           
 boolean implies(Permission permission)
           
 PermissionCollection newPermissionCollection()
           
 
Methods inherited from class java.security.Permission
checkGuard, getName, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

WebUserDataPermission

public WebUserDataPermission(HttpServletRequest request)
Creates a new WebUserDataPermission from the HttpServletRequest object.

Parameters:
request - the HttpServletRequest object corresponding to the Servlet operation to which the permission pertains. The permission name is the substring of the requestURI (HttpServletRequest.getRequestURI()) that begins after the contextPath (HttpServletRequest.getContextPath()). When the substring operation yields the string �/�, the permission is constructed with the empty string as its name. The HTTP method component of the permission�s actions is as obtained from HttpServletRequest.getMethod(). The TransportType component of the permission�s actions is determined by calling HttpServletRequest.isSecure().

WebUserDataPermission

public WebUserDataPermission(String name,
                             String actions)

WebUserDataPermission

public WebUserDataPermission(String urlPattern,
                             String[] HTTPMethods,
                             String transportType)
Method Detail

equals

public boolean equals(Object o)
Specified by:
equals in class Permission

getActions

public String getActions()
Specified by:
getActions in class Permission

hashCode

public int hashCode()
Specified by:
hashCode in class Permission

implies

public boolean implies(Permission permission)
Specified by:
implies in class Permission

newPermissionCollection

public PermissionCollection newPermissionCollection()
Overrides:
newPermissionCollection in class Permission


Copyright © 2006 Apache Software Foundation. All Rights Reserved.