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 class
AuthenticationService.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.String
getClientIP(javax.servlet.http.HttpServletRequest request)
boolean
isIPBlocked(java.lang.String key)
void
loginFailed(java.lang.String key)
void
loginSucceeded(java.lang.String key)
void
onApplicationEvent(org.springframework.security.core.session.SessionDestroyedEvent event)
void
onAuthenticationFailure(org.springframework.security.authentication.event.AuthenticationFailureBadCredentialsEvent event)
void
onAuthenticationSuccess(org.springframework.security.authentication.event.AuthenticationSuccessEvent event)
protected void
resolveImpersonatorOnLogin(java.lang.Object principal)
protected void
resolveImpersonatorOnLogout(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:
onApplicationEvent
in interfaceorg.springframework.context.ApplicationListener<org.springframework.security.core.session.SessionDestroyedEvent>
-
loginSucceeded
public void loginSucceeded(java.lang.String key)
- Specified by:
loginSucceeded
in interfaceIAuthenticationService
-
loginFailed
public void loginFailed(java.lang.String key)
- Specified by:
loginFailed
in interfaceIAuthenticationService
-
isIPBlocked
public boolean isIPBlocked(java.lang.String key)
- Specified by:
isIPBlocked
in interfaceIAuthenticationService
-
resolveImpersonatorOnLogin
protected void resolveImpersonatorOnLogin(java.lang.Object principal)
-
resolveImpersonatorOnLogout
protected void resolveImpersonatorOnLogout(java.lang.Object principal)
-
-