Interface LoginModuleMonitor

    • Method Summary

      All Methods Instance Methods Abstract Methods Default Methods 
      Modifier and Type Method Description
      default @NotNull java.lang.Class<LoginModuleMonitor> getMonitorClass()  
      default @NotNull java.util.Map<java.lang.Object,​java.lang.Object> getMonitorProperties()  
      void loginError()
      Event to be called in the case there is an error in the login chain.
      default void loginFailed​(@NotNull javax.security.auth.login.LoginException loginException, @Nullable javax.jcr.Credentials credentials)
      Marks a failed login attempt for the given Credentials that resulted in the given LoginException.
      default void principalsCollected​(long timeTakenNanos, int numberOfPrincipals)
      Record the time taken to collect the given number of principals during the commit phase of a given LoginModule.
    • Method Detail

      • loginError

        void loginError()
        Event to be called in the case there is an error in the login chain. This is not covering failed logins, but actual operational errors that probably need to be investigated. Any triggered event should have a corresponding error logged to make this investigation possible.
        See Also:
        loginFailed(LoginException, Credentials)
      • loginFailed

        default void loginFailed​(@NotNull
                                 @NotNull javax.security.auth.login.LoginException loginException,
                                 @Nullable
                                 @Nullable javax.jcr.Credentials credentials)
        Marks a failed login attempt for the given Credentials that resulted in the given LoginException.
        Parameters:
        loginException - The LoginException raised by the failed login attempt.
        credentials - The credentials used for login.
      • principalsCollected

        default void principalsCollected​(long timeTakenNanos,
                                         int numberOfPrincipals)
        Record the time taken to collect the given number of principals during the commit phase of a given LoginModule.
        Parameters:
        timeTakenNanos - The time in nanoseconds
        numberOfPrincipals - The number of principals that were collected.