Package org.apache.airavata.security

Examples of org.apache.airavata.security.Authenticator


                if (userStoreClass == null) {
                    reportError("userstore");
                }

                Authenticator authenticator = createAuthenticator(name, className, enabled, priority, userStoreClass);

                NodeList configurationNodes = node.getChildNodes();

                for (int j = 0; j < configurationNodes.getLength(); ++j) {

                    Node configurationNode = configurationNodes.item(j);

                    if (configurationNode.getNodeType() == Node.ELEMENT_NODE) {

                        if (configurationNode.getNodeName().equals("specificConfigurations")) {
                            authenticator.configure(configurationNode);
                        }
                    }
                }

                if (authenticator.isEnabled()) {
                    authenticatorList.add(authenticator);
                }

                Collections.sort(authenticatorList, new AuthenticatorComparator());
View Full Code Here


            return;
        }

        HttpServletRequest httpServletRequest = (HttpServletRequest) servletRequest;

        Authenticator authenticator = getAuthenticator(httpServletRequest);

        if (authenticator == null) {
            //sendUnauthorisedError(servletResponse, "Invalid request. Request does not contain sufficient credentials to authenticate");
            populateUnauthorisedData(servletResponse, "Invalid request. Request does not contain sufficient credentials to authenticate");
        } else {
            if (authenticator.isAuthenticated(httpServletRequest)) {
                // Allow request to flow
                filterChain.doFilter(servletRequest, servletResponse);
            } else {
                try {
                    if (!authenticator.authenticate(httpServletRequest)) {
                        //sendUnauthorisedError(servletResponse, "Unauthorised : Provided credentials are not valid.");
                        populateUnauthorisedData(servletResponse, "Invalid request. Request does not contain sufficient credentials to authenticate");
                    } else {
                        // Allow request to flow
                        filterChain.doFilter(servletRequest, servletResponse);
View Full Code Here

                if (userStoreClass == null) {
                    reportError("userstore");
                }

                Authenticator authenticator = createAuthenticator(name, className, enabled, priority, userStoreClass);

                NodeList configurationNodes = node.getChildNodes();

                for (int j = 0; j < configurationNodes.getLength(); ++j) {

                    Node configurationNode = configurationNodes.item(j);

                    if (configurationNode.getNodeType() == Node.ELEMENT_NODE) {

                        if (configurationNode.getNodeName().equals("specificConfigurations")) {
                            authenticator.configure(configurationNode);
                        }
                    }
                }

                if (authenticator.isEnabled()) {
                    authenticatorList.add(authenticator);
                }

                Collections.sort(authenticatorList, new AuthenticatorComparator());
View Full Code Here

            return;
        }

        HttpServletRequest httpServletRequest = (HttpServletRequest) servletRequest;

        Authenticator authenticator = getAuthenticator(httpServletRequest);

        if (authenticator == null) {
            //sendUnauthorisedError(servletResponse, "Invalid request. Request does not contain sufficient credentials to authenticate");
            populateUnauthorisedData(servletResponse, "Invalid request. Request does not contain sufficient credentials to authenticate");
        } else {
            if (authenticator.isAuthenticated(httpServletRequest)) {
                // Allow request to flow
                filterChain.doFilter(servletRequest, servletResponse);
            } else {
                try {
                    if (!authenticator.authenticate(httpServletRequest)) {
                        //sendUnauthorisedError(servletResponse, "Unauthorised : Provided credentials are not valid.");
                        populateUnauthorisedData(servletResponse, "Invalid request. Request does not contain sufficient credentials to authenticate");
                    } else {
                        // Allow request to flow
                        filterChain.doFilter(servletRequest, servletResponse);
View Full Code Here

TOP

Related Classes of org.apache.airavata.security.Authenticator

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.