public interface Encoder
Modifier and Type | Method and Description |
---|---|
String |
encode(String rawPassword)
Encode the raw password.
|
boolean |
matches(String rawPassword,
String encodedPassword)
Verify the encoded password obtained from storage matches the submitted raw
password after it too is encoded.
|
String encode(String rawPassword)
rawPassword
- 需要加密的内容boolean matches(String rawPassword, String encodedPassword)
rawPassword
- the raw password to encode and matchencodedPassword
- the encoded password from storage to compare withCopyright © 2021. All rights reserved.