@SupportsCredentials(value={UsernamePasswordCredentials.class,Password.class}) public class PasswordCredentialHandler<S extends CredentialStore<?>,V extends UsernamePasswordCredentials,U extends Password> extends AbstractCredentialHandler<S,V,U>
This particular implementation supports the validation of UsernamePasswordCredentials, and updating Password
credentials.
How passwords are encoded can be changed by specifying a configuration option using the PASSWORD_ENCODER. By
default a SHA-512 encoding is performed.
Password are always salted before encoding.
| Modifier and Type | Field and Description |
|---|---|
static String |
PASSWORD_ENCODER
Stores a stateless instance of
PasswordEncoder that should be used to encode passwords. |
| Constructor and Description |
|---|
PasswordCredentialHandler() |
| Modifier and Type | Method and Description |
|---|---|
void |
setup(S store) |
void |
update(IdentityContext context,
Account account,
U password,
S store,
Date effectiveDate,
Date expiryDate) |
void |
validate(IdentityContext context,
V credentials,
S store) |
getAccount, getIdentityManagerpublic static final String PASSWORD_ENCODER
Stores a stateless instance of PasswordEncoder that should be used to encode passwords.
public void setup(S store)
public void validate(IdentityContext context, V credentials, S store)
Copyright © 2013. All Rights Reserved.