Class SecurityListener

    • Constructor Detail

      • SecurityListener

        public SecurityListener()
    • Method Detail

      • authenticated2

        protected void authenticated2​(@NonNull
                                      org.springframework.security.core.userdetails.UserDetails details)
        Fired when a user was successfully authenticated using credentials. It could be password or any other credentials. This might be via the web UI, or via REST (using API token or Basic), or CLI (remoting, auth, ssh) or any other way plugins can propose.
        Parameters:
        details - details of the newly authenticated user, such as name and groups.
        Since:
        2.266
      • failedToAuthenticate

        protected void failedToAuthenticate​(@NonNull
                                            String username)
        Fired when a user tried to authenticate but failed. In case the authentication method uses multiple layers to validate the credentials, we do fire this event only when even the last layer failed to authenticate.
        Parameters:
        username - the user
        See Also:
        authenticated2(org.springframework.security.core.userdetails.UserDetails)
      • userCreated

        protected void userCreated​(@NonNull
                                   String username)
        Parameters:
        username - the user
        Since:
        2.161 Fired after a new user account has been created and saved to disk.
      • loggedOut

        protected void loggedOut​(@NonNull
                                 String username)
        Fired when a user logs out.
        Parameters:
        username - the user
      • fireAuthenticated2

        public static void fireAuthenticated2​(@NonNull
                                              org.springframework.security.core.userdetails.UserDetails details)
        Since:
        2.266
      • fireUserCreated

        public static void fireUserCreated​(@NonNull
                                           String username)
        Since:
        2.161
      • fireFailedToAuthenticate

        public static void fireFailedToAuthenticate​(@NonNull
                                                    String username)
        Since:
        1.569
      • fireLoggedIn

        public static void fireLoggedIn​(@NonNull
                                        String username)
        Since:
        1.569
      • fireFailedToLogIn

        public static void fireFailedToLogIn​(@NonNull
                                             String username)
        Since:
        1.569
      • fireLoggedOut

        public static void fireLoggedOut​(@NonNull
                                         String username)
        Since:
        1.569