About Question enthuware.jwpv6.2.666 :
Posted: Sat Nov 03, 2012 1:55 pm
Second choice is syntactycally incorrect, and not because of EmptyRoleSemantic.DENY cannot be used when rolesAllowed is not empty as stated now in explanation. I can only assume it meant to be
(note, that rolesAllowed attribute belongs to HttpConstraint, not to ServletSecurity), then the explanation fits.
Code: Select all
@ServletSecurity(@HttpConstraint(EmptyRoleSemantic.DENY), rolesAllowed = "R1")
Code: Select all
@ServletSecurity(@HttpConstraint(value = EmptyRoleSemantic.DENY, rolesAllowed = "R1"))