private void auditEventSafAuthDetails ( Object [ ] methodParams ) { // Getting object array which have audit fields Object [ ] varargs = ( Object [ ] ) methodParams [ 1 ] ; // Get audit fields and convert them to respective type int safReturnCode = ( Integer ) varargs [ 0 ] ; int racfReturnCode = ( Integer ) varargs [ 1 ] ; int racfReasonCode = ( Integer ) varargs [ 2 ] ; String userSecurityName = ( String ) varargs [ 3 ] ; String safProfile = ( String ) varargs [ 4 ] ; String safClass = ( String ) varargs [ 5 ] ; Boolean authDecision = ( Boolean ) varargs [ 6 ] ; String principalName = ( String ) varargs [ 7 ] ; String applid = ( String ) varargs [ 8 ] ; if ( auditServiceRef . getService ( ) != null && auditServiceRef . getService ( ) . isAuditRequired ( AuditConstants . SECURITY_SAF_AUTHZ_DETAILS , AuditConstants . SUCCESS ) ) { // Create audit event SAFAuthorizationDetailsEvent safAuthDetails = new SAFAuthorizationDetailsEvent ( safReturnCode , racfReturnCode , racfReasonCode , userSecurityName , applid , safProfile , safClass , authDecision , principalName ) ; auditServiceRef . getService ( ) . sendEvent ( safAuthDetails ) ; } }
Handles audit event for SECURITY_SAF_AUTH_DETAILS