if (pathMappings != null) ConstraintSecurityHandler.createConstraint(registration.getName(), servletSecurityElement);
/** * Create a Constraint * * @param name the name * @param element the http constraint element * @return the created constraint */ public static Constraint createConstraint (String name, HttpConstraintElement element) { return createConstraint(name, element.getRolesAllowed(), element.getEmptyRoleSemantic(), element.getTransportGuarantee()); }
/** * Create a security constraint * * @param name the name of the constraint * @param authenticate true to authenticate * @param roles list of roles * @param dataConstraint the data constraint * @return the constraint */ public static Constraint createConstraint (String name, boolean authenticate, String[] roles, int dataConstraint) { Constraint constraint = createConstraint(); if (name != null) constraint.setName(name); constraint.setAuthenticate(authenticate); constraint.setRoles(roles); constraint.setDataConstraint(dataConstraint); return constraint; }
securityElement.getTransportGuarantee() != TransportGuarantee.NONE) httpConstraint = ConstraintSecurityHandler.createConstraint(name, securityElement); Constraint methodConstraint = ConstraintSecurityHandler.createConstraint(name, methodConstraintElement); ConstraintMapping mapping = new ConstraintMapping(); mapping.setConstraint(methodConstraint);
/** * Make a jetty Constraint object, which represents the <auth-constraint> and * <user-data-constraint> elements, based on the security annotation. * @param servlet * @param rolesAllowed * @param permitOrDeny * @param transport * @return */ protected Constraint makeConstraint (Class servlet, String[] rolesAllowed, EmptyRoleSemantic permitOrDeny, TransportGuarantee transport) { return ConstraintSecurityHandler.createConstraint(servlet.getName(), rolesAllowed, permitOrDeny, transport); }
/** * Make a jetty Constraint object, which represents the <code><auth-constraint></code> and * <code><user-data-constraint></code> elements, based on the security annotation. * * @param servlet the servlet * @param rolesAllowed the roles allowed * @param permitOrDeny the role / permission semantic * @param transport the transport guarantee * @return the constraint */ protected Constraint makeConstraint (Class servlet, String[] rolesAllowed, EmptyRoleSemantic permitOrDeny, TransportGuarantee transport) { return ConstraintSecurityHandler.createConstraint(servlet.getName(), rolesAllowed, permitOrDeny, transport); }
/** * Make a jetty Constraint object, which represents the <auth-constraint> and * <user-data-constraint> elements, based on the security annotation. * @param servlet * @param rolesAllowed * @param permitOrDeny * @param transport * @return */ protected Constraint makeConstraint (Class servlet, String[] rolesAllowed, EmptyRoleSemantic permitOrDeny, TransportGuarantee transport) { return ConstraintSecurityHandler.createConstraint(servlet.getName(), rolesAllowed, permitOrDeny, transport); }
/** * Make a jetty Constraint object, which represents the <auth-constraint> and * <user-data-constraint> elements, based on the security annotation. * @param servlet * @param rolesAllowed * @param permitOrDeny * @param transport * @return */ protected Constraint makeConstraint (Class servlet, String[] rolesAllowed, EmptyRoleSemantic permitOrDeny, TransportGuarantee transport) { return ConstraintSecurityHandler.createConstraint(servlet.getName(), rolesAllowed, permitOrDeny, transport); }
Constraint constraint = createConstraint();
/** * Create a Constraint * * @param name the name * @param element the http constraint element * @return the created constraint */ public static Constraint createConstraint (String name, HttpConstraintElement element) { return createConstraint(name, element.getRolesAllowed(), element.getEmptyRoleSemantic(), element.getTransportGuarantee()); }
/** * @param name * @param element * @return */ public static Constraint createConstraint (String name, HttpConstraintElement element) { return createConstraint(name, element.getRolesAllowed(), element.getEmptyRoleSemantic(), element.getTransportGuarantee()); }
/** * @param name * @param element * @return */ public static Constraint createConstraint (String name, HttpConstraintElement element) { return createConstraint(name, element.getRolesAllowed(), element.getEmptyRoleSemantic(), element.getTransportGuarantee()); }
/** * @param name * @param element */ public static Constraint createConstraint (String name, HttpConstraintElement element) { return createConstraint(name, element.getRolesAllowed(), element.getEmptyRoleSemantic(), element.getTransportGuarantee()); }
/** * @param name * @param element * @return */ public static Constraint createConstraint (String name, HttpConstraintElement element) { return createConstraint(name, element.getRolesAllowed(), element.getEmptyRoleSemantic(), element.getTransportGuarantee()); }
/** * @param name * @param element * @return */ public static Constraint createConstraint (String name, HttpConstraintElement element) { return createConstraint(name, element.getRolesAllowed(), element.getEmptyRoleSemantic(), element.getTransportGuarantee()); }
/** * @param name * @param element * @return */ public static Constraint createConstraint (String name, HttpConstraintElement element) { return createConstraint(name, element.getRolesAllowed(), element.getEmptyRoleSemantic(), element.getTransportGuarantee()); }
/** * Create a Constraint * * @param name the name * @param element the http constraint element * @return the created constraint */ public static Constraint createConstraint (String name, HttpConstraintElement element) { return createConstraint(name, element.getRolesAllowed(), element.getEmptyRoleSemantic(), element.getTransportGuarantee()); }
/** * @param name * @param element * @return */ public static Constraint createConstraint (String name, HttpConstraintElement element) { return createConstraint(name, element.getRolesAllowed(), element.getEmptyRoleSemantic(), element.getTransportGuarantee()); }
/** * Create a security constraint * * @param name * @param authenticate * @param roles * @param dataConstraint * @return */ public static Constraint createConstraint (String name, boolean authenticate, String[] roles, int dataConstraint) { Constraint constraint = createConstraint(); if (name != null) constraint.setName(name); constraint.setAuthenticate(authenticate); constraint.setRoles(roles); constraint.setDataConstraint(dataConstraint); return constraint; }
/** * Create a security constraint * * @param name * @param authenticate * @param roles * @param dataConstraint */ public static Constraint createConstraint (String name, boolean authenticate, String[] roles, int dataConstraint) { Constraint constraint = createConstraint(); if (name != null) constraint.setName(name); constraint.setAuthenticate(authenticate); constraint.setRoles(roles); constraint.setDataConstraint(dataConstraint); return constraint; }