org.jafer.zserver.authenticate
Class BasicAuthenticate
java.lang.Object
org.jafer.interfaces.Authenticate
org.jafer.zserver.authenticate.BasicAuthenticate
- All Implemented Interfaces:
- java.io.Serializable
public class BasicAuthenticate
- extends Authenticate
Provides basic authentication via org.jafer.zserver.operations.Init operation within a session.
Based on group and/or user (+password) and optionally userIP address with IPMask.
User authentication details can be set via UserCredentials class and specified in server.xml - if authentication fails, session is terminated
- Version:
- 1.0
- Author:
- Antony Corfield; Matthew Dovey; Colin Tatham
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
GROUP_DELIMITER
private static final java.lang.String GROUP_DELIMITER
- See Also:
- Constant Field Values
users
private UserCredentials[] users
userLookup
private java.util.Hashtable userLookup
anonymous
private boolean anonymous
BasicAuthenticate
public BasicAuthenticate()
authenticate
public boolean authenticate(java.lang.String username,
java.lang.String groupname,
java.lang.String password,
java.lang.String clientIp)
- Specified by:
authenticate
in class Authenticate
setUsers
public void setUsers(UserCredentials[] users)
getUsers
public UserCredentials[] getUsers()
setAnonymous
public void setAnonymous(boolean anonymous)
isAnonymous
public boolean isAnonymous()