Package org.glassfish.web.deployment.descriptor

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


      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();
          String roleName = srd.getName();
          // jsb, nothing to test here...?
          if (roleName.length() > 0) {
        foundIt = true;
View Full Code Here


     * @return the descriptor instance to associate with this XMLNode
     */
    @Override
    public AuthorizationConstraintImpl getDescriptor() {
        if (descriptor==null) {
            descriptor = new AuthorizationConstraintImpl();
        }
        return descriptor;
    }
View Full Code Here

TOP

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

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.