Interface Auditor


  • public interface Auditor
    Defines interface of classes which implement audit functionality.

    An Auditor class can be registered with a Context and will receive notification of all auditable events processed by the Authenticator of that context.

    IASRI 4823322

    Version:
    $Revision: 1.2 $
    Author:
    Jyri J. Virkki
    • Method Detail

      • authentication

        void authentication​(String user,
                            String realm,
                            boolean success)
        Notify auditor of an authentication event.

        This method will get invoked on every login attempt whether it was approved or denied by the authentication infrastructure.

        Parameters:
        user - the user for whom authentication was processed
        realm - the realm which handled the authentication
        success - true if the authentication succeeded, false if denied
      • webInvocation

        void webInvocation​(HttpRequest req,
                           boolean success)
        Notify auditor of a servlet container invocation.

        This method will get invoked on every request whether it was permitted or not by the authorization infrastructure.

        Parameters:
        req - the HttpRequest
        success - true if the invocation was allowed, false if denied.