Class SignedAuditEvent
java.lang.Object
com.netscape.certsrv.logging.LogEvent
com.netscape.certsrv.logging.SignedAuditEvent
- All Implemented Interfaces:
ILogEvent, Serializable
- Direct Known Subclasses:
AccessSessionEstablishEvent, AccessSessionTerminatedEvent, AsymKeyGenerationEvent, AsymKeyGenerationProcessedEvent, AuthEvent, AuthzEvent, CertRequestProcessedEvent, CertSigningInfoEvent, CertStatusChangeRequestEvent, CertStatusChangeRequestProcessedEvent, ClientAccessSessionEstablishEvent, ClientAccessSessionTerminatedEvent, CMCSignedRequestSigVerifyEvent, CMCUserSignedRequestSigVerifyEvent, ComputeRandomDataRequestProcessedEvent, ComputeSessionKeyRequestProcessedEvent, ConfigRoleEvent, ConfigSignedAuditEvent, ConfigTrustedPublicKeyEvent, CRLSigningInfoEvent, DeltaCRLGenerationEvent, DeltaCRLPublishingEvent, DiversifyKeyRequestProcessedEvent, EncryptDataRequestProcessedEvent, FullCRLGenerationEvent, FullCRLPublishingEvent, OCSPAddCARequestEvent, OCSPAddCARequestProcessedEvent, OCSPGenerationEvent, OCSPRemoveCARequestEvent, OCSPRemoveCARequestProcessedEvent, OCSPSigningInfoEvent, RandomGenerationEvent, RoleAssumeEvent, ScheduleCRLGenerationEvent, SecurityDataArchivalProcessedEvent, SecurityDataArchivalRequestEvent, SecurityDataExportEvent, SecurityDataInfoEvent, SecurityDataRecoveryEvent, SecurityDataRecoveryProcessedEvent, SecurityDataRecoveryStateChangeEvent, SecurityDataStatusChangeEvent, ServerSideKeygenEnrollKeygenEvent, ServerSideKeygenEnrollKeygenProcessedEvent, ServerSideKeygenEnrollKeyRetrievalEvent, ServerSideKeygenEnrollKeyRetrievalProcessedEvent, ServerSideKeyGenEvent, ServerSideKeyGenProcessedEvent, SymKeyGenerationEvent, SymKeyGenerationProcessedEvent, TokenAppletUpgradeEvent, TokenAuthEvent, TokenFormatEvent, TokenKeyChangeoverEvent, TokenPinResetEvent
The log event object that carries message detail of a log event
that goes into the Signed Audit Event log. This log has the
property of being digitally signed for security considerations.
- Version:
- $Revision$, $Date$
- See Also:
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionConstructs a message from a base exception.SignedAuditEvent(String msgFormat) Constructs a SignedAuditEvent message event.SignedAuditEvent(String msgFormat, Exception exception) Constructs a message from an exception.SignedAuditEvent(String msgFormat, Object[] params) Constructs a message event with a list of parameters that will be substituted into the message format.SignedAuditEvent(String msgFormat, String param) Constructs a message with a parameter. -
Method Summary
Modifier and TypeMethodDescriptionstatic voidencodeMap(StringBuilder sb, Map<String, String> params) getAttribute(String name) Object[]Returns a list of parameters.voidsetAttribute(String name, Object value) voidsetAttribute(String name, Map<String, String> params) Methods inherited from class LogEvent
getEventType, getLevel, getMessage, getMultiline, getNTEventType, getSource, getTimeStamp, setEventType, setLevel, setMessage, setMultiline, setParameters, setSource, toStringModifier and TypeMethodDescriptionRetrieves log event type.intgetLevel()Retrieves log level.Returns the current message format string.booleanRetrieves log multiline attribute.intRetrieves NT specific log event type.Retrieves log source.longRetrieves event time stamp.voidsetEventType(String eventType) Sets log event type.voidsetLevel(int level) Sets log level, NT log event type.voidsetMessage(String message) voidsetMultiline(boolean multiline) Sets log multiline attribute.voidsetParameters(Object[] params) Sets audit event's parameters.voidSets log source.toString()Return string representation of log message.
-
Field Details
-
RULENAME
- See Also:
-
PASSWORD_MASK
- See Also:
-
NAME_VALUE_DELIMITER
- See Also:
-
NAME_VALUE_PAIRS_DELIMITER
- See Also:
-
attributes
-
-
Constructor Details
-
SignedAuditEvent
public SignedAuditEvent() -
SignedAuditEvent
Constructs a SignedAuditEvent message event.- Parameters:
msgFormat- The message string.
-
SignedAuditEvent
-
SignedAuditEvent
Constructs a message from an exception. It can be used to carry a signed audit exception that may contain information about the context. For example,try { ... } catch (IOExeption e) { logHandler.log(new SignedAuditEvent("Encountered Signed Audit Error {0}", e); }- Parameters:
msgFormat- Exception details in message string format.exception- System exception.
-
SignedAuditEvent
Constructs a message from a base exception. This will use the msgFormat from the exception itself.try { ... } catch (Exception e) { logHandler.log(new SignedAuditEvent(e)); }- Parameters:
e- CMS exception.
-
SignedAuditEvent
-
-
Method Details
-
setAttribute
-
setAttribute
-
getAttribute
-
getAttributes
-
getAttributeList
-
getParameters
Description copied from class:LogEventReturns a list of parameters.- Overrides:
getParametersin classLogEvent- Returns:
- list of message format parameters
-
encodeMap
-