Interface Constraint


public interface Constraint
A Security constraint that is applied to a request, which contain:
  • A name
  • Authorization to specify if authentication is needed and what roles are applicable
  • An optional list of role names used for Constraint.Authorization.KNOWN_ROLE
  • A Transport constraint, indicating if it must be secure or not.

The core constraint is not the same as the servlet specification AuthConstraint, but it is sufficiently capable to represent servlet constraints.