public class PlaintextPasswordEncoder extends org.springframework.security.authentication.encoding.PlaintextPasswordEncoder implements InternalPasswordEncoder, LdapPasswordEncoder
| Constructor and Description |
|---|
PlaintextPasswordEncoder() |
| Modifier and Type | Method and Description |
|---|---|
String |
getKey()
The key to define this password encoder
|
boolean |
isPasswordValid(String encPass,
String rawPass,
Object salt)
Validates a specified "raw" password against an encoded password.
|
encodePassword, isIgnorePasswordCase, obtainPasswordAndSalt, setIgnorePasswordCasedemergePasswordAndSalt, mergePasswordAndSaltclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitencodePasswordpublic String getKey()
PasswordEncoderpublic boolean isPasswordValid(String encPass, String rawPass, Object salt)
PasswordEncoderValidates a specified "raw" password against an encoded password.
The encoded password should have previously been generated by PasswordEncoder.encodePassword(String,
Object). This method will encode the rawPass (using the optional salt), and then
compared it with the presented encPass.
For a discussion of salts, please refer to PasswordEncoder.encodePassword(String, Object).
isPasswordValid in interface org.springframework.security.authentication.encoding.PasswordEncoderisPasswordValid in class org.springframework.security.authentication.encoding.PlaintextPasswordEncoderencPass - a pre-encoded passwordrawPass - a raw password to encode and compare against the pre-encoded passwordsalt - optionally used by the implementation to "salt" the raw password before encoding. A
null value is legal.Copyright © 2017 Atlassian. All rights reserved.