Package org.apache.geronimo.web.info

Examples of org.apache.geronimo.web.info.AuthConstraintInfo


        }

        for (SecurityConstraint securityConstraint : webApp.getSecurityConstraint()) {
            SecurityConstraintInfo securityConstraintInfo = webAppInfoFactory.newSecurityConstraintInfo();
            if (securityConstraint.getAuthConstraint() != null) {
                securityConstraintInfo.authConstraint = new AuthConstraintInfo();
                securityConstraintInfo.authConstraint.roleNames.addAll(securityConstraint.getAuthConstraint().getRoleName());
            }
            if (securityConstraint.getUserDataConstraint() != null) {
                securityConstraintInfo.userDataConstraint = securityConstraint.getUserDataConstraint().getTransportGuarantee().value();
            }
View Full Code Here


            securityConstraint.webResourceCollections.add(webResourceCollection);
            if (transportGuarantee.equals(TransportGuarantee.CONFIDENTIAL)) {
                securityConstraint.userDataConstraint = TransportGuarantee.CONFIDENTIAL.name();
            }
            if (emptyRoleSemantic.equals(ServletSecurity.EmptyRoleSemantic.DENY)) {
                securityConstraint.authConstraint = new AuthConstraintInfo();
            } else if (rolesAllowed.length > 0) {
                //When rolesAllowed.length == 0 and emptyRoleSemantic.equals(ServletSecurity.EmptyRoleSemantic.PERMIT), no need to create the AuthConstraint object, as it means deny all
                AuthConstraintInfo authConstraint = new AuthConstraintInfo();
                for (String roleAllowed : rolesAllowed) {
                    authConstraint.roleNames.add(roleAllowed);
                }
                securityConstraint.authConstraint = authConstraint;
            }
View Full Code Here

TOP

Related Classes of org.apache.geronimo.web.info.AuthConstraintInfo

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.