rs = statement.executeQuery();
if (rs.next()) {
final String pwd = rs.getString(1);
if (!PRE_HASHED.equalsIgnoreCase(getProperty(PARAM_ENCODING))) {
return new Password() {
public byte[] getValue() {
return pwd.getBytes();
}
public int getType() {
return Password.PLAIN_TEXT;
}
};
} else {
return new Password() {
public byte[] getValue() {
return pwd.getBytes();
}