javax.security.jacc

Class WebUserDataPermission

Implemented Interfaces:
Serializable

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.

See Also:
java.security.Permission

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()

Constructor Details

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 Details

equals

public boolean equals(Object o)

getActions

public String getActions()

hashCode

public int hashCode()

implies

public boolean implies(Permission permission)

newPermissionCollection

public PermissionCollection newPermissionCollection()