|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.caucho.server.security.AbstractAuthenticator
com.caucho.server.security.AbstractPasswordAuthenticator
com.caucho.server.security.PropertyAuthenticator
public class PropertyAuthenticator
The Property authenticator reads a properties file for authentication.
<authenticator url="prop:path=WEB-INF/users.xml"/>
The format of the static file is as follows:
h.potter=password,user,captain
The authenticator can also be configured in the resin-web.xml:
<authenticator url="prop:password-digest=none">
<init>
Harry Potter=quidditch,user,captain
</init>
</authenticator>
| Field Summary |
|---|
| Fields inherited from class com.caucho.server.security.AbstractAuthenticator |
|---|
_passwordDigest, _passwordDigestAlgorithm, _passwordDigestRealm, _principalCache, _principalCacheSize, LOGIN_NAME |
| Constructor Summary | |
|---|---|
PropertyAuthenticator()
|
|
| Method Summary | |
|---|---|
protected PasswordUser |
createUser(java.lang.String name,
java.lang.String value)
Creates the password user based on a name and a comma-separated value |
Path |
getPath()
Gets the path to the property file. |
protected PasswordUser |
getUser(java.lang.String userName)
Returns the PasswordUser |
void |
init()
Initialize the properties authenticator. |
protected void |
reload()
Reload the authenticator. |
void |
setPath(Path path)
Sets the path to the property file. |
void |
setValue(java.util.Properties value)
Sets the properties value |
java.lang.String |
toString()
|
| Methods inherited from class com.caucho.server.security.AbstractPasswordAuthenticator |
|---|
getDigestPassword, getUser, isUserInRole, loginImpl |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public PropertyAuthenticator()
| Method Detail |
|---|
public void setPath(Path path)
public Path getPath()
public void setValue(java.util.Properties value)
<init value='Harry Potter=quidditch,user,webdav'/>
public void init()
throws ServletException
init in interface ServletAuthenticatorinit in class AbstractAuthenticatorServletExceptionprotected PasswordUser getUser(java.lang.String userName)
getUser in class AbstractPasswordAuthenticatoruserName - the string user name
protected void reload()
protected PasswordUser createUser(java.lang.String name,
java.lang.String value)
public java.lang.String toString()
toString in class AbstractAuthenticator
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||