- if (subject.getPrincipals(Authentication.class).size() == 1) {
- registerAuthentication(subject.getPrincipals(Authentication.class)
- .iterator().next());
- return super.login();
- } else if (subject.getPrincipals(Authentication.class).size() > 1) {
- throw new LoginException(
- "Multiple Authentication principals not supported: "
- + subject.getPrincipals(Authentication.class));
- } else {
+// if (getSubject().getPrincipals(Authentication.class).size() == 1) {
+// registerAuthentication(getSubject()
+// .getPrincipals(Authentication.class).iterator().next());
+// return super.login();
+// } else if (getSubject().getPrincipals(Authentication.class).size() > 1) {
+// throw new LoginException(
+// "Multiple Authentication principals not supported: "
+// + getSubject().getPrincipals(Authentication.class));
+// } else {