if (!(_currentRealm instanceof SolarisRealm)) {
String msg = sm.getString("solarislm.badrealm");
throw new LoginException(msg);
}
SolarisRealm solarisRealm = (SolarisRealm)_currentRealm;
// A solaris user must have a name not null so check here.
if ( (_username == null) || (_username.length() == 0) ) {
String msg = sm.getString("solarislm.nulluser");
throw new LoginException(msg);
}
String[] grpList = solarisRealm.authenticate(_username, getPasswordChar());
if (grpList == null) { // JAAS behavior
String msg = sm.getString("solarislm.loginfail", _username);
throw new LoginException(msg);
}