com.caucho.server.security
Class PropertyAuthenticator

java.lang.Object
  extended by com.caucho.security.AbstractAuthenticator
      extended by com.caucho.security.PropertiesAuthenticator
          extended by com.caucho.server.security.PropertyAuthenticator
All Implemented Interfaces:
HandleAware, Authenticator, java.io.Serializable

public class PropertyAuthenticator
extends PropertiesAuthenticator

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>
 

See Also:
Serialized Form

Field Summary
 
Fields inherited from class com.caucho.security.AbstractAuthenticator
_passwordDigest, _passwordDigestAlgorithm, _passwordDigestRealm, NULL_USER
 
Constructor Summary
PropertyAuthenticator()
           
 
Method Summary
 
Methods inherited from class com.caucho.security.PropertiesAuthenticator
addUser, createUser, getPasswordUser, getPath, init, reload, setPath, setValue, toString
 
Methods inherited from class com.caucho.security.AbstractAuthenticator
addRoleMapping, authenticate, authenticate, authenticate, authenticate, authenticate, digest, getAlgorithm, getDigest, getDigestSecret, getDigestSecret, getLogoutOnSessionTimeout, getPasswordDigest, getPasswordDigest, getPasswordDigestAlgorithm, getPasswordDigestRealm, getPasswordUser, getSingleSignon, isUserInRole, logout, setLogoutOnSessionTimeout, setPasswordDigest, setPasswordDigestAlgorithm, setPasswordDigestRealm, setSerializationHandle, stringToDigest, writeReplace
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PropertyAuthenticator

public PropertyAuthenticator()