Package com.netscape.certsrv.logging
Class SignedAuditEvent
- java.lang.Object
-
- com.netscape.certsrv.logging.LogEvent
-
- com.netscape.certsrv.logging.SignedAuditEvent
-
- All Implemented Interfaces:
ILogEvent,java.io.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
public class SignedAuditEvent extends LogEvent
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:
MessageFormat,LogResources, Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected java.util.Map<java.lang.String,java.lang.Object>attributesstatic java.lang.StringNAME_VALUE_DELIMITERstatic java.lang.StringNAME_VALUE_PAIRS_DELIMITERstatic java.lang.StringPASSWORD_MASKstatic java.lang.StringRULENAME
-
Constructor Summary
Constructors Constructor Description SignedAuditEvent()SignedAuditEvent(java.lang.Exception e)Constructs a message from a base exception.SignedAuditEvent(java.lang.String msgFormat)Constructs a SignedAuditEvent message event.SignedAuditEvent(java.lang.String msgFormat, java.lang.Exception exception)Constructs a message from an exception.SignedAuditEvent(java.lang.String msgFormat, java.lang.Object[] params)Constructs a message event with a list of parameters that will be substituted into the message format.SignedAuditEvent(java.lang.String msgFormat, java.lang.String param)Constructs a message with a parameter.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static voidencodeMap(java.lang.StringBuilder sb, java.util.Map<java.lang.String,java.lang.String> params)java.lang.ObjectgetAttribute(java.lang.String name)java.lang.StringgetAttributeList()java.util.Map<java.lang.String,java.lang.Object>getAttributes()java.lang.Object[]getParameters()Returns a list of parameters.voidsetAttribute(java.lang.String name, java.lang.Object value)voidsetAttribute(java.lang.String name, java.util.Map<java.lang.String,java.lang.String> params)-
Methods inherited from class com.netscape.certsrv.logging.LogEvent
getEventType, getLevel, getMessage, getMultiline, getNTEventType, getSource, getTimeStamp, setEventType, setLevel, setMessage, setMultiline, setParameters, setSource, toString
-
-
-
-
Field Detail
-
RULENAME
public static final java.lang.String RULENAME
- See Also:
- Constant Field Values
-
PASSWORD_MASK
public static final java.lang.String PASSWORD_MASK
- See Also:
- Constant Field Values
-
NAME_VALUE_DELIMITER
public static final java.lang.String NAME_VALUE_DELIMITER
- See Also:
- Constant Field Values
-
NAME_VALUE_PAIRS_DELIMITER
public static final java.lang.String NAME_VALUE_PAIRS_DELIMITER
- See Also:
- Constant Field Values
-
attributes
protected java.util.Map<java.lang.String,java.lang.Object> attributes
-
-
Constructor Detail
-
SignedAuditEvent
public SignedAuditEvent()
-
SignedAuditEvent
public SignedAuditEvent(java.lang.String msgFormat)
Constructs a SignedAuditEvent message event.- Parameters:
msgFormat- The message string.
-
SignedAuditEvent
public SignedAuditEvent(java.lang.String msgFormat, java.lang.String param)Constructs a message with a parameter. For example,new SignedAuditEvent("failed to load {0}", fileName);- Parameters:
msgFormat- Details in message string format.param- Message string parameter.
-
SignedAuditEvent
public SignedAuditEvent(java.lang.String msgFormat, java.lang.Exception exception)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
public SignedAuditEvent(java.lang.Exception e)
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
public SignedAuditEvent(java.lang.String msgFormat, java.lang.Object[] params)Constructs a message event with a list of parameters that will be substituted into the message format.- Parameters:
msgFormat- Message string format.params- List of message format parameters.
-
-
Method Detail
-
setAttribute
public void setAttribute(java.lang.String name, java.lang.Object value)
-
setAttribute
public void setAttribute(java.lang.String name, java.util.Map<java.lang.String,java.lang.String> params)
-
getAttribute
public java.lang.Object getAttribute(java.lang.String name)
-
getAttributes
public java.util.Map<java.lang.String,java.lang.Object> getAttributes()
-
getAttributeList
public java.lang.String getAttributeList()
-
getParameters
public java.lang.Object[] getParameters()
Description copied from class:LogEventReturns a list of parameters.- Overrides:
getParametersin classLogEvent- Returns:
- list of message format parameters
-
encodeMap
public static void encodeMap(java.lang.StringBuilder sb, java.util.Map<java.lang.String,java.lang.String> params)
-
-