public void work(SCPPacket packet, SPSConnection connection) {
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);