javax.security.jacc
Class WebUserDataPermission
java.lang.Object
java.security.Permission
javax.security.jacc.WebUserDataPermission
- All Implemented Interfaces:
- java.security.Guard, java.io.Serializable
- public final class WebUserDataPermission
- extends java.security.Permission
- implements java.io.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: 169130 $ $Date: 2005-05-08 00:40:59 -0600 (Sun, 08 May 2005) $
- See Also:
Permission
,
Serialized Form
Fields inherited from class java.security.Permission |
|
Constructor Summary |
WebUserDataPermission(HttpServletRequest request)
Creates a new WebUserDataPermission from the HttpServletRequest object. |
WebUserDataPermission(java.lang.String name,
java.lang.String actions)
|
WebUserDataPermission(java.lang.String urlPattern,
java.lang.String[] HTTPMethods,
java.lang.String transportType)
|
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 |
cachedHashCode
private transient int cachedHashCode
urlPatternSpec
private transient URLPatternSpec urlPatternSpec
httpMethodSpec
private transient HTTPMethodSpec httpMethodSpec
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(java.lang.String name,
java.lang.String actions)
WebUserDataPermission
public WebUserDataPermission(java.lang.String urlPattern,
java.lang.String[] HTTPMethods,
java.lang.String transportType)
equals
public boolean equals(java.lang.Object o)
getActions
public java.lang.String getActions()
hashCode
public int hashCode()
implies
public boolean implies(java.security.Permission permission)
newPermissionCollection
public java.security.PermissionCollection newPermissionCollection()
readObject
private void readObject(java.io.ObjectInputStream in)
throws java.io.IOException
- Throws:
java.io.IOException
writeObject
private void writeObject(java.io.ObjectOutputStream out)
throws java.io.IOException
- Throws:
java.io.IOException