Class AuthenticationService
- java.lang.Object
-
- com.netgrif.application.engine.configuration.security.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>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description classAuthenticationService.Attempt
-
Constructor Summary
Constructors Constructor Description AuthenticationService()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static java.lang.StringgetClientIP(javax.servlet.http.HttpServletRequest request)booleanisIPBlocked(java.lang.String key)voidloginFailed(java.lang.String key)voidloginSucceeded(java.lang.String key)voidonApplicationEvent(org.springframework.security.core.session.SessionDestroyedEvent event)voidonAuthenticationFailure(org.springframework.security.authentication.event.AuthenticationFailureBadCredentialsEvent event)voidonAuthenticationSuccess(org.springframework.security.authentication.event.AuthenticationSuccessEvent event)protected voidresolveImpersonatorOnLogin(java.lang.Object principal)protected voidresolveImpersonatorOnLogout(java.lang.Object principal)
-
-
-
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:
onApplicationEventin interfaceorg.springframework.context.ApplicationListener<org.springframework.security.core.session.SessionDestroyedEvent>
-
loginSucceeded
public void loginSucceeded(java.lang.String key)
- Specified by:
loginSucceededin interfaceIAuthenticationService
-
loginFailed
public void loginFailed(java.lang.String key)
- Specified by:
loginFailedin interfaceIAuthenticationService
-
isIPBlocked
public boolean isIPBlocked(java.lang.String key)
- Specified by:
isIPBlockedin interfaceIAuthenticationService
-
resolveImpersonatorOnLogin
protected void resolveImpersonatorOnLogin(java.lang.Object principal)
-
resolveImpersonatorOnLogout
protected void resolveImpersonatorOnLogout(java.lang.Object principal)
-
-