public void auditModuleSuccess(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();
    String authId=getUserId(principalName,realm);
    auditModuleEvent(loginState,realm,principalName,authId,SUCCESSFUL,auditEntryDetail);
  }
}

public void auditModuleSuccess ( 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 ( ) ; String authId = getUserId ( principalName , realm ) ; auditModuleEvent ( loginState , realm , principalName , authId , SUCCESSFUL , auditEntryDetail ) ; } }
log an authentication module successful completion event .
