Commit f905f16a authored by michael.simon's avatar michael.simon
Browse files

Introduce idp communicaton auditor

parent d554744d
/*******************************************************************************
* Copyright (c) 2014 Michael Simon.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the GNU Public License v3.0
* which accompanies this distribution, and is available at
* http://www.gnu.org/licenses/gpl.html
*
* Contributors:
* Michael Simon - initial
******************************************************************************/
package edu.kit.scc.webreg.audit;
import edu.kit.scc.webreg.bootstrap.ApplicationConfig;
import edu.kit.scc.webreg.dao.AuditDetailDao;
import edu.kit.scc.webreg.dao.AuditEntryDao;
import edu.kit.scc.webreg.entity.SamlIdpMetadataEntity;
import edu.kit.scc.webreg.entity.SamlSpConfigurationEntity;
import edu.kit.scc.webreg.entity.audit.AuditIdpCommunicationEntity;
public class IdpCommunicationAuditor extends AbstractAuditor {
private AuditIdpCommunicationEntity audit;
public IdpCommunicationAuditor(AuditEntryDao auditEntryDao,
AuditDetailDao auditDetailDao, ApplicationConfig appConfig) {
super(auditEntryDao, auditDetailDao, appConfig);
}
@Override
public AuditIdpCommunicationEntity getAudit() {
if (audit == null)
audit = new AuditIdpCommunicationEntity();
return audit;
}
public void setIdp(SamlIdpMetadataEntity idp) {
audit.setIdp(idp);
}
public void setSpConfig(SamlSpConfigurationEntity spConfig) {
audit.setSpConfig(spConfig);
}
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment