public class TlsActivity extends AbstractReplaceableActivity
TcpActivity
objects
that are specific to SSL/TLS streams, e.g. typical "Client Hello", "Server Hello" and "ChangeCipherSpec"
messages are stored in this activity - therefore it should be considered a derived fact next to constituting an event.
TlsActivityHelper
may be used to decide whether
or not a TCP payload may contain SSL/TLS protocol messages.PROPERTY_ADD_FRAME_NUMBERS, PROPERTY_NEW_END_INSTANT, PROPERTY_NEW_START_INSTANT
source
Constructor and Description |
---|
TlsActivity(TcpActivity clientHello,
TcpActivity serverHello)
Constructs a prototypical TLS Event using a "Client Hello" and a "Server Hello" TCP messages.
|
Modifier and Type | Method and Description |
---|---|
void |
addClientToServerTcpActivity(TcpActivity tcp)
Assigns and extends a tcp activity to be part of this TLS/SSL stream
|
void |
addServerToClientTcpActivity(TcpActivity tcp)
Assigns and extends a tcp activity to be part of this TLS/SSL stream
|
TcpActivity |
getChangeCipherSpec() |
TcpActivity |
getClientHello() |
SortedSet<Long> |
getClientToServerTraffic() |
String |
getDestinationAddressAsString()
An address that can be interpreted as the destination address for this activity.
|
TcpActivity |
getServerHello() |
SortedSet<Long> |
getServerToClientTraffic() |
String |
getSourceAddressAsString()
An address that can be interpreted as the source address for this activity.
|
void |
setChangeCipherSpec(TcpActivity changeCipherSpec)
Designates the passed TCP activity to containing a "Change Cipher Spec" protocol message.
|
String |
toString() |
isReplaced, replaceActivity, setReplaced
addOptionalField, addPropertyChangeListener, addPropertyChangeListener, extendActivity, getActivityType, getCompoundFrameNumbers, getDescription, getEndInstant, getEndTimestamp, getOptionalFields, getStartInstant, getStartTimestamp, isExcludedFromOutput, removePropertyChangeListener, removePropertyChangeListener, removeReplacedActivity, setDescription, setDestinationAddress, setEndInstant, setExcludedFromOutput, setSourceAddress, setStartInstant, writeCsvRecord
getSource
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
addPropertyChangeListener, addPropertyChangeListener, getActivityType, getCompoundFrameNumbers, getDescription, getEndInstant, getEndTimestamp, getOptionalFields, getStartInstant, getStartTimestamp, isExcludedFromOutput, removePropertyChangeListener, removePropertyChangeListener, setExcludedFromOutput
public TlsActivity(TcpActivity clientHello, TcpActivity serverHello)
public TcpActivity getChangeCipherSpec()
public void setChangeCipherSpec(TcpActivity changeCipherSpec)
changeCipherSpec
- the TCP activity resembling a "Change Cipher Spec" (will be extended)public TcpActivity getClientHello()
public TcpActivity getServerHello()
public SortedSet<Long> getClientToServerTraffic()
public SortedSet<Long> getServerToClientTraffic()
public void addClientToServerTcpActivity(TcpActivity tcp)
tcp
- the tcp activity of the same TCP session, client to server directionpublic void addServerToClientTcpActivity(TcpActivity tcp)
tcp
- the tcp activity of the same TCP session, server to client directionpublic String getSourceAddressAsString()
Activity
getSourceAddressAsString
in interface Activity
getSourceAddressAsString
in class AbstractActivity
public String getDestinationAddressAsString()
Activity
getDestinationAddressAsString
in interface Activity
getDestinationAddressAsString
in class AbstractActivity
public String toString()
toString
in class AbstractActivity
Copyright © 2013–2015 Institute of networks and security. All rights reserved.