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
Exception
public final void loadKey(File file) throws CryptoException
file
- source fileCryptoException
public final void saveKey(File file) throws CryptoException
file
- destination file, if null previously set file is usedCryptoException
public final boolean keyReady()
public final File getKeyFile()
public final void setClearPassword(String passwd) throws Exception
passwd
- Exception
public final File getPasswordFile()
public final void setPasswordFile(File passwordFile)
passwordFile
- the passwordFile to setIOException
public final void savePasswordFile() throws IOException
IOException
public final void loadPasswordFile() throws Exception
Exception
public final String getCryptedPassword()
public final void setCryptedPassword(String cryptedPassword) throws Exception
cryptedPassword
- the cryptedPassword to setException
public final String getClearPassword()
Copyright © 2009–2022 Waarp. All rights reserved.