Package com.volantis.vdp.scs.authentication

Examples of com.volantis.vdp.scs.authentication.AuthenticationToken


        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()) {
View Full Code Here

TOP

Related Classes of com.volantis.vdp.scs.authentication.AuthenticationToken

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.