public class EPPSecureSendReceiveLogger extends java.lang.Object implements EPPSendReceiveLogger
EPPSendReceiveLogger that logs the messages in secure form
to the Log4J com.verisign.epp.util.EPPXMLStream category. This logging
category is used for backward compatibility to logging configurations when
the EPPXMLStream logged the packets directly.
Sensitive attributes of messages will be masked with the string "MASKED".| Constructor and Description |
|---|
EPPSecureSendReceiveLogger() |
| Modifier and Type | Method and Description |
|---|---|
void |
logReceive(byte[] aPacket,
EPPMessage aMessage)
Log the raw receiving of a message.
|
void |
logSend(byte[] aPacket,
EPPMessage aMessage)
Log the raw sending of a message.
|
EPPCodecComponent |
maskMessage(EPPCodecComponent aMessage)
Mask the message by cloning the message and by masking specific message
attributes.
|
java.lang.String |
maskString(java.lang.String aString)
Mask a general string of sensitive information.
|
public void logSend(byte[] aPacket,
EPPMessage aMessage)
logSend in interface EPPSendReceiveLoggeraPacket - Packet to send. This may be null if the packet has
not been encoded yet.aMessage - The message that is being sent, which could be any concrete
EPPMessage, including a
EPPCommand, an
EPPGreeting, an
EPPHello, or an
EPPResponse. This may be
null if the EPPMessage is not
available.public void logReceive(byte[] aPacket,
EPPMessage aMessage)
logReceive in interface EPPSendReceiveLoggeraPacket - Packet received. This may be null if the packet is
not available.aMessage - The message received, which could be any concrete
EPPMessage, including a
EPPCommand, an
EPPGreeting, an
EPPHello, or an
EPPResponse. This may be
null if the EPPMessage is not
available.public java.lang.String maskString(java.lang.String aString)
maskString in interface EPPSendReceiveLoggeraString - String to scan for maskingString.public EPPCodecComponent maskMessage(EPPCodecComponent aMessage)
maskMessage in interface EPPSendReceiveLoggeraMessage - Message to mask. If null, null will be
returned.aMessage
. aMessage is returned if no filtering was done.