throw new ExpiredLoginModuleException();
}
Subject subject = context.getSubject();
ContextManager.registerSubject(subject);
SubjectId id = ContextManager.getSubjectId(subject);
IdentificationPrincipal principal = new IdentificationPrincipal(id);
subject.getPrincipals().add(principal);
SecurityRealm realm = getRealm(context.getRealmName());
if (realm.isRestrictPrincipalsToServer()) {
return new Principal[]{principal};