Package org.eclipse.jetty.security
Interface ConstraintAware
-
- All Known Implementing Classes:
ConstraintSecurityHandler
@Deprecated(since="2021-05-27") public interface ConstraintAware
Deprecated.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description void
addConstraintMapping(ConstraintMapping mapping)
Deprecated.Add a Constraint Mapping.void
addRole(java.lang.String role)
Deprecated.Add a Role definition.boolean
checkPathsWithUncoveredHttpMethods()
Deprecated.See Servlet Spec 31, sec 13.8.4, pg 145 Container must check if there are urls with uncovered http methodsjava.util.List<ConstraintMapping>
getConstraintMappings()
Deprecated.java.util.Set<java.lang.String>
getRoles()
Deprecated.boolean
isDenyUncoveredHttpMethods()
Deprecated.void
setConstraintMappings(java.util.List<ConstraintMapping> constraintMappings, java.util.Set<java.lang.String> roles)
Deprecated.Set Constraint Mappings and roles.void
setDenyUncoveredHttpMethods(boolean deny)
Deprecated.See Servlet Spec 31, sec 13.8.4, pg 145 When true, requests with http methods not explicitly covered either by inclusion or omissions in constraints, will have access denied.
-
-
-
Method Detail
-
getConstraintMappings
java.util.List<ConstraintMapping> getConstraintMappings()
Deprecated.
-
getRoles
java.util.Set<java.lang.String> getRoles()
Deprecated.
-
setConstraintMappings
void setConstraintMappings(java.util.List<ConstraintMapping> constraintMappings, java.util.Set<java.lang.String> roles)
Deprecated.Set Constraint Mappings and roles. Can only be called during initialization.- Parameters:
constraintMappings
- the mappingsroles
- the roles
-
addConstraintMapping
void addConstraintMapping(ConstraintMapping mapping)
Deprecated.Add a Constraint Mapping. May be called for running webapplication as an annotated servlet is instantiated.- Parameters:
mapping
- the mapping
-
addRole
void addRole(java.lang.String role)
Deprecated.Add a Role definition. May be called on running webapplication as an annotated servlet is instantiated.- Parameters:
role
- the role
-
setDenyUncoveredHttpMethods
void setDenyUncoveredHttpMethods(boolean deny)
Deprecated.See Servlet Spec 31, sec 13.8.4, pg 145 When true, requests with http methods not explicitly covered either by inclusion or omissions in constraints, will have access denied.- Parameters:
deny
- true for denied method access
-
isDenyUncoveredHttpMethods
boolean isDenyUncoveredHttpMethods()
Deprecated.
-
checkPathsWithUncoveredHttpMethods
boolean checkPathsWithUncoveredHttpMethods()
Deprecated.See Servlet Spec 31, sec 13.8.4, pg 145 Container must check if there are urls with uncovered http methods- Returns:
- true if urls with uncovered http methods
-
-