Interface HasDynamicAuthorization

All Known Implementing Classes:
HttpServletBase

public interface HasDynamicAuthorization
Optional interface implemented by HttpServlets which need to dynamically determine what AuthorizationConstraint is required for a request.
Author:
cdivilly
  • Field Details

  • Method Details

    • getConstraint

      AuthorizationConstraint getConstraint(javax.servlet.http.HttpServletRequest request) throws javax.servlet.ServletException, IOException
      Determine the AuthorizationConstraint that applies to a resource.
      Parameters:
      request - an HttpServletRequest object that contains the request the client has made of the servlet
      Returns:
      AuthorizationConstraint instance if a constraint applies to the request. null if no constraint applies to the request. USE_DEFAULT_CONSTRAINTS if this method cannot determine what constraint applies to the request, and therefore the runtime's default AuthorizationConstraint discovery logic will be applied to the request.
      Throws:
      IOException - if an input or output error is detected when the servlet determines the AuthorizationConstraint
      javax.servlet.ServletException - if the request for the dynamic privilege could not be handled