@SupportsCredentials(value={org.picketlink.idm.credential.UsernamePasswordCredentials.class,org.picketlink.idm.credential.Password.class})
public class PasswordCredentialHandler
extends Object
implements org.picketlink.idm.credential.spi.CredentialHandler
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(org.picketlink.idm.spi.IdentityStore<?> identityStore) |
void |
update(org.picketlink.idm.spi.SecurityContext context,
org.picketlink.idm.model.Agent agent,
Object credential,
org.picketlink.idm.spi.IdentityStore<?> identityStore,
Date effectiveDate,
Date expiryDate) |
void |
validate(org.picketlink.idm.spi.SecurityContext context,
org.picketlink.idm.credential.Credentials credentials,
org.picketlink.idm.spi.IdentityStore<?> identityStore) |
public static final String PASSWORD_ENCODER
Stores a stateless instance of PasswordEncoder that should be used to encode passwords.
public void setup(org.picketlink.idm.spi.IdentityStore<?> identityStore)
setup in interface org.picketlink.idm.credential.spi.CredentialHandlerpublic void validate(org.picketlink.idm.spi.SecurityContext context,
org.picketlink.idm.credential.Credentials credentials,
org.picketlink.idm.spi.IdentityStore<?> identityStore)
validate in interface org.picketlink.idm.credential.spi.CredentialHandlerpublic void update(org.picketlink.idm.spi.SecurityContext context,
org.picketlink.idm.model.Agent agent,
Object credential,
org.picketlink.idm.spi.IdentityStore<?> identityStore,
Date effectiveDate,
Date expiryDate)
update in interface org.picketlink.idm.credential.spi.CredentialHandlerCopyright © 2013. All Rights Reserved.