Package com.sparc.knappsack.security

Examples of com.sparc.knappsack.security.SingleUseToken


        checkRequiredEntity(applicationVersionService, Long.valueOf(id));

        String sessionId = request.getSession(false).getId();

        if (userAgentInfo.detectIos()) {
            SingleUseToken token = new SingleUseToken(sessionId);
            singleUseTokenRepository.putToken(token);

            int index = request.getRequestURL().indexOf(request.getServletPath());
            String newContext = "/ios/downloadIOSPlist/" + id + "/" + token.getSessionIdHash();
            StringBuffer url = request.getRequestURL().replace(index, request.getRequestURL().length(), newContext);
            subscribeUserAndCreateStatistic(Long.valueOf(id), request);

            return "itms-services://?action=download-manifest&url=" + url.toString();
        } else {
View Full Code Here


                                           @PathVariable String applicationVersionId, UserAgentInfo userAgentInfo) throws TokenException {
        checkRequiredEntity(applicationVersionService, Long.valueOf(applicationVersionId));

        String sessionId = request.getSession(false).getId();

        SingleUseToken token = new SingleUseToken(sessionId);
        singleUseTokenRepository.putToken(token);

        int index = request.getRequestURL().indexOf(request.getServletPath());
        String newContext = "/ios/downloadIOSPlist/" + applicationVersionId + "/" + token.getSessionIdHash();
        StringBuffer url = request.getRequestURL().replace(index, request.getRequestURL().length(), newContext);
        applicationController.subscribeUserAndCreateStatistic(Long.valueOf(applicationVersionId), request);

        String itmsURL = "itms-services://?action=download-manifest&url=" + url.toString();
View Full Code Here

TOP

Related Classes of com.sparc.knappsack.security.SingleUseToken

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.