Package org.glassfish.web.deployment.descriptor

Examples of org.glassfish.web.deployment.descriptor.SecurityConstraintImpl


      int noSc = 0;
      // get the errorpage's in this .war
      for (Enumeration e = descriptor.getSecurityConstraints() ; e.hasMoreElements() ;) {
    foundIt = false;
                noSc++;
    SecurityConstraintImpl securityConstraintImpl = (SecurityConstraintImpl) e.nextElement();
    UserDataConstraintImpl userDataConstraint = (UserDataConstraintImpl) securityConstraintImpl.getUserDataConstraint();
    if (userDataConstraint != null) {
                    String transportGuarantee = userDataConstraint.getTransportGuarantee();
        if (transportGuarantee.length() > 0) {
            if ((transportGuarantee.equals("NONE")) ||
          (transportGuarantee.equals("INTEGRAL")) ||
View Full Code Here


            // get the security constraint's in this .war
            for (Enumeration e = descriptor.getSecurityConstraints(); e.hasMoreElements();)
            {
                foundIt = false;
                noSc++;
                SecurityConstraintImpl securityConstraintImpl = (SecurityConstraintImpl) e.nextElement();
                if (!securityConstraintImpl.getWebResourceCollections().isEmpty())
                {
                    for (WebResourceCollection webResCollection: securityConstraintImpl.getWebResourceCollections())
                    {
                        String webRCName = webResCollection.getName();
                        // cannot be blank
                        if (webRCName.length() > 0)
                        {
View Full Code Here

            int noSc = 0;
      // get the security role name's in this .war
      for (Enumeration e = descriptor.getSecurityConstraints() ; e.hasMoreElements() ;) {
    foundIt = false;
                noSc++;
    SecurityConstraintImpl securityConstraintImpl = (SecurityConstraintImpl)
        e.nextElement();
    AuthorizationConstraintImpl aci = (AuthorizationConstraintImpl) securityConstraintImpl.getAuthorizationConstraint();
    if (aci != null) {
                    noAci++;
                    if (aci.getSecurityRoles().hasMoreElements()) {
      for (Enumeration ee = aci.getSecurityRoles(); ee.hasMoreElements();) {
          SecurityRoleDescriptor srd = (SecurityRoleDescriptor) ee.nextElement();
View Full Code Here

            // get the http method's in this .war
            for (Enumeration e = descriptor.getSecurityConstraints(); e.hasMoreElements();)
            {
                foundIt = false;
                noSc++;
                SecurityConstraintImpl securityConstraintImpl = (SecurityConstraintImpl) e.nextElement();
                if (!securityConstraintImpl.getWebResourceCollections().isEmpty())
                {
                    for (WebResourceCollection webResourceCollection : securityConstraintImpl.getWebResourceCollections())
                    {
                        noWRC++;
                        if (!webResourceCollection.getHttpMethods().isEmpty())
                        {
                            for (String webRCHTTPMethod : webResourceCollection.getHttpMethods())
View Full Code Here

TOP

Related Classes of org.glassfish.web.deployment.descriptor.SecurityConstraintImpl

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.