
public class WaarpPassword extends Object
| Constructor and Description |
|---|
WaarpPassword() |
| Modifier and Type | Method and Description |
|---|---|
void |
createNewKey()
Create a new Key but do not save it on file
|
String |
getClearPassword() |
String |
getCryptedPassword() |
File |
getKeyFile() |
File |
getPasswordFile() |
boolean |
keyReady() |
void |
loadKey(File file) |
static boolean |
loadOptions(String[] args) |
void |
loadPasswordFile()
Load the crypted password from the file
|
static void |
main(String[] args) |
void |
saveKey(File file) |
void |
savePasswordFile()
Save the Crypted Paswword to the File
|
void |
setClearPassword(String passwd)
Set the new password and its crypted value
|
void |
setCryptedPassword(String cryptedPassword) |
void |
setPasswordFile(File passwordFile) |
public static boolean loadOptions(String[] args)
public final void createNewKey()
throws Exception
Exceptionpublic final void loadKey(File file) throws CryptoException
file - source fileCryptoExceptionpublic final void saveKey(File file) throws CryptoException
file - destination file, if null previously set file is usedCryptoExceptionpublic final boolean keyReady()
public final File getKeyFile()
public final void setClearPassword(String passwd) throws Exception
passwd - Exceptionpublic final File getPasswordFile()
public final void setPasswordFile(File passwordFile)
passwordFile - the passwordFile to setIOExceptionpublic final void savePasswordFile()
throws IOException
IOExceptionpublic final void loadPasswordFile()
throws Exception
Exceptionpublic final String getCryptedPassword()
public final void setCryptedPassword(String cryptedPassword) throws Exception
cryptedPassword - the cryptedPassword to setExceptionpublic final String getClearPassword()
Copyright © 2009–2022 Waarp. All rights reserved.