Package ddf.security.audit.impl
Class SecurityLoggerImpl
java.lang.Object
ddf.security.audit.impl.SecurityLoggerImpl
- All Implemented Interfaces:
ddf.security.audit.SecurityLogger
Class that contains utility methods for logging common security messages.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidLogs a message object with theINFOlevel.voidLogs a message with parameters at theINFOlevel.voidvoidLogs a message with parameters which are only to be constructed if the logging level is theINFOlevel.voidLogs a message object with theINFOlevel.voidLogs a message with parameters at theINFOlevel.voidvoidaudit(String message, org.apache.shiro.subject.Subject subject, org.apache.logging.log4j.util.Supplier... paramSuppliers) Logs a message with parameters which are only to be constructed if the logging level is theINFOlevel.voidLogs a message object with theWARNlevel.voidLogs a message with parameters at theWARNlevel.voidvoidLogs a message with parameters which are only to be constructed if the logging level is theWARNlevel.voidLogs a message object with theWARNlevel.voidLogs a message with parameters at theWARNlevel.voidvoidauditWarn(String message, org.apache.shiro.subject.Subject subject, org.apache.logging.log4j.util.Supplier... paramSuppliers) Logs a message with parameters which are only to be constructed if the logging level is theWARNlevel.voidsetAuditPropertiesPlugins(List<ddf.security.audit.AuditPropertiesPlugin> auditPropertiesPlugins)
-
Field Details
-
TRACE_ID
- See Also:
-
-
Constructor Details
-
SecurityLoggerImpl
public SecurityLoggerImpl(ddf.security.SubjectOperations subjectOperations)
-
-
Method Details
-
setAuditPropertiesPlugins
public void setAuditPropertiesPlugins(List<ddf.security.audit.AuditPropertiesPlugin> auditPropertiesPlugins) -
audit
Logs a message object with theINFOlevel.- Specified by:
auditin interfaceddf.security.audit.SecurityLogger- Parameters:
message- the message string to log.subject- the user subject to log
-
audit
Logs a message object with theINFOlevel.- Specified by:
auditin interfaceddf.security.audit.SecurityLogger- Parameters:
message- the message string to log.
-
audit
Logs a message with parameters at theINFOlevel.- Specified by:
auditin interfaceddf.security.audit.SecurityLogger- Parameters:
message- the message to log; the format depends on the message factory.subject- the user subject to logparams- parameters to the message.
-
audit
Logs a message with parameters at theINFOlevel.- Specified by:
auditin interfaceddf.security.audit.SecurityLogger- Parameters:
message- the message to log; the format depends on the message factory.params- parameters to the message.
-
audit
public void audit(String message, org.apache.shiro.subject.Subject subject, org.apache.logging.log4j.util.Supplier... paramSuppliers) Logs a message with parameters which are only to be constructed if the logging level is theINFOlevel.- Specified by:
auditin interfaceddf.security.audit.SecurityLogger- Parameters:
message- the message to log; the format depends on the message factory.subject- the user subject to logparamSuppliers- An array of functions, which when called, produce the desired log message parameters.
-
audit
Logs a message with parameters which are only to be constructed if the logging level is theINFOlevel.- Specified by:
auditin interfaceddf.security.audit.SecurityLogger- Parameters:
message- the message to log; the format depends on the message factory.paramSuppliers- An array of functions, which when called, produce the desired log message parameters.
-
audit
- Specified by:
auditin interfaceddf.security.audit.SecurityLogger- Parameters:
message- the message object to log.subject- the user subject to logt- the exception to log, including its stack trace.
-
audit
- Specified by:
auditin interfaceddf.security.audit.SecurityLogger- Parameters:
message- the message object to log.t- the exception to log, including its stack trace.
-
auditWarn
Logs a message object with theWARNlevel.- Specified by:
auditWarnin interfaceddf.security.audit.SecurityLogger- Parameters:
message- the message string to log.subject- the user subject to log
-
auditWarn
Logs a message object with theWARNlevel.- Specified by:
auditWarnin interfaceddf.security.audit.SecurityLogger- Parameters:
message- the message string to log.
-
auditWarn
Logs a message with parameters at theWARNlevel.- Specified by:
auditWarnin interfaceddf.security.audit.SecurityLogger- Parameters:
message- the message to log; the format depends on the message factory.subject- the user subject to logparams- parameters to the message.
-
auditWarn
Logs a message with parameters at theWARNlevel.- Specified by:
auditWarnin interfaceddf.security.audit.SecurityLogger- Parameters:
message- the message to log; the format depends on the message factory.params- parameters to the message.
-
auditWarn
public void auditWarn(String message, org.apache.shiro.subject.Subject subject, org.apache.logging.log4j.util.Supplier... paramSuppliers) Logs a message with parameters which are only to be constructed if the logging level is theWARNlevel.- Specified by:
auditWarnin interfaceddf.security.audit.SecurityLogger- Parameters:
message- the message to log; the format depends on the message factory.subject- the user subject to logparamSuppliers- An array of functions, which when called, produce the desired log message parameters.
-
auditWarn
Logs a message with parameters which are only to be constructed if the logging level is theWARNlevel.- Specified by:
auditWarnin interfaceddf.security.audit.SecurityLogger- Parameters:
message- the message to log; the format depends on the message factory.paramSuppliers- An array of functions, which when called, produce the desired log message parameters.
-
auditWarn
- Specified by:
auditWarnin interfaceddf.security.audit.SecurityLogger- Parameters:
message- the message object to log.subject- the user subject to logt- the exception to log, including its stack trace.
-
auditWarn
- Specified by:
auditWarnin interfaceddf.security.audit.SecurityLogger- Parameters:
message- the message object to log.t- the exception to log, including its stack trace.
-