public class SdbDecrypt extends Object
Constructor and Description |
---|
SdbDecrypt() |
Modifier and Type | Method and Description |
---|---|
String |
decryptPasswd(String encryptPasswd)
decrypt encrypted password
|
String |
decryptPasswd(String encryptPasswd,
String token)
decrypt encrypted password
|
SdbDecryptUserInfo |
parseCipherFile(String user,
File passwdFile)
parse cipher file, get the specify user's password.
|
SdbDecryptUserInfo |
parseCipherFile(String user,
String token,
File passwdFile)
parse cipher file, get the specify user's password.
|
public String decryptPasswd(String encryptPasswd)
encryptPasswd
- the encrypted passwordBaseException
- when parse failedpublic String decryptPasswd(String encryptPasswd, String token)
encryptPasswd
- the encrypted passwordtoken
- password encryption tokenBaseException
- when parse failedpublic SdbDecryptUserInfo parseCipherFile(String user, File passwdFile)
user
- the user's namepasswdFile
- the password's fileBaseException
- when parse failedpublic SdbDecryptUserInfo parseCipherFile(String user, String token, File passwdFile)
user
- the user's nametoken
- password encryption tokenpasswdFile
- the password's fileBaseException
- when parse failedCopyright © 2023. All rights reserved.