GenericSaltedPasswordEncoder introduction and because MD5 is not considered to
be safe anymore. It delegates salt-related logic handling to
SaltEncodingPolicy bean@Deprecated public class SaltedMD5PasswordEncoder extends MD5PasswordEncoder
getSystemSpecificSalt()generateUserSpecificSalt(String)| Constructor and Description |
|---|
SaltedMD5PasswordEncoder()
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
check(java.lang.String encoded,
java.lang.String password)
Deprecated.
|
boolean |
check(java.lang.String uid,
java.lang.String encoded,
java.lang.String password)
Deprecated.
Calculates the hash of 'plain' and compare it with the value of 'encoded'.
|
java.lang.String |
decode(java.lang.String encoded)
Deprecated.
Decode the given
encoded password. |
java.lang.String |
encode(java.lang.String password)
Deprecated.
Unsupported method call! You have to use
encode(String, String ). |
java.lang.String |
encode(java.lang.String uid,
java.lang.String password)
Deprecated.
This implementation will build a string with the following pattern
The value for SYSTEM_SPECIFC_SALT will be generated by getSystemSpecificSalt()The Value for USER_SPECIFIC_SALT will be generated by generateUserSpecificSalt(String)... |
protected java.lang.String |
generateUserSpecificSalt(java.lang.String uid)
Deprecated.
This implementation will still return the assigned user id.
|
java.lang.String |
getSalt()
Deprecated.
Returns the configured SALT (see core-spring-xml).
|
protected java.lang.String |
getSystemSpecificSalt()
Deprecated.
This implementation will still return the value of the corresponding spring property or advanced.properties
parameter 'password.md5.salt'.
|
void |
setSalt(java.lang.String salt)
Deprecated.
|
void |
setSaltEncodingPolicy(SaltEncodingPolicy saltEncodingPolicy)
Deprecated.
|
calculateMD5public java.lang.String encode(java.lang.String password)
encode(String, String ).JaloSystemException - Unsupported method call! You have to use encode(String, String )public java.lang.String encode(java.lang.String uid,
java.lang.String password)
getSystemSpecificSalt()generateUserSpecificSalt(String)encode in interface PasswordEncoderencode in class MD5PasswordEncoderuid - the user idpassword - the user passwordSaltedMD5PasswordEncoder,
PlainTextPasswordEncoderpublic boolean check(java.lang.String encoded,
java.lang.String password)
public boolean check(java.lang.String uid,
java.lang.String encoded,
java.lang.String password)
check in interface PasswordEncodercheck in class MD5PasswordEncoderuid - will be use for 'salt' generation (values will be salted in the following way: [SYSTEM_SPECIFIC_SALT] +
[PASSWORD] + [USER_SPECIFC_SALT])generateUserSpecificSalt(String).encoded - could be 'null'password - could be 'null'MD5PasswordEncoder.check(java.lang.String, java.lang.String,
java.lang.String)public final java.lang.String decode(java.lang.String encoded)
throws EJBCannotDecodePasswordException
PasswordEncoderencoded password. Throws exception if this is not possible.decode in interface PasswordEncoderdecode in class MD5PasswordEncoderencoded - the encoded passwordEJBCannotDecodePasswordException - if the password cannot be decoded. (MD5 passwords cannot be decoded)MD5PasswordEncoderprotected java.lang.String generateUserSpecificSalt(java.lang.String uid)
uid - the suer idprotected java.lang.String getSystemSpecificSalt()
public java.lang.String getSalt()
public void setSalt(java.lang.String salt)
public void setSaltEncodingPolicy(SaltEncodingPolicy saltEncodingPolicy)
Copyright © 2018 SAP SE. All Rights Reserved.