|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.caucho.security.AbstractAuthenticator
com.caucho.security.PropertiesAuthenticator
@Service public class PropertiesAuthenticator
The Property authenticator reads a properties file for authentication.
<sec:PropertiesAuthenticator 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:
<sec:PropertiesAuthenticator password-digest="none">
Harry Potter=quidditch,user,captain
</sec:PropertiesAuthenticator>
Field Summary |
---|
Fields inherited from class com.caucho.security.AbstractAuthenticator |
---|
_passwordDigest, _passwordDigestAlgorithm, _passwordDigestRealm, NULL_USER |
Constructor Summary | |
---|---|
PropertiesAuthenticator()
|
Method Summary | |
---|---|
void |
addUser(java.lang.String name,
java.lang.String password)
|
protected PasswordUser |
createUser(java.lang.String name,
java.lang.String value)
Creates the password user based on a name and a comma-separated value |
protected PasswordUser |
getPasswordUser(java.lang.String userName)
Returns the PasswordUser |
Path |
getPath()
Gets the path to the property file. |
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 java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public PropertiesAuthenticator()
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 addUser(java.lang.String name, java.lang.String password)
@PostConstruct public void init() throws ServletException
init
in class AbstractAuthenticator
ServletException
protected PasswordUser getPasswordUser(java.lang.String userName)
getPasswordUser
in class AbstractAuthenticator
userName
- 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 |