Top Methods
org.eclipse.jetty.ee10.servlet.security

public Interface ConstraintAware

Known Direct Implementers
org.eclipse.jetty.ee10.servlet.security.ConstraintSecurityHandler
Imports
java.util.List, .Set

Method Summary

Modifier and TypeMethod and Description
public void
addConstraintMapping(ConstraintMapping
the mapping
mapping
)

Add a Constraint Mapping.

public void
addKnownRole(String
the role
role
)

Add a Role definition.

public boolean

Returns:

true if urls with uncovered http methods
checkPathsWithUncoveredHttpMethods
()

See Servlet Spec 31, sec 13.8.4, pg 145 Container must check if there are urls with uncovered http methods

public List<ConstraintMapping>
public Set<String>
public boolean
public void
setConstraintMappings(List<ConstraintMapping>
the mappings
constraintMappings
,
Set<String>
the roles
roles
)

Set Constraint Mappings and roles.

public void
setDenyUncoveredHttpMethods(boolean
true for denied method access
deny
)

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

addConstraintMappingback to summary
public void addConstraintMapping(ConstraintMapping mapping)

Add a Constraint Mapping. May be called for running webapplication as an annotated servlet is instantiated.

Parameters
mapping:ConstraintMapping

the mapping

addKnownRoleback to summary
public void addKnownRole(String role)

Add a Role definition. May be called on running webapplication as an annotated servlet is instantiated.

Parameters
role:String

the role

checkPathsWithUncoveredHttpMethodsback to summary
public boolean checkPathsWithUncoveredHttpMethods()

See Servlet Spec 31, sec 13.8.4, pg 145 Container must check if there are urls with uncovered http methods

Returns:boolean

true if urls with uncovered http methods

getConstraintMappingsback to summary
public List<ConstraintMapping> getConstraintMappings()
getKnownRolesback to summary
public Set<String> getKnownRoles()
isDenyUncoveredHttpMethodsback to summary
public boolean isDenyUncoveredHttpMethods()
setConstraintMappingsback to summary
public void setConstraintMappings(List<ConstraintMapping> constraintMappings, Set<String> roles)

Set Constraint Mappings and roles. Can only be called during initialization.

Parameters
constraintMappings:List<ConstraintMapping>

the mappings

roles:Set<String>

the roles

setDenyUncoveredHttpMethodsback to summary
public void setDenyUncoveredHttpMethods(boolean deny)

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:boolean

true for denied method access