net.sf.borg.ui.util
Class PasswordHelper
java.lang.Object
net.sf.borg.ui.util.PasswordHelper
public class PasswordHelper
- extends Object
PasswordHelper provides logic to prompt for an encryption password and cache
the password for a given amount of time
|
Method Summary |
String |
getPassword()
returns the cached password or prompts the user to enter one if none
exists or the current one is expired |
static PasswordHelper |
getReference()
get a reference to the singleton PasswordHelper |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PasswordHelper
public PasswordHelper()
getReference
public static PasswordHelper getReference()
- get a reference to the singleton PasswordHelper
- Returns:
- the PasswordHelper singleton
getPassword
public String getPassword()
throws Exception
- returns the cached password or prompts the user to enter one if none
exists or the current one is expired
- Returns:
- the password
- Throws:
Exception
Generated December 30 2011 by mbb using Apache Ant(TM) version 1.8.2 compiled on December 20 2010 and Java version 1.6.0_30 from Sun Microsystems Inc. on Linux i386 3.0.0-14-generic-pae