/**
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
*
* Copyright (c) 2005 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: SessionService.java,v 1.37 2010/02/03 03:52:54 bina Exp $
*
* Portions Copyrighted 2010-2016 ForgeRock AS.
*/
/**
* Responsible for logging Session events to the audit logs amSSO.access and amSSO.error.
*
* @since 13.0.0
*/
private volatile LogMessageProvider logProvider = null; // lazily initialized via double-checked locking
public SessionLogging(
this.sessionDebug = sessionDebug;
this.serviceConfig = serviceConfig;
this.adminTokenAction = adminTokenAction;
}
}
/**
* Log the event based on the values contained in the SessionInfo
*
* @param sessionInfo SessionInfo
* @param eventType event type.
*/
switch (eventType) {
case SESSION_CREATION:
break;
case IDLE_TIMEOUT:
break;
case MAX_TIMEOUT:
break;
case LOGOUT:
break;
case DESTROY:
break;
case PROPERTY_CHANGED:
break;
case QUOTA_EXHAUSTED:
break;
case PROTECTED_PROPERTY:
break;
default:
}
}
try {
uidData = "N/A";
} else {
}
}
}
// TODO: Establish if this really needs to be lazily initialized
// a final field that can be dependency injected would be preferable
synchronized (this) {
}
}
}
return logger;
}
// TODO: Establish if this really needs to be lazily initialized
// a final field that can be dependency injected would be preferable
if (errorLogger == null) {
synchronized (this) {
if (errorLogger == null) {
}
}
}
return errorLogger;
}
// TODO: Establish if this really needs to be lazily initialized
// a final field that can be dependency injected would be preferable
if (logProvider == null) {
synchronized (this) {
if (logProvider == null) {
}
}
}
return logProvider;
}
}