if(packet.getRequestTypeIdetifier().equals(
SCPPacket.AUTHENTICATION)) {
AUPacket auPacket = new AUPacket(packet);
AuthenticationToken token = this.auth.authenticate(
auPacket.getUserId(), auPacket.getPassword());
if(token != null) {
byte[] response =
String.valueOf(token.getStatus()).getBytes();
packet.setDatablock(response);
worker.send(packet.getBytes());
if(token.getStatus() == AuthenticationToken.LOGIN_SUCCESFUL) {
SPSConnectionPool.setURLByConnection(
token.getUrl(),
connection
);
connection.setActive(true);
if(logger.isDebugEnabled()) {