8215916: The failure reason of an optional JAAS LoginModule is not logged

Reviewed-by: weijun
This commit is contained in:
Jayashree Huttanagoudar 2022-08-24 15:47:12 +00:00 committed by Weijun Wang
parent 71ab5c95af
commit 3c2289d651
2 changed files with 80 additions and 2 deletions

View file

@ -875,9 +875,10 @@ public class LoginContext {
firstRequiredError = le;
} else {
if (debug != null)
if (debug != null) {
debug.println(name + " " + methodName + " OPTIONAL failure");
le.printStackTrace();
}
// mark down that an OPTIONAL module failed
if (firstError == null)