Class ShogunCoreAuthenticationProvider
- java.lang.Object
-
- de.terrestris.shoguncore.security.ShogunCoreAuthenticationProvider
-
- All Implemented Interfaces:
org.springframework.security.authentication.AuthenticationProvider
public class ShogunCoreAuthenticationProvider extends Object implements org.springframework.security.authentication.AuthenticationProvider
- Author:
- Nils Bühner
-
-
Constructor Summary
Constructors Constructor Description ShogunCoreAuthenticationProvider()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.springframework.security.core.Authenticationauthenticate(org.springframework.security.core.Authentication authentication)This method has to beTransactionalto allow that associated entities can be fetched lazily.org.springframework.security.crypto.password.PasswordEncodergetPasswordEncoder()voidsetPasswordEncoder(org.springframework.security.crypto.password.PasswordEncoder passwordEncoder)booleansupports(Class<?> authentication)
-
-
-
Method Detail
-
authenticate
@Transactional(value="transactionManager", readOnly=true) public org.springframework.security.core.Authentication authenticate(org.springframework.security.core.Authentication authentication) throws org.springframework.security.core.AuthenticationExceptionThis method has to beTransactionalto allow that associated entities can be fetched lazily.- Specified by:
authenticatein interfaceorg.springframework.security.authentication.AuthenticationProvider- Throws:
org.springframework.security.core.AuthenticationException- See Also:
AuthenticationProvider.authenticate(org.springframework.security.core.Authentication)
-
supports
public boolean supports(Class<?> authentication)
- Specified by:
supportsin interfaceorg.springframework.security.authentication.AuthenticationProvider- See Also:
(java.lang.Class)
-
getPasswordEncoder
public org.springframework.security.crypto.password.PasswordEncoder getPasswordEncoder()
- Returns:
- the passwordEncoder
-
setPasswordEncoder
public void setPasswordEncoder(org.springframework.security.crypto.password.PasswordEncoder passwordEncoder)
- Parameters:
passwordEncoder- the passwordEncoder to set
-
-