public class SHASaltedPasswordEncoder extends Object implements org.picketlink.idm.password.PasswordEncoder
PasswordEncoder that uses SHA to created a salted hash the password. Passwords are returned with a Base64 encoding.
The provided password is salted before the encoding. The salt is stored as an user's attribute with name
PASSWORD_SALT_USER_ATTRIBUTE.
| Constructor and Description |
|---|
SHASaltedPasswordEncoder(int strength) |
public String encodePassword(String salt, String rawPassword)
encodePassword in interface org.picketlink.idm.password.PasswordEncoderprotected final MessageDigest getMessageDigest() throws IllegalArgumentException
IllegalArgumentExceptionCopyright © 2013. All Rights Reserved.