question: public void auditModuleFailure ( LoginState loginState , Principal principal , AuthenticationAuditEntry auditEntryDetail ) { String realm = getRealmFromState ( loginState ) ; if ( eventPublisher . isAuditing ( realm , AUTHENTICATION_TOPIC , AM_LOGIN_MODULE_COMPLETED ) ) { String principalName = principal == null ? null : principal . getName ( ) ; Map sharedState = loginState == null ? emptyMap ( ) : loginState . getSharedState ( ) ; String authId = getUserId ( principalName , realm ) ; if ( ( isEmpty ( principalName ) || isEmpty ( authId ) ) && sharedState . containsKey ( SHARED_STATE_USERNAME ) ) { principalName = ( String ) sharedState . get ( SHARED_STATE_USERNAME ) ; authId = getUserId ( principalName , realm ) ; } auditModuleEvent ( loginState , realm , principalName , authId , FAILED , auditEntryDetail ) ; } }
target:  Log an authentication module failure completion event.