@Configurable public class UsernamePasswordAuthenticationProvider extends Object implements AuthenticationProvider
Modifier and Type | Field and Description |
---|---|
protected String |
adminPassword |
protected String |
adminPasswordAlgorithm |
protected String |
adminUser |
protected String |
anonymousKey |
protected String |
anonymousUser |
protected AuthDataAccessor |
dataAccessor |
protected static Encryptor |
ENCRYPTOR |
protected static org.slf4j.Logger |
LOG |
protected UserProvisioningManager |
provisioningManager |
Constructor and Description |
---|
UsernamePasswordAuthenticationProvider() |
Modifier and Type | Method and Description |
---|---|
Authentication |
authenticate(Authentication authentication) |
void |
setAdminPassword(String adminPassword) |
void |
setAdminPasswordAlgorithm(String adminPasswordAlgorithm) |
void |
setAnonymousKey(String anonymousKey) |
boolean |
supports(Class<? extends Object> type) |
protected static final org.slf4j.Logger LOG
protected static final Encryptor ENCRYPTOR
@Autowired protected AuthDataAccessor dataAccessor
@Autowired protected UserProvisioningManager provisioningManager
protected String adminUser
protected String adminPassword
protected String adminPasswordAlgorithm
protected String anonymousUser
protected String anonymousKey
public UsernamePasswordAuthenticationProvider()
public void setAdminPassword(String adminPassword)
adminPassword
- the adminPassword to setpublic void setAdminPasswordAlgorithm(String adminPasswordAlgorithm)
adminPasswordAlgorithm
- the adminPasswordAlgorithm to setpublic void setAnonymousKey(String anonymousKey)
anonymousKey
- the anonymousKey to setpublic Authentication authenticate(Authentication authentication)
authenticate
in interface AuthenticationProvider
public boolean supports(Class<? extends Object> type)
supports
in interface AuthenticationProvider
Copyright © 2010–2023 The Apache Software Foundation. All rights reserved.