|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.security.Permission SK.gnome.dwarf.http.auth.HTTPPathPermission
This class implements the permission based on a HTTP request.
It is used in defining the security constraints in the context of a web application. Granting the HTTPPathPermission to a set of principals causes the subject represented by those principals to gain access to the given URI path via the given HTTP methods.
The path argument can be either the exact path, or a path mapping pattern. The pattern must be specified with the "*" wildcard character. The actions argument must be a comma-separated list of the following HTTP methods: GET, POST, HEAD, PUT, DELETE, TRACE, OPTIONS. In addition, it accepts also these WebDAV-specific methods: PROPFIND, PROPPATCH, MKCOL, COPY, MOVE, LOCK, UNLOCK. The single wildcard "*" character can be also used to represent all possible methods.
The "!" special character at the beginning of the path mapping represents an effective complement to the actual mapping pattern.
Examples of the path mappings:
Constructor Summary | |
HTTPPathPermission(java.lang.String path,
java.lang.String actions)
Creates a new HTTPPathPermission. |
Method Summary | |
boolean |
equals(java.lang.Object obj)
|
java.lang.String |
getActions()
Returns the permission actions. |
int |
hashCode()
|
boolean |
implies(java.security.Permission p)
|
java.lang.String |
toString()
|
Methods inherited from class java.security.Permission |
getName, checkGuard, newPermissionCollection |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public HTTPPathPermission(java.lang.String path, java.lang.String actions)
path
- the request path mappingactions
- the comma-separated list of allowed HTTP methodsMethod Detail |
public java.lang.String getActions()
A comma-separated list of HTTP methods is returned by this method.
public boolean implies(java.security.Permission p)
public boolean equals(java.lang.Object obj)
public int hashCode()
public java.lang.String toString()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |