Uses of Interface
org.eclipse.jetty.security.Constraint
Package
Description
Jetty Security : Modular Support for Security in Jetty
-
Uses of Constraint in org.eclipse.jetty.ee10.servlet.security
Modifier and TypeMethodDescriptionprotected Constraint
ConstraintSecurityHandler.combineServletConstraints
(Constraint constraintA, Constraint constraintB) Combine constrains as per the servlet specification.static Constraint
ConstraintSecurityHandler.createConstraint
(String name, jakarta.servlet.HttpConstraintElement element) Create a Constraintstatic Constraint
ConstraintSecurityHandler.createConstraint
(String name, String[] rolesAllowed, jakarta.servlet.annotation.ServletSecurity.EmptyRoleSemantic permitOrDeny, jakarta.servlet.annotation.ServletSecurity.TransportGuarantee transport) Create ConstraintConstraintMapping.getConstraint()
protected Constraint
ConstraintSecurityHandler.getConstraint
(String pathInContext, Request request) Modifier and TypeMethodDescriptionprotected Constraint
ConstraintSecurityHandler.combineServletConstraints
(Constraint constraintA, Constraint constraintB) Combine constrains as per the servlet specification.void
ConstraintMapping.setConstraint
(Constraint constraint) Modifier and TypeMethodDescriptionprotected boolean
ConstraintSecurityHandler.omissionsExist
(Map<String, Constraint> methodMappings) Check if any http method omissions exist in the list of method to auth info mappings.protected void
ConstraintSecurityHandler.processConstraintMappingWithMethodOmissions
(ConstraintMapping mapping, Map<String, Constraint> mappings) Constraints that name method omissions are dealt with differently. -
Uses of Constraint in org.eclipse.jetty.security
Modifier and TypeFieldDescriptionstatic final Constraint
Constraint.ALLOWED
A static Constraint that hasConstraint.Authorization.ALLOWED
andConstraint.Transport.INHERIT
.static final Constraint
Constraint.ALLOWED_ANY_TRANSPORT
A static Constraint that hasConstraint.Authorization.ALLOWED
andConstraint.Transport.ANY
.static final Constraint
Constraint.ANY_TRANSPORT
A static Constraint that hasConstraint.Transport.ANY
andConstraint.Authorization.INHERIT
static final Constraint
Constraint.ANY_USER
A static Constraint that hasConstraint.Authorization.ANY_USER
andConstraint.Transport.INHERIT
.static final Constraint
Constraint.FORBIDDEN
A static Constraint that hasConstraint.Authorization.FORBIDDEN
andConstraint.Transport.INHERIT
.static final Constraint
Constraint.KNOWN_ROLE
A static Constraint that hasConstraint.Authorization.KNOWN_ROLE
andConstraint.Transport.INHERIT
.static final Constraint
Constraint.SECURE_TRANSPORT
A static Constraint that hasConstraint.Transport.SECURE
andConstraint.Authorization.INHERIT
Modifier and TypeMethodDescriptionConstraint.Builder.build()
static Constraint
Constraint.combine
(String name, Constraint leastSpecific, Constraint mostSpecific) Combine two Constraints by:static Constraint
Constraint.combine
(Constraint leastSpecific, Constraint mostSpecific) Combine two Constraints by usingcombine(String, Constraint, Constraint)
with a generated name.static Constraint
static Constraint
Constraint.from
(String name, Constraint.Authorization authorization, String... roles) static Constraint
Constraint.from
(String name, Constraint.Transport transport) static Constraint
Constraint.from
(String name, Constraint.Transport transport, Constraint.Authorization authorization, Set<String> roles) static Constraint
Constraint.from
(Constraint.Transport transport, Constraint.Authorization authorization, Set<String> roles) protected abstract Constraint
SecurityHandler.getConstraint
(String pathInContext, Request request) protected Constraint
SecurityHandler.PathMapped.getConstraint
(String pathInContext, Request request) SecurityHandler.PathMapped.put
(String pathSpec, Constraint constraint) SecurityHandler.PathMapped.put
(PathSpec pathSpec, Constraint constraint) Modifier and TypeMethodDescriptionstatic Constraint
Constraint.combine
(String name, Constraint leastSpecific, Constraint mostSpecific) Combine two Constraints by:static Constraint
Constraint.combine
(Constraint leastSpecific, Constraint mostSpecific) Combine two Constraints by usingcombine(String, Constraint, Constraint)
with a generated name.protected boolean
SecurityHandler.isAuthorized
(Constraint constraint, AuthenticationState authenticationState) SecurityHandler.PathMapped.put
(String pathSpec, Constraint constraint) SecurityHandler.PathMapped.put
(PathSpec pathSpec, Constraint constraint)