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