if (log.isDebugEnabled())
log.debug(sm.getString("jaasRealm.loginContextCreated", principalName));
// Return the appropriate Principal for this authenticated
// Subject
JAASTomcatPrincipal jaasPrincipal = new JAASTomcatPrincipal(principalName);
jaasPrincipal.setSubject(subject);
return (jaasPrincipal);
} else {
if (log.isDebugEnabled())
log.debug("Login Failed - null userID");