Package hec.io
Class PasswordFile
java.lang.Object
hec.io.PasswordFile
- All Implemented Interfaces:
AutoCloseable
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
void
close()
boolean
int
return a Vector with a list of PasswordFileEntries for this password file.protected boolean
static void
void
print()
protected boolean
readFile()
format of the file is# comments v1.0 first non comment line is the version identifier:encrypted username and password identifier:encrypted username and password identifier:encrypted username and password identifier:encrypted username and password
boolean
boolean
-
Constructor Details
-
PasswordFile
- Throws:
IOException
-
-
Method Details
-
close
public void close()- Specified by:
close
in interfaceAutoCloseable
-
readFile
protected boolean readFile()format of the file is# comments v1.0 first non comment line is the version identifier:encrypted username and password identifier:encrypted username and password identifier:encrypted username and password identifier:encrypted username and password
- Returns:
-
writeFile
public boolean writeFile() -
isComment
-
getEntries
return a Vector with a list of PasswordFileEntries for this password file. The first element in the Vector is the Version number of this file- Returns:
-
print
public void print() -
add
-
replace
-
delete
-
findEntry
-
getVersion
-
getEntry
-
main
-