ehsbe CommonsTM
Version 1.1.0rc3

com.ehsbe.commons.gui.util
Class PreferencePasswordStore

java.lang.Object
  extended by org.jdesktop.swingx.auth.PasswordStore
      extended by com.ehsbe.commons.gui.util.PreferencePasswordStore

public class PreferencePasswordStore
extends org.jdesktop.swingx.auth.PasswordStore

A simple alternative to store passwords. This is a very trivial store and the password is easy to decrypt. So usually one should avoid using this store for password storing. However, since people do not want always to type in there password, no matter, what security impact it has, this class is provided for customer satisfaction ...

Version:
$Revision: 432 $
Author:
Jens Elkner

Constructor Summary
PreferencePasswordStore()
          Default constructor.
 
Method Summary
 char[] get(String username, String server)
          
 Class<?> getAppClassForPreferences()
           
 void removeUserPassword(String username)
          
 boolean set(String username, String server, char[] password)
          
 void setAppClassForPreferences(Class<?> appClassForPreferences)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PreferencePasswordStore

public PreferencePasswordStore()
Default constructor.

Method Detail

set

public boolean set(String username,
                   String server,
                   char[] password)

Specified by:
set in class org.jdesktop.swingx.auth.PasswordStore

get

public char[] get(String username,
                  String server)

Specified by:
get in class org.jdesktop.swingx.auth.PasswordStore

getAppClassForPreferences

public Class<?> getAppClassForPreferences()
Returns:
Returns the appNameForPreferences.

setAppClassForPreferences

public void setAppClassForPreferences(Class<?> appClassForPreferences)
Parameters:
appClassForPreferences - The appNameForPreferences to set.

removeUserPassword

public void removeUserPassword(String username)

Specified by:
removeUserPassword in class org.jdesktop.swingx.auth.PasswordStore

ehsbe CommonsTM
Version 1.1.0rc3

Copyright ©2005-2009 EHSBE, Walther-Rathenau-Str. 58, 39104 Magdeburg, Sachsen-Anhalt, Germany. All Rights Reserved.