Class AdminAuthenticationProvider
- java.lang.Object
-
- com.logicaldoc.core.security.spring.AdminAuthenticationProvider
-
- All Implemented Interfaces:
org.springframework.security.authentication.AuthenticationProvider
public class AdminAuthenticationProvider extends Object implements org.springframework.security.authentication.AuthenticationProvider
This Authentication provider extends the standardLDAuthenticationProviderbut in addition it is able to checks if the provided password matches the context property 'adminpswd' in cases when the database is not available or the max concurrent sessions number is reached.- Since:
- 7.5
- Author:
- Marco Meschieri - LogicalDOC
-
-
Constructor Summary
Constructors Constructor Description AdminAuthenticationProvider()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.springframework.security.core.Authenticationauthenticate(org.springframework.security.core.Authentication authentication)booleansupports(Class<?> arg0)
-
-
-
Method Detail
-
authenticate
public org.springframework.security.core.Authentication authenticate(org.springframework.security.core.Authentication authentication) throws org.springframework.security.core.AuthenticationException- Specified by:
authenticatein interfaceorg.springframework.security.authentication.AuthenticationProvider- Throws:
org.springframework.security.core.AuthenticationException
-
supports
public boolean supports(Class<?> arg0)
- Specified by:
supportsin interfaceorg.springframework.security.authentication.AuthenticationProvider
-
-