Examples of sessionTokenBytes()


Examples of org.gridgain.grid.kernal.processors.rest.GridRestResponse.sessionTokenBytes()

            cmdRes = hnd.handle(cmdReq);

            if (cmdRes == null)
                throw new IllegalStateException("Received null result from handler: " + hnd);

            byte[] sesTok = cmdRes.sessionTokenBytes();

            if (sesTok != null)
                cmdRes.setSessionToken(U.byteArray2HexString(sesTok));

            res.setStatus(HttpServletResponse.SC_OK);
View Full Code Here

Examples of org.gridgain.grid.kernal.processors.rest.GridRestResponse.sessionTokenBytes()

            GridRestResponse res = new GridRestResponse(STATUS_SECURITY_CHECK_FAILED, e.getMessage());

            if (ctx.isEnterprise()) {
                try {
                    res.sessionTokenBytes(updateSessionToken(req, subjCtx));
                }
                catch (GridException e1) {
                    U.warn(log, "Cannot update response session token: " + e1.getMessage());
                }
            }
View Full Code Here

Examples of org.gridgain.grid.kernal.processors.rest.GridRestResponse.sessionTokenBytes()

                assert res != null;

                if (ctx.secureSession().enabled()) {
                    try {
                        res.sessionTokenBytes(updateSessionToken(req, subjCtx0));
                    }
                    catch (GridException e) {
                        U.warn(log, "Cannot update response session token: " + e.getMessage());
                    }
                }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.