public class MD4PasswordEncoderImpl extends net.sf.acegisecurity.providers.encoding.BaseDigestPasswordEncoder implements MD4PasswordEncoder
MD4 implementation of PasswordEncoder.
If a null
password is presented, it will be treated as an
empty String
("") password.
As MD4 is a one-way hash, the salt can contain any characters.
Constructor and Description |
---|
MD4PasswordEncoderImpl() |
Modifier and Type | Method and Description |
---|---|
byte[] |
decodeHash(String encodedHash)
Get the MD4 byte array
|
String |
encodePassword(String rawPass,
Object salt) |
boolean |
isPasswordValid(String encPass,
String rawPass,
Object salt) |
getEncodeHashAsBase64, setEncodeHashAsBase64
public boolean isPasswordValid(String encPass, String rawPass, Object salt)
isPasswordValid
in interface net.sf.acegisecurity.providers.encoding.PasswordEncoder
public String encodePassword(String rawPass, Object salt)
encodePassword
in interface net.sf.acegisecurity.providers.encoding.PasswordEncoder
public byte[] decodeHash(String encodedHash)
MD4PasswordEncoder
decodeHash
in interface MD4PasswordEncoder
encodedHash
- StringCopyright © 2005–2017 Alfresco Software. All rights reserved.