Class HybridOpenNMSUserAuthenticationProvider
- java.lang.Object
-
- org.opennms.web.springframework.security.HybridOpenNMSUserAuthenticationProvider
-
- All Implemented Interfaces:
org.springframework.beans.factory.InitializingBean
,org.springframework.security.authentication.AuthenticationProvider
public class HybridOpenNMSUserAuthenticationProvider extends java.lang.Object implements org.springframework.security.authentication.AuthenticationProvider, org.springframework.beans.factory.InitializingBean
-
-
Constructor Summary
Constructors Constructor Description HybridOpenNMSUserAuthenticationProvider()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
afterPropertiesSet()
org.springframework.security.core.Authentication
authenticate(org.springframework.security.core.Authentication authentication)
protected void
checkUserPassword(java.lang.String authUsername, java.lang.String authPassword, SpringSecurityUser user)
SpringSecurityUserDao
getUserDao()
UserManager
getUserManager()
void
setUserDao(SpringSecurityUserDao userDao)
void
setUserManager(UserManager userManager)
boolean
supports(java.lang.Class<?> authentication)
-
-
-
Method Detail
-
afterPropertiesSet
public void afterPropertiesSet() throws java.lang.Exception
- Specified by:
afterPropertiesSet
in interfaceorg.springframework.beans.factory.InitializingBean
- Throws:
java.lang.Exception
-
getUserManager
public UserManager getUserManager()
-
setUserManager
public void setUserManager(UserManager userManager)
-
getUserDao
public SpringSecurityUserDao getUserDao()
-
setUserDao
public void setUserDao(SpringSecurityUserDao userDao)
-
authenticate
public org.springframework.security.core.Authentication authenticate(org.springframework.security.core.Authentication authentication) throws org.springframework.security.core.AuthenticationException
- Specified by:
authenticate
in interfaceorg.springframework.security.authentication.AuthenticationProvider
- Throws:
org.springframework.security.core.AuthenticationException
-
checkUserPassword
protected void checkUserPassword(java.lang.String authUsername, java.lang.String authPassword, SpringSecurityUser user) throws org.springframework.security.core.AuthenticationException
- Throws:
org.springframework.security.core.AuthenticationException
-
supports
public boolean supports(java.lang.Class<?> authentication)
- Specified by:
supports
in interfaceorg.springframework.security.authentication.AuthenticationProvider
-
-