use of org.cloudfoundry.credhub.audit.AuditingOperationCode in project credhub by cloudfoundry-incubator.
the class PermissionedCredentialService method writeSaveAuditRecord.
private void writeSaveAuditRecord(String credentialName, List<EventAuditRecordParameters> auditRecordParameters, boolean shouldWriteNewEntity) {
AuditingOperationCode credentialOperationCode = shouldWriteNewEntity ? CREDENTIAL_UPDATE : CREDENTIAL_ACCESS;
auditRecordParameters.add(new EventAuditRecordParameters(credentialOperationCode, credentialName));
}
Aggregations