Class AuthenticationService

  • All Implemented Interfaces:
    IAuthenticationService, java.util.EventListener, org.springframework.context.ApplicationListener<org.springframework.security.core.session.SessionDestroyedEvent>

    @Service
    public class AuthenticationService
    extends java.lang.Object
    implements IAuthenticationService, org.springframework.context.ApplicationListener<org.springframework.security.core.session.SessionDestroyedEvent>
    • Constructor Detail

      • AuthenticationService

        public AuthenticationService()
    • Method Detail

      • getClientIP

        public static java.lang.String getClientIP​(javax.servlet.http.HttpServletRequest request)
      • onAuthenticationFailure

        @EventListener
        public void onAuthenticationFailure​(org.springframework.security.authentication.event.AuthenticationFailureBadCredentialsEvent event)
      • onAuthenticationSuccess

        @EventListener
        public void onAuthenticationSuccess​(org.springframework.security.authentication.event.AuthenticationSuccessEvent event)
      • onApplicationEvent

        public void onApplicationEvent​(org.springframework.security.core.session.SessionDestroyedEvent event)
        Specified by:
        onApplicationEvent in interface org.springframework.context.ApplicationListener<org.springframework.security.core.session.SessionDestroyedEvent>
      • resolveImpersonatorOnLogin

        protected void resolveImpersonatorOnLogin​(java.lang.Object principal)
      • resolveImpersonatorOnLogout

        protected void resolveImpersonatorOnLogout​(java.lang.Object principal)