Class CAMSAuthorizer

java.lang.Object
thredds.servlet.restrict.TomcatAuthorizer
thredds.servlet.restrict.CAMSAuthorizer
All Implemented Interfaces:
Authorizer

public class CAMSAuthorizer extends TomcatAuthorizer
CAMS authorizarion.
  • Constructor Details

    • CAMSAuthorizer

      public CAMSAuthorizer()
  • Method Details

    • authorize

      public boolean authorize(jakarta.servlet.http.HttpServletRequest req, jakarta.servlet.http.HttpServletResponse res, String role) throws IOException
      Description copied from interface: Authorizer
      Decide is this request is authorized in the named role. This method must be thread-safe.
      Specified by:
      authorize in interface Authorizer
      Overrides:
      authorize in class TomcatAuthorizer
      Parameters:
      req - the request
      res - the response
      role - need this role
      Returns:
      true if user is authenticated. if false, must set res.setStatus().
      Throws:
      IOException - I/O error, eg network
    • doGet

      public void doGet(jakarta.servlet.http.HttpServletRequest req, jakarta.servlet.http.HttpServletResponse res) throws jakarta.servlet.ServletException, IOException
      Description copied from interface: Authorizer
      Process this request. May be a no-op.
      Specified by:
      doGet in interface Authorizer
      Overrides:
      doGet in class TomcatAuthorizer
      Parameters:
      req - the request
      res - the response
      Throws:
      jakarta.servlet.ServletException - other errors
      IOException - I/O error, eg network