@Profile(value="!ldap") @Component public class AuthenticationServiceMock extends Object implements AuthenticationService
| Constructor and Description |
|---|
AuthenticationServiceMock(DomainUserRepository userRepository)
Instantiates a new Authentication service mock.
|
| Modifier and Type | Method and Description |
|---|---|
void |
init()
Init.
|
boolean |
passwordMatches(String userName,
String clearPassword)
Checks whether password matches or not.
|
public AuthenticationServiceMock(DomainUserRepository userRepository)
userRepository - the user repository@EventListener(value=org.springframework.boot.context.event.ApplicationReadyEvent.class) public void init()
public boolean passwordMatches(String userName, String clearPassword)
AuthenticationServicepasswordMatches in interface AuthenticationServiceuserName - the user nameclearPassword - the clear passwordtrue if the password matches, otherwise falseCopyright © 2020 bremersee.org. All rights reserved.