public abstract class AbstractSession extends Object implements Runnable
Modifier and Type | Field and Description |
---|---|
static String |
PASSWORD_ENCODING_ALGORITHM |
protected String |
segmentName |
protected AbstractServer |
server |
protected Socket |
socket |
protected String |
username |
Constructor and Description |
---|
AbstractSession(Socket client,
AbstractServer server) |
Modifier and Type | Method and Description |
---|---|
protected boolean |
login(String username,
String password)
Validate user and password.
|
protected void |
logout()
Session logout.
|
static javax.jdo.PersistenceManager |
newPersistenceManager(javax.jdo.PersistenceManagerFactory pmf,
String username)
Get persistence manager for user.
|
void |
stop()
Stop session.
|
public static final String PASSWORD_ENCODING_ALGORITHM
protected final AbstractServer server
protected Socket socket
protected String username
protected String segmentName
public AbstractSession(Socket client, AbstractServer server)
public void stop()
public static javax.jdo.PersistenceManager newPersistenceManager(javax.jdo.PersistenceManagerFactory pmf, String username)
pmf
- username
- protected boolean login(String username, String password)
username
- password
- protected void logout()
This software is published under the BSD license. Copyright © 2003-${build.year}, CRIXP AG, Switzerland, All rights reserved. Use is subject to license terms.