LogRecWrite.java revision 6b6359cabb99ffbe7c788604a533d5686c20e515
/**
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
*
* Copyright (c) 2006 Sun Microsystems Inc. All Rights Reserved
*
* The contents of this file are subject to the terms
* of the Common Development and Distribution License
* (the License). You may not use this file except in
* compliance with the License.
*
* You can obtain a copy of the License at
* See the License for the specific language governing
* permission and limitations under the License.
*
* When distributing Covered Code, include this CDDL
* Header Notice in each file and include the License file
* at opensso/legal/CDDLv1.0.txt.
* If applicable, add the following below the CDDL Header,
* with the fields enclosed by brackets [] replaced by
* your own identifying information:
* "Portions Copyrighted [year] [name of copyright owner]"
*
* $Id: LogRecWrite.java,v 1.6 2009/06/19 02:33:29 bigfatrat Exp $
*
* Portions Copyrighted 2011-2015 ForgeRock AS
* Portions Copyrighted 2013 Nomura Research Institute, Ltd
*/
/**
* This class implements <code>ParseOutput</code> interface and <code>
* LogOperation</code> interface. It is parsing request and process the request.
* log record. This class is registered with the SAX parser.
*/
private static final String EVALUATION_REALM = "org.forgerock.openam.agents.config.policy.evaluation.realm";
/**
* Return result of the request processing in <code>Response</code>
* @return result of the request processing in <code>Response</code>
*/
public Response execute(AuditEventPublisher auditEventPublisher, AuditEventFactory auditEventFactory) {
if (MonitoringUtil.isRunning()) {
}
if (Debug.messageEnabled()) {
}
Object [] parameters =
try {
} catch(RuntimeException ex){
// if message is not base64 encoded just ignore &
// write msg as it is.
if (Debug.messageEnabled()) {
}
}
if (logInfoMap != null) {
try {
} catch (SSOException e) {
if (Debug.warningEnabled()) {
}
}
if (loginIDToken != null){
// here fill up logInfo into the newlr
// now take one be one values from logInfoMap and overwrite
// any populated value from sso token.
while (i.hasNext()) {
try {
value));
} catch(RuntimeException ex){
// if message is not base64 encoded just
// ignore & write msg as it is.
if (Debug.messageEnabled()) {
"LogRecWrite: data is not "
+ "base64 encoded");
}
}
}
}
}
}
} else {
}
}
try {
}
if (MonitoringUtil.isRunning()) {
}
// Log file record write okay and return OK
if (MonitoringUtil.isRunning()) {
}
return res;
}
private void auditAccessMessage(AuditEventPublisher auditEventPublisher, AuditEventFactory auditEventFactory,
return;
}
if (logExtracts == null) {
// A message type of no interest
return;
}
@SuppressWarnings("unchecked")
}
Map<String, List<String>> queryParameters = AMAuditEventBuilderUtils.getQueryParametersAsMap(queryString);
.toEvent();
}
/**
* The method that implements the ParseOutput interface. This is called
* by the SAX parser.
* @param name name of request
* @param elems vaector has parsing elements
* @param atts parsing attributes
* @param pcdata given data to be parsed.
*/
}
}
} //end of LogRecWrite