Search in sources :

Example 1 with AuditingOperationCode

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));
}
Also used : AuditingOperationCode(org.cloudfoundry.credhub.audit.AuditingOperationCode) EventAuditRecordParameters(org.cloudfoundry.credhub.audit.EventAuditRecordParameters)

Aggregations

AuditingOperationCode (org.cloudfoundry.credhub.audit.AuditingOperationCode)1 EventAuditRecordParameters (org.cloudfoundry.credhub.audit.EventAuditRecordParameters)1