Interface SecurityLoggingService


  • public interface SecurityLoggingService
    SecurityLoggingService interface. It is desired to have an audit log that contains records of security/sensitive events. Security/sensitive events that are desired to be captured are i.e. are user login/logoff attempts, creating/modifying/removing users, creating/modifying/removing user roles/permissions, changing configuration settings (/web/setup). Logging these events centrally via the logger of this service, facilitates admins to direct all these records to a separate logging file. Additionally, the services provides user and location information about the user triggering the events.
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      <T> void log​(Class<T> classtolog, String msg)
      Method for passing on logging records to centralized logger.
      <T> void log​(Class<T> classtolog, String msg, javax.servlet.http.HttpServletRequest req)
      Method for passing on logging records to centralized logger.
    • Method Detail

      • log

        <T> void log​(Class<T> classtolog,
                     String msg)
        Method for passing on logging records to centralized logger. Class of method call is passed for context information.
        Parameters:
        classtolog - the class from which the method call was received.
        msg - the message to log.
      • log

        <T> void log​(Class<T> classtolog,
                     String msg,
                     javax.servlet.http.HttpServletRequest req)
        Method for passing on logging records to centralized logger. Request and class of method call are passed for context information.
        Parameters:
        classtolog - the class from which the method call was received.
        msg - the message to log.
        req - the request for logging extra context information.