Package com.maker.passwordmaker
Class PasswordMakerUtil
java.lang.Object
com.maker.passwordmaker.PasswordMakerUtil
Utility class for password encoding and matching.
- Since:
- 2024. 6. 3.
- Author:
- yongjunhong
-
Method Summary
Modifier and TypeMethodDescriptionstatic String
encodingPassword
(String password, EncodingId encodingId) Encodes the given password using the specified encoding ID.static boolean
matchPasswordMaker
(String password, String encodedPassword) Matches the given password with the encoded password.
-
Method Details
-
encodingPassword
Encodes the given password using the specified encoding ID.- Parameters:
password
- the password to encodeencodingId
- the encoding ID to use for encoding the password- Returns:
- the encoded password
-
matchPasswordMaker
Matches the given password with the encoded password.- Parameters:
password
- the password to matchencodedPassword
- the encoded password to match with- Returns:
- true if the password matches the encoded password, false otherwise
-