| Modifier and Type | Class and Description |
|---|---|
| pack-priv class | HTAccessHandler.DummyPrincipal
DummyPrincipal For use when there is no user realm configured. |
| private static class |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv String | |
| pack-priv String | |
| pack-priv transient HashMap | |
| private static Logger | |
| private Handler |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public Principal | |
| protected Handler | |
| public void | handle(String
The target of the request - either a URI or a name. target, HttpServletRequest The request either as the request, HttpServletResponse Request
object or a wrapper of that request. The HttpConnection#getCurrentConnection()
method can be used access the Request object if required.The response as the response, int dispatch)Response
object or a wrapper of that request. The HttpConnection#getCurrentConnection()
method can be used access the Response object if required.Overrides org. Implements org. |
| public void | |
| public void | setDefault(String dir)
set functions for the following .xml administration statements.</set></set></new></arg></call> |
| public void |
| _accessFile | back to summary |
|---|---|
| pack-priv String _accessFile | |
| _default | back to summary |
|---|---|
| pack-priv String _default | |
| _htCache | back to summary |
|---|---|
| pack-priv transient HashMap<K, V> _htCache | |
| log | back to summary |
|---|---|
| private static Logger log | |
| protegee | back to summary |
|---|---|
| private Handler protegee | |
| HTAccessHandler | back to summary |
|---|---|
| public HTAccessHandler() | |
| getPrincipal | back to summary |
|---|---|
| public Principal getPrincipal(String user, UserRealm realm) Get a Principal matching the user. If there is no user realm, and therefore we are using a htpassword file instead, then just return a dummy Principal. | |
| getProtegee | back to summary |
|---|---|
| protected Handler getProtegee() Getter for property protegee.
| |
| handle | back to summary |
|---|---|
| public void handle(String target, HttpServletRequest request, HttpServletResponse response, int dispatch) throws IOException, ServletException Overrides org. Implements org. Doc from org. Handle a request.
| |
| setAccessFile | back to summary |
|---|---|
| public void setAccessFile(String anArg) | |
| setDefault | back to summary |
|---|---|
| public void setDefault(String dir) set functions for the following .xml administration statements.
| |
| setProtegee | back to summary |
|---|---|
| public void setProtegee(Handler protegee) Setter for property protegee.
| |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public String | |
| public String | toString()
Overrides java. Implements java. Principal.
|
| _userName | back to summary |
|---|---|
| private String _userName | |
| DummyPrincipal | back to summary |
|---|---|
| public DummyPrincipal(String name) | |
| getName | back to summary |
|---|---|
| public String getName() Implements java. Doc from java. Returns the name of this
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Implements java. Doc from java. Returns a string representation of this
| |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv ArrayList | |
| pack-priv ArrayList | |
| pack-priv boolean | |
| pack-priv String | |
| pack-priv long | |
| pack-priv Resource | |
| pack-priv HashMap | |
| pack-priv long | |
| pack-priv HashMap | |
| pack-priv String | |
| pack-priv int | |
| pack-priv HashSet | |
| pack-priv String | |
| pack-priv int | |
| pack-priv String | |
| pack-priv String | |
| pack-priv long | |
| pack-priv Resource | |
| pack-priv HashMap | |
| pack-priv static final int | |
| pack-priv static final int | |
| pack-priv static final String | |
| pack-priv static final String | |
| pack-priv static final String |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | |
| public boolean | |
| public Resource | |
| public long | |
| public HashMap | |
| public String | |
| public int | |
| public String | |
| private String | |
| private ArrayList | |
| public Resource | |
| public boolean | |
| public boolean | |
| public boolean | |
| private void | |
| public String |
| _allowList | back to summary |
|---|---|
| pack-priv ArrayList<E> _allowList | |
| _denyList | back to summary |
|---|---|
| pack-priv ArrayList<E> _denyList | |
| _forbidden | back to summary |
|---|---|
| pack-priv boolean _forbidden | |
| _groupFile | back to summary |
|---|---|
| pack-priv String _groupFile | |
| _groupModified | back to summary |
|---|---|
| pack-priv long _groupModified | |
| _groupResource | back to summary |
|---|---|
| pack-priv Resource _groupResource | |
| _groups | back to summary |
|---|---|
| pack-priv HashMap<K, V> _groups | |
| _lastModified | back to summary |
|---|---|
| pack-priv long _lastModified | |
| _methods | back to summary |
|---|---|
| pack-priv HashMap<K, V> _methods | |
| _name | back to summary |
|---|---|
| pack-priv String _name | |
| _order | back to summary |
|---|---|
| pack-priv int _order | |
| _requireEntities | back to summary |
|---|---|
| pack-priv HashSet<E> _requireEntities | |
| _requireName | back to summary |
|---|---|
| pack-priv String _requireName | |
| _satisfy | back to summary |
|---|---|
| pack-priv int _satisfy | |
| _type | back to summary |
|---|---|
| pack-priv String _type | |
| _userFile | back to summary |
|---|---|
| pack-priv String _userFile | |
| _userModified | back to summary |
|---|---|
| pack-priv long _userModified | |
| _userResource | back to summary |
|---|---|
| pack-priv Resource _userResource | |
| _users | back to summary |
|---|---|
| pack-priv HashMap<K, V> _users | |
| ALL | back to summary |
|---|---|
| pack-priv static final int ALL | |
| ANY | back to summary |
|---|---|
| pack-priv static final int ANY | |
| GROUP | back to summary |
|---|---|
| pack-priv static final String GROUP | |
| USER | back to summary |
|---|---|
| pack-priv static final String USER | |
| VALID_USER | back to summary |
|---|---|
| pack-priv static final String VALID_USER | |
| HTAccess | back to summary |
|---|---|
| public HTAccess(Resource resource) | |
| checkAccess | back to summary |
|---|---|
| public boolean checkAccess(String host, String ip) | |
| checkAuth | back to summary |
|---|---|
| public boolean checkAuth(String user, String pass, UserRealm realm, Request request) | |
| getGroupResource | back to summary |
|---|---|
| public Resource getGroupResource() | |
| getLastModified | back to summary |
|---|---|
| public long getLastModified() | |
| getMethods | back to summary |
|---|---|
| public HashMap | |
| getName | back to summary |
|---|---|
| public String getName() | |
| getSatisfy | back to summary |
|---|---|
| public int getSatisfy() | |
| getType | back to summary |
|---|---|
| public String getType() | |
| getUserCode | back to summary |
|---|---|
| private String getUserCode(String user) | |
| getUserGroups | back to summary |
|---|---|
| private ArrayList | |
| getUserResource | back to summary |
|---|---|
| public Resource getUserResource() | |
| isAccessLimited | back to summary |
|---|---|
| public boolean isAccessLimited() | |
| isAuthLimited | back to summary |
|---|---|
| public boolean isAuthLimited() | |
| isForbidden | back to summary |
|---|---|
| public boolean isForbidden() | |
| parse | back to summary |
|---|---|
| private void parse(BufferedReader htin) throws IOException | |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object.
| |