import javax.security.auth.spi.LoginModule;
public class BasicLoginModule implements LoginModule {
public boolean abort() {
return true;
}
<BUG>public boolean commit() {
if (getPrincipal() != null) {

getSubject().getPrincipals().add(getPrincipal());
</BUG>
return true;

import javax.security.auth.spi.LoginModule;
public class BasicLoginModule implements LoginModule {
public boolean abort() {
return true;
