public class ScpCfAuditLog extends Object implements AuditLog
Important: For performance reasons, consider to only use the audit log for logging of events such as:
Modifier and Type | Method and Description |
---|---|
void |
logConfigChange(AccessRequester initiator,
AuditedDataObject object,
Iterable<AccessedAttribute> attributesAffected,
Throwable error)
|
void |
logConfigChange(AccessRequester initiator,
AuditedDataObject object,
Throwable error,
AccessedAttribute attributeAffected,
AccessedAttribute... attributesAffected)
Logs the change of some attributes of configuration data.
|
void |
logConfigChangeBeginning(AccessRequester initiator,
AuditedDataObject object,
AccessedAttribute attributeAffected,
AccessedAttribute... attributesAffected)
Logs the start of a change of some attributes of configuration data.
|
void |
logConfigChangeBeginning(AccessRequester initiator,
AuditedDataObject object,
Iterable<AccessedAttribute> attributesAffected)
|
void |
logDataRead(AccessRequester initiator,
AuditedDataObject object,
AuditedDataSubject subject,
Iterable<AccessedAttribute> attributesAffected,
Throwable error)
|
void |
logDataRead(AccessRequester initiator,
AuditedDataObject object,
AuditedDataSubject subject,
Throwable error,
AccessedAttribute attributeAffected,
AccessedAttribute... attributesAffected)
Logs the read access to some attributes of an object.
|
void |
logDataReadAttempt(AccessRequester initiator,
AuditedDataObject object,
AuditedDataSubject subject,
AccessedAttribute attributeAffected,
AccessedAttribute... attributesAffected)
Logs the attempt to read some attributes from an object.
|
void |
logDataReadAttempt(AccessRequester initiator,
AuditedDataObject object,
AuditedDataSubject subject,
Iterable<AccessedAttribute> attributesAffected)
|
void |
logDataWrite(AccessRequester initiator,
AuditedDataObject object,
AuditedDataSubject subject,
Iterable<AccessedAttribute> attributesAffected,
Throwable error)
|
void |
logDataWrite(AccessRequester initiator,
AuditedDataObject object,
AuditedDataSubject subject,
Throwable error,
AccessedAttribute attributeAffected,
AccessedAttribute... attributesAffected)
Logs the modification of some attributes of an object.
|
void |
logDataWriteAttempt(AccessRequester initiator,
AuditedDataObject object,
AuditedDataSubject subject,
AccessedAttribute attributeAffected,
AccessedAttribute... attributesAffected)
Logs the attempt to write to some attributes of an object.
|
void |
logDataWriteAttempt(AccessRequester initiator,
AuditedDataObject object,
AuditedDataSubject subject,
Iterable<AccessedAttribute> attributesAffected)
|
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(@Nonnull AccessRequester initiator, String message)
logSecurityEventBeginning
in interface AuditLog
initiator
- Information about the user that starts performing the security event.message
- Descriptive log message.public void logSecurityEvent(@Nonnull AccessRequester initiator, @Nullable String message, @Nullable Throwable throwable)
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.@Deprecated public void logConfigChangeBeginning(@Nonnull AccessRequester initiator, @Nonnull AuditedDataObject object, @Nullable Iterable<AccessedAttribute> attributesAffected)
logConfigChangeBeginning(AccessRequester, AuditedDataObject, AccessedAttribute, AccessedAttribute...)
instead.logConfigChangeBeginning
in interface AuditLog
initiator
- Information about the user starting to modify the configuration.object
- An instance of AuditedDataObject
that represents the object that will be modified.attributesAffected
- A list containing the attributes that will be changed.public void logConfigChangeBeginning(@Nonnull AccessRequester initiator, @Nonnull AuditedDataObject object, @Nonnull AccessedAttribute attributeAffected, @Nullable AccessedAttribute... attributesAffected)
logConfigChangeBeginning
in interface AuditLog
initiator
- Information about the user starting to modify the configuration.object
- An instance of AuditedDataObject
that represents the object that will be modified.attributeAffected
- An attribute that will be changed.attributesAffected
- An arbitrary number of attributes that will be changed.@Deprecated public void logConfigChange(@Nonnull AccessRequester initiator, @Nonnull AuditedDataObject object, @Nullable Iterable<AccessedAttribute> attributesAffected, @Nullable Throwable error)
logConfigChange(AccessRequester, AuditedDataObject, Throwable, AccessedAttribute, AccessedAttribute...)
instead.logConfigChange
in interface AuditLog
initiator
- Information about the user modifying the configuration.object
- An instance of AuditedDataObject
that represents the object that has been modified.attributesAffected
- A list containing the attributes that were changed.error
- The exception in case of an error.public void logConfigChange(@Nonnull AccessRequester initiator, @Nonnull AuditedDataObject object, @Nullable Throwable error, @Nonnull AccessedAttribute attributeAffected, @Nullable AccessedAttribute... attributesAffected)
logConfigChange
in interface AuditLog
initiator
- Information about the user modifying the configuration.object
- An instance of AuditedDataObject
that represents the object that has been modified.error
- The exception in case of an error.attributeAffected
- An attribute that has been changed.attributesAffected
- An arbitrary number of attributes that have been changed.@Deprecated public void logDataReadAttempt(@Nonnull AccessRequester initiator, @Nonnull AuditedDataObject object, @Nonnull AuditedDataSubject subject, @Nullable Iterable<AccessedAttribute> attributesAffected)
logDataReadAttempt(AccessRequester, AuditedDataObject, com.sap.cloud.sdk.cloudplatform.auditlog.AuditedDataSubject, AccessedAttribute, AccessedAttribute...)
instead.logDataReadAttempt
in interface AuditLog
initiator
- Information about the user trying to the read the attributes.object
- An instance of AuditedDataObject
that represents the object to be read.subject
- An instance of AuditedDataSubject
that represents the owner of the data to be read.attributesAffected
- A list containing the attributes that were read.public void logDataReadAttempt(@Nonnull AccessRequester initiator, @Nonnull AuditedDataObject object, @Nonnull AuditedDataSubject subject, @Nonnull AccessedAttribute attributeAffected, @Nullable AccessedAttribute... attributesAffected)
logDataReadAttempt
in interface AuditLog
initiator
- Information about the user trying to the read the attributes.object
- An instance of AuditedDataObject
that represents the object to be read.subject
- An instance of AuditedDataSubject
that represents the owner of the data to be read.attributeAffected
- An attribute that should be read.attributesAffected
- An arbitrary number of attributes that should be read.@Deprecated public void logDataRead(@Nonnull AccessRequester initiator, @Nonnull AuditedDataObject object, @Nonnull AuditedDataSubject subject, @Nullable Iterable<AccessedAttribute> attributesAffected, @Nullable Throwable error)
logDataRead(AccessRequester, AuditedDataObject, com.sap.cloud.sdk.cloudplatform.auditlog.AuditedDataSubject, Throwable, AccessedAttribute, AccessedAttribute...)
instead.logDataRead
in interface AuditLog
initiator
- Information about the user reading the attributes.object
- An instance of AuditedDataObject
that represents the object that has been read.subject
- An instance of AuditedDataSubject
that represents the owner of the data that has been read.attributesAffected
- A list containing the attributes that were read.error
- The exception in case of an error.public void logDataRead(@Nonnull AccessRequester initiator, @Nonnull AuditedDataObject object, @Nonnull AuditedDataSubject subject, @Nullable Throwable error, @Nonnull AccessedAttribute attributeAffected, @Nullable AccessedAttribute... attributesAffected)
logDataRead
in interface AuditLog
initiator
- Information about the user reading the attributes.object
- An instance of AuditedDataObject
that represents the object that has been read.subject
- An instance of AuditedDataSubject
that represents the owner of the data that has been read.error
- The exception in case of an error.attributeAffected
- An attribute that has been read.attributesAffected
- An arbitrary number of attributes that have been read.@Deprecated public void logDataWriteAttempt(@Nonnull AccessRequester initiator, @Nonnull AuditedDataObject object, @Nonnull AuditedDataSubject subject, @Nullable Iterable<AccessedAttribute> attributesAffected)
logDataWriteAttempt(AccessRequester, AuditedDataObject, com.sap.cloud.sdk.cloudplatform.auditlog.AuditedDataSubject, AccessedAttribute, AccessedAttribute...)
instead.logDataWriteAttempt
in interface AuditLog
initiator
- Information about the user trying to write to some attributes.object
- An instance of AuditedDataObject
that represents the object that is about to be modified.subject
- An instance of AuditedDataSubject
that represents the owner of the data that is about to be
modified.attributesAffected
- A list containing the attributes that should be modified, containing the old and new values.public void logDataWriteAttempt(@Nonnull AccessRequester initiator, @Nonnull AuditedDataObject object, @Nonnull AuditedDataSubject subject, @Nonnull AccessedAttribute attributeAffected, @Nullable AccessedAttribute... attributesAffected)
logDataWriteAttempt
in interface AuditLog
initiator
- Information about the user trying to write to some attributes.object
- An instance of AuditedDataObject
that represents the object that is about to be modified.subject
- An instance of AuditedDataSubject
that represents the owner of the data that is about to be
modified.attributeAffected
- An attribute that should be modified, containing the old and new value.attributesAffected
- An arbitrary number of attributes that should be modified, containing the old and new values.@Deprecated public void logDataWrite(@Nonnull AccessRequester initiator, @Nonnull AuditedDataObject object, @Nonnull AuditedDataSubject subject, @Nullable Iterable<AccessedAttribute> attributesAffected, @Nullable Throwable error)
logDataWrite(AccessRequester, AuditedDataObject, com.sap.cloud.sdk.cloudplatform.auditlog.AuditedDataSubject, Throwable, AccessedAttribute, AccessedAttribute...)
instead.logDataWrite
in interface AuditLog
initiator
- Information about the user changing the attributes.object
- An instance of AuditedDataObject
that represents the object that has been modified.subject
- An instance of AuditedDataSubject
that represents the owner of the data that has been
modified.attributesAffected
- A list containing the attributes that were modified, containing the old and new values.error
- The exception in case of an error.public void logDataWrite(@Nonnull AccessRequester initiator, @Nonnull AuditedDataObject object, @Nonnull AuditedDataSubject subject, @Nullable Throwable error, @Nonnull AccessedAttribute attributeAffected, @Nullable AccessedAttribute... attributesAffected)
logDataWrite
in interface AuditLog
initiator
- Information about the user changing the attributes.object
- An instance of AuditedDataObject
that represents the object that has been modified.subject
- An instance of AuditedDataSubject
that represents the owner of the data that has been
modified.error
- The exception in case of an error.attributeAffected
- An attribute that has been modified, containing the old and new value.attributesAffected
- An arbitrary number of attributes that have been modified, containing the old and new values.Copyright © 2019 SAP SE. All rights reserved.