Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## 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

Constructor Summary
`PasswordHelper()`

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`

Constructor Detail

### PasswordHelper

    public PasswordHelper()

Method Detail

### 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`

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

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