Class LoginModuleMonitorImpl

    • Constructor Detail

      • LoginModuleMonitorImpl

        public LoginModuleMonitorImpl​(@NotNull
                                      @NotNull StatisticsProvider statisticsProvider)
    • Method Detail

      • loginFailed

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

        public void principalsCollected​(long timeTakenNanos,
                                        int numberOfPrincipals)
        Description copied from interface: LoginModuleMonitor
        Record the time taken to collect the given number of principals during the commit phase of a given LoginModule.
        Specified by:
        principalsCollected in interface LoginModuleMonitor
        Parameters:
        timeTakenNanos - The time in nanoseconds
        numberOfPrincipals - The number of principals that were collected.