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 September 24 2010 by mbb using Apache Ant version 1.7.1 compiled on June 27 2008 and Java version 1.6.0_20 from Sun Microsystems Inc. on Linux i386 2.6.24-28-generic