public class ScpCfAuditLog extends Object implements AuditLog
Important: For performance reasons, use only for logging of events as required by the relevant security standards:
Modifier and Type | Method and Description |
---|---|
void |
logConfigChange(AccessRequester initiator,
String objectId,
String objectName,
Iterable<AccessedAttribute> attributesAffected,
String message,
Throwable error)
Logs the change of some attributes of configuration data.
|
void |
logConfigChangeBeginning(AccessRequester initiator,
String objectId,
String objectName,
Iterable<AccessedAttribute> attributesAffected,
String message)
Logs the start of a change of some attributes of configuration data.
|
void |
logDataRead(AccessRequester initiator,
String objectId,
String objectName,
Iterable<AccessedAttribute> attributesAffected,
String message,
Throwable error)
Logs the read access to some attributes of an object.
|
void |
logDataReadAttempt(AccessRequester initiator,
String objectId,
String objectName,
Iterable<AccessedAttribute> attributesAffected,
String message)
Logs the attempt to read some attributes from an object.
|
void |
logDataWrite(AccessRequester initiator,
String objectId,
String objectName,
Iterable<AccessedAttribute> attributesAffected,
String message,
Throwable error)
Logs the modification of some attributes of an object.
|
void |
logDataWriteAttempt(AccessRequester initiator,
String objectId,
String objectName,
Iterable<AccessedAttribute> attributesAffected,
String message)
Logs the attempt to write to some attributes of an object.
|
void |
logSecurityEvent(AccessRequester initiator,
String message,
Throwable throwable)
Logs a generic security event.
|
void |
logSecurityEventBeginning(AccessRequester initiator,
String message)
Logs the start of a generic security event.
|
public void logSecurityEventBeginning(AccessRequester initiator, String message)
AuditLog
logSecurityEventBeginning
in interface AuditLog
initiator
- Information about the user that starts performing the security event.message
- Descriptive log message.public void logSecurityEvent(AccessRequester initiator, String message, @Nullable Throwable throwable)
AuditLog
logSecurityEvent
in interface AuditLog
initiator
- Information about the user that performed the security event.message
- Descriptive log message.throwable
- The exception in case of an error.public void logConfigChangeBeginning(AccessRequester initiator, String objectId, @Nullable String objectName, @Nullable Iterable<AccessedAttribute> attributesAffected, @Nullable String message)
AuditLog
logConfigChangeBeginning
in interface AuditLog
initiator
- Information about the user starting to modify the configuration.objectId
- A unique identifier of the configuration from which some attributes will be changed, for example a
UUID or a primary key of a database entry.objectName
- Human readable identifier of the configuration from which some attributes will be changed.attributesAffected
- A list containing the attributes that will be changed.message
- Descriptive log message.public void logConfigChange(AccessRequester initiator, String objectId, @Nullable String objectName, @Nullable Iterable<AccessedAttribute> attributesAffected, @Nullable String message, @Nullable Throwable error)
AuditLog
logConfigChange
in interface AuditLog
initiator
- Information about the user modifying the configuration.objectId
- A unique identifier of the configuration from which some attributes were changed, for example a UUID
or a primary key of a database entry.objectName
- Human readable identifier of the configuration from which some attributes were changed.attributesAffected
- A list containing the attributes that were changed.message
- Descriptive log message.error
- The exception in case of an error.public void logDataReadAttempt(AccessRequester initiator, String objectId, @Nullable String objectName, @Nullable Iterable<AccessedAttribute> attributesAffected, @Nullable String message)
AuditLog
logDataReadAttempt
in interface AuditLog
initiator
- Information about the user trying to the read the attributes.objectId
- A unique identifier of the object from which some attributes are attempted to be read, for example a
UUID or a primary key of a database entry.objectName
- Human readable identifier of the object from which some attributes are attempted to be read.attributesAffected
- A list containing the attributes that were read.message
- Descriptive log message.public void logDataRead(AccessRequester initiator, String objectId, @Nullable String objectName, @Nullable Iterable<AccessedAttribute> attributesAffected, @Nullable String message, @Nullable Throwable error)
AuditLog
logDataRead
in interface AuditLog
initiator
- Information about the user reading the attributes.objectId
- A unique identifier of the object from which some attributes are read, for example a UUID or a primary
key of a database entry.objectName
- Human readable identifier of the object from which some attributes are read.attributesAffected
- A list containing the attributes that were read.message
- Descriptive log message.error
- The exception in case of an error.public void logDataWriteAttempt(AccessRequester initiator, String objectId, @Nullable String objectName, @Nullable Iterable<AccessedAttribute> attributesAffected, @Nullable String message)
AuditLog
logDataWriteAttempt
in interface AuditLog
initiator
- Information about the user trying to write to some attributes.objectId
- A unique identifier of the object from which some attributes should be modified, for example a UUID or
a primary key of a database entry.objectName
- Human readable identifier of the object from which some attributes should be modified.attributesAffected
- A list containing the attributes that should be modified, containing the old and new values.message
- Descriptive log message.public void logDataWrite(AccessRequester initiator, String objectId, @Nullable String objectName, @Nullable Iterable<AccessedAttribute> attributesAffected, @Nullable String message, @Nullable Throwable error)
AuditLog
logDataWrite
in interface AuditLog
initiator
- Information about the user changing the attributes.objectId
- A unique identifier of the object from which some attributes are modified, for example a UUID or a
primary key of a database entry.objectName
- Human readable identifier of the object from which some attributes are modified.attributesAffected
- A list containing the attributes that should were modified, containing the old and new values.message
- Descriptive log message.error
- The exception in case of an error.Copyright © 2018 SAP SE. All rights reserved.