/** Copy constructor.*/ public SecurityConstraintImpl(SecurityConstraintImpl other) { if (other.webResourceCollections != null) { this.webResourceCollections = new HashSet<WebResourceCollection>(); for (WebResourceCollection wrc : other.webResourceCollections) { webResourceCollections.add(new WebResourceCollectionImpl((WebResourceCollectionImpl)wrc)); } } if (other.authorizationConstraint != null) { this.authorizationConstraint = new AuthorizationConstraintImpl((AuthorizationConstraintImpl) other.authorizationConstraint); } if (other.userDataConstraint != null) { this.userDataConstraint = new UserDataConstraintImpl(); this.userDataConstraint.setTransportGuarantee(other.userDataConstraint.getTransportGuarantee()); } }
ac = new AuthorizationConstraintImpl(); for (String roleName : rolesAllowed) { Role role = new Role(roleName); ac = new AuthorizationConstraintImpl();
ac = new AuthorizationConstraintImpl(); for (String roleName : sc.getAuthConstraint()) { Role role = new Role(roleName); ac = new AuthorizationConstraintImpl();