AnnotationIntrospector.IntrospectableAnnotationHandlerpublic class ServletSecurityAnnotationHandler extends AnnotationIntrospector.AbstractIntrospectableAnnotationHandler
@ServletSecurity annotation on it,
setting up the <security-constraint>s.
A servlet can be defined in:
| Constructor | Description |
|---|---|
ServletSecurityAnnotationHandler(org.eclipse.jetty.webapp.WebAppContext wac) |
| Modifier and Type | Method | Description |
|---|---|---|
protected boolean |
constraintsExist(java.util.List<org.eclipse.jetty.servlet.ServletMapping> servletMappings,
java.util.List<org.eclipse.jetty.security.ConstraintMapping> constraintMappings) |
Check if there are already
<security-constraint> elements defined that match the url-patterns for
the servlet. |
void |
doHandle(java.lang.Class clazz) |
|
protected java.util.List<org.eclipse.jetty.servlet.ServletMapping> |
getServletMappings(java.lang.String className) |
Get the ServletMappings for the servlet's class.
|
protected org.eclipse.jetty.util.security.Constraint |
makeConstraint(java.lang.Class servlet,
java.lang.String[] rolesAllowed,
ServletSecurity.EmptyRoleSemantic permitOrDeny,
ServletSecurity.TransportGuarantee transport) |
Make a jetty Constraint object, which represents the
<auth-constraint> and
<user-data-constraint> elements, based on the security annotation. |
handlepublic ServletSecurityAnnotationHandler(org.eclipse.jetty.webapp.WebAppContext wac)
public void doHandle(java.lang.Class clazz)
protected org.eclipse.jetty.util.security.Constraint makeConstraint(java.lang.Class servlet,
java.lang.String[] rolesAllowed,
ServletSecurity.EmptyRoleSemantic permitOrDeny,
ServletSecurity.TransportGuarantee transport)
<auth-constraint> and
<user-data-constraint> elements, based on the security annotation.servlet - the servletrolesAllowed - the roles allowedpermitOrDeny - the role / permission semantictransport - the transport guaranteeprotected java.util.List<org.eclipse.jetty.servlet.ServletMapping> getServletMappings(java.lang.String className)
className - the class nameprotected boolean constraintsExist(java.util.List<org.eclipse.jetty.servlet.ServletMapping> servletMappings,
java.util.List<org.eclipse.jetty.security.ConstraintMapping> constraintMappings)
<security-constraint> elements defined that match the url-patterns for
the servlet.servletMappings - the servlet mappingsconstraintMappings - the constraint mappingsCopyright © 1995–2018 Webtide. All rights reserved.