@SupportsCredentials(value={org.picketlink.idm.credential.UsernamePasswordCredentials.class,org.picketlink.idm.credential.Password.class})
public class PasswordCredentialHandler<S extends org.picketlink.idm.spi.CredentialStore<?>,V extends org.picketlink.idm.credential.UsernamePasswordCredentials,U extends org.picketlink.idm.credential.Password>
extends Object
implements org.picketlink.idm.credential.spi.CredentialHandler<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(org.picketlink.idm.spi.SecurityContext context,
org.picketlink.idm.model.Agent agent,
U password,
S store,
Date effectiveDate,
Date expiryDate) |
void |
validate(org.picketlink.idm.spi.SecurityContext context,
V credentials,
S store) |
public 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(org.picketlink.idm.spi.SecurityContext context,
V credentials,
S store)
Copyright © 2013. All Rights Reserved.