Search in sources :

Example 1 with ELogRecord

use of com.sun.identity.entitlement.log.ELogRecord in project OpenAM by OpenRock.

the class OpenSSOLogger method getERecord.

private static ELogRecord getERecord(LogRecord rec) {
    SSOToken adminSSOToken = (SSOToken) AccessController.doPrivileged(AdminTokenAction.getInstance());
    ELogRecord eLogRec = new ELogRecord(rec.getLevel(), rec.getMessage(), SubjectUtils.createSubject(adminSSOToken), SubjectUtils.createSubject((SSOToken) rec.getLogFor()));
    Map map = rec.getLogInfoMap();
    for (Object k : map.keySet()) {
        eLogRec.addLogInfo((String) k, map.get(k));
    }
    return eLogRec;
}
Also used : SSOToken(com.iplanet.sso.SSOToken) ELogRecord(com.sun.identity.entitlement.log.ELogRecord) Map(java.util.Map)

Aggregations

SSOToken (com.iplanet.sso.SSOToken)1 ELogRecord (com.sun.identity.entitlement.log.ELogRecord)1 Map (java.util.Map)1