Package org.apache.tomcat.deployment

Examples of org.apache.tomcat.deployment.SecurityConstraint


  // XXX - descriptor = context.getWebApplicationDescriptor();
  if (descriptor == null)
      return;

  // Is this request URI subject to a security constraint?
  SecurityConstraint constraint = findConstraint(req, descriptor);
  if (constraint == null)
      return;

  // Enforce any user data constraint for this security constraint
  userData(req, res, constraint.getUserDataConstraint());

  // Authenticate based upon the specified login configuration
  authenticate(context, req, res, descriptor.getLoginConfiguration());

  // Perform access control based on the specified role(s)
  accessControl(context, req, res,
          constraint.getAuthorizationConstraint());

    }
View Full Code Here


  if (constraints == null)
      return (null);

  // Check each defined security constraint
  while (constraints.hasMoreElements()) {
      SecurityConstraint constraint =
    (SecurityConstraint) constraints.nextElement();
      Enumeration collections = constraint.getWebResourceCollections();
      while (collections.hasMoreElements()) {
    WebResourceCollection collection =
        (WebResourceCollection) collections.nextElement();
    if (matchCollection(req, collection))
        return (constraint);
View Full Code Here

  // XXX - descriptor = context.getWebApplicationDescriptor();
  if (descriptor == null)
      return;

  // Is this request URI subject to a security constraint?
  SecurityConstraint constraint = findConstraint(req, descriptor);
  if (constraint == null)
      return;

  // Enforce any user data constraint for this security constraint
  userData(req, res, constraint.getUserDataConstraint());

  // Authenticate based upon the specified login configuration
  authenticate(context, req, res, descriptor.getLoginConfiguration());

  // Perform access control based on the specified role(s)
  accessControl(context, req, res,
          constraint.getAuthorizationConstraint());

    }
View Full Code Here

  if (constraints == null)
      return (null);

  // Check each defined security constraint
  while (constraints.hasMoreElements()) {
      SecurityConstraint constraint =
    (SecurityConstraint) constraints.nextElement();
      Enumeration collections = constraint.getWebResourceCollections();
      while (collections.hasMoreElements()) {
    WebResourceCollection collection =
        (WebResourceCollection) collections.nextElement();
    if (matchCollection(req, collection))
        return (constraint);
View Full Code Here

  // XXX - descriptor = context.getWebApplicationDescriptor();
  if (descriptor == null)
      return;

  // Is this request URI subject to a security constraint?
  SecurityConstraint constraint = findConstraint(req, descriptor);
  if (constraint == null)
      return;

  // Enforce any user data constraint for this security constraint
  userData(req, res, constraint.getUserDataConstraint());

  // Authenticate based upon the specified login configuration
  authenticate(context, req, res, descriptor.getLoginConfiguration());

  // Perform access control based on the specified role(s)
  accessControl(context, req, res,
          constraint.getAuthorizationConstraint());

    }
View Full Code Here

  if (constraints == null)
      return (null);

  // Check each defined security constraint
  while (constraints.hasMoreElements()) {
      SecurityConstraint constraint =
    (SecurityConstraint) constraints.nextElement();
      Enumeration collections = constraint.getWebResourceCollections();
      while (collections.hasMoreElements()) {
    WebResourceCollection collection =
        (WebResourceCollection) collections.nextElement();
    if (matchCollection(req, collection))
        return (constraint);
View Full Code Here

TOP

Related Classes of org.apache.tomcat.deployment.SecurityConstraint

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.