package jas2.jds.security;
import java.awt.Component;
import java.io.Serializable;
import java.util.Hashtable;
/**
* Concrete PasswordHandler class should extend this class and
* collect all required security information
* (like password, username, etc.), do encoding and return encoded Object.
* In many cases encoded Object is a String or byte[]
* Client Framework provides hash entry "clientUser", filled with System.getProperty("user.name")
* when the _FIRST_ PasswordRequiredException in the current "Reconnect" sequence is received
* PasswordHandler implementation can redefine "clientUser" entry as well as define any other
* entries in this hash. Hash is re-initialized at the beginning of every "Reconnect" sequence.
*/
public interface PasswordHandler extends Serializable
{
public Object getPasswordInfo(Component parent, Hashtable hash);
}
Ads help maintain this website.