this.securityConstraint = securityConstraint;
if (securityConstraint.getAuthorizationConstraint() != null){
setAuthConstraint(true);
Enumeration enumeration = securityConstraint
.getAuthorizationConstraint().getSecurityRoles();
SecurityRole securityRole;
while (enumeration.hasMoreElements()){
securityRole = (SecurityRole)enumeration.nextElement();
super.addAuthRole(securityRole.getName());
if ( !securityRole.getName().equals("*")){
webModule.addSecurityRole(securityRole.getName());
}
}
setDisplayName(securityConstraint.getAuthorizationConstraint().getName());
}
if (securityConstraint.getUserDataConstraint() != null){
setUserConstraint(securityConstraint.getUserDataConstraint()
.getTransportGuarantee());
}