Package edu.uiuc.ncsa.security.core.exceptions

Examples of edu.uiuc.ncsa.security.core.exceptions.GeneralException


            return mpdsResponse;
        } catch (Throwable e) {
            if (e instanceof RuntimeException) {
                throw (RuntimeException) e;
            }
            throw new GeneralException("Error generating request", e);
        }

    }
View Full Code Here


        info("2.a. Getting token and verifier.");
        String token = request.getParameter(TOKEN_KEY);
        String verifier = request.getParameter(VERIFIER_KEY);
        if (token == null || verifier == null) {
            warn("2.a. The token is " + (token == null ? "null" : token) + " and the verifier is " + (verifier == null ? "null" : verifier));
            GeneralException ge = new GeneralException("Error: This servlet requires parameters for the token and verifier. It cannot be called directly.");
            request.setAttribute("exception", ge);
            JSPUtil.fwd(request, response, ERROR_PAGE);
            return;
        }
        info("2.a Token and verifier found.");
View Full Code Here

            return mpdsResponse;
        } catch (Throwable e) {
            if (e instanceof RuntimeException) {
                throw (RuntimeException) e;
            }
            throw new GeneralException("Error generating request", e);
        }

    }
View Full Code Here

            duration = Long.parseLong(durationParameter);
        }

        if (portalTokenId == null) {
            error("Token given by portal is invalid.");
            GeneralException ge = new GeneralException("Error: The token presented by portal is null.");
            request.setAttribute("exception", ge);
            JSPUtil.fwd(request, response, ERROR_PAGE);
            return;
        }

        info("Gateway name " + gatewayName);
        info("Portal user name " + portalUserName);
        info("Community user contact email " + contactEmail);
        info("Token id presented " + portalTokenId);

        info("2.a. Getting token and verifier.");
        String token = request.getParameter(TOKEN_KEY);
        String verifier = request.getParameter(VERIFIER_KEY);
        if (token == null || verifier == null) {
            warn("2.a. The token is " + (token == null ? "null" : token) + " and the verifier is "
                    + (verifier == null ? "null" : verifier));
            GeneralException ge = new GeneralException(
                    "Error: This servlet requires parameters for the token and verifier. It cannot be called directly.");
            request.setAttribute("exception", ge);
            JSPUtil.fwd(request, response, ERROR_PAGE);
            return;
        }
View Full Code Here

            duration = Long.parseLong(durationParameter);
        }

        if (portalTokenId == null) {
            error("Token given by portal is invalid.");
            GeneralException ge = new GeneralException("Error: The token presented by portal is null.");
            request.setAttribute("exception", ge);
            JSPUtil.fwd(request, response, configurationReader.getErrorUrl());
            return;
        }

        info("Gateway name " + gatewayName);
        info("Portal user name " + portalUserName);
        info("Community user contact email " + contactEmail);
        info("Token id presented " + portalTokenId);

        info("2.a. Getting token and verifier.");
        String token = request.getParameter(TOKEN_KEY);
        String verifier = request.getParameter(VERIFIER_KEY);
        if (token == null || verifier == null) {
            warn("2.a. The token is " + (token == null ? "null" : token) + " and the verifier is "
                    + (verifier == null ? "null" : verifier));
            GeneralException ge = new GeneralException(
                    "Error: This servlet requires parameters for the token and verifier. It cannot be called directly.");
            request.setAttribute("exception", ge);
            JSPUtil.fwd(request, response, configurationReader.getErrorUrl());
            return;
        }
View Full Code Here

            duration = Long.parseLong(durationParameter);
        }

        if (portalTokenId == null) {
            error("Token given by portal is invalid.");
            GeneralException ge = new GeneralException("Error: The token presented by portal is null.");
            request.setAttribute("exception", ge);
            JSPUtil.fwd(request, response, configurationReader.getErrorUrl());
            return;
        }

        info("Gateway name " + gatewayName);
        info("Portal user name " + portalUserName);
        info("Community user contact email " + contactEmail);
        info("Token id presented " + portalTokenId);

        info("2.a. Getting token and verifier.");
        String token = request.getParameter(TOKEN_KEY);
        String verifier = request.getParameter(VERIFIER_KEY);
        if (token == null || verifier == null) {
            warn("2.a. The token is " + (token == null ? "null" : token) + " and the verifier is "
                    + (verifier == null ? "null" : verifier));
            GeneralException ge = new GeneralException(
                    "Error: This servlet requires parameters for the token and verifier. It cannot be called directly.");
            request.setAttribute("exception", ge);
            JSPUtil.fwd(request, response, configurationReader.getErrorUrl());
            return;
        }
View Full Code Here

            duration = Long.parseLong(durationParameter);
        }

        if (portalTokenId == null) {
            error("Token given by portal is invalid.");
            GeneralException ge = new GeneralException("Error: The token presented by portal is null.");
            request.setAttribute("exception", ge);
            JSPUtil.fwd(request, response, configurationReader.getErrorUrl());
            return;
        }

        info("Gateway name " + gatewayName);
        info("Portal user name " + portalUserName);
        info("Community user contact email " + contactEmail);
        info("Token id presented " + portalTokenId);

        info("2.a. Getting token and verifier.");
        String token = request.getParameter(TOKEN_KEY);
        String verifier = request.getParameter(VERIFIER_KEY);
        if (token == null || verifier == null) {
            warn("2.a. The token is " + (token == null ? "null" : token) + " and the verifier is "
                    + (verifier == null ? "null" : verifier));
            GeneralException ge = new GeneralException(
                    "Error: This servlet requires parameters for the token and verifier. It cannot be called directly.");
            request.setAttribute("exception", ge);
            JSPUtil.fwd(request, response, configurationReader.getErrorUrl());
            return;
        }
View Full Code Here

TOP

Related Classes of edu.uiuc.ncsa.security.core.exceptions.GeneralException

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.