This handler implements the Basic web authentication protocol outlined in RFC 2617. This handler sits in front
of a set of handlers within a chain see
pygmy.handlers.DefaultChainHandler . Everything it's in front of
will be protected. It checks it's url-prefix configuration to know when it should handle a request. Properties used
for configuring:
url-prefix | The prefix to filter request urls. | None | Yes |
realm | This is the realm reported to the client. See RFC 2617 for explanation of the realm parameter. | None | Yes |
users | This the path to a file containing all the users and their passwords allowed to access this url.
To create a file you can run this class and hand it the file, username, and password to create. WARNING do
not put this file in a place where it could be downloaded through this server. | None | Yes |
Here is the syntax for running this class to create a password file:
java pgymy.handlers.BasicWebAuthHandler <file> <username> <password>
An existing file can be added to by calling this program again.
|