de.rub.nds.tcp.TcpStreamContainerSerializer Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of tls-core Show documentation
Show all versions of tls-core Show documentation
TLS-Attacker is a Java-based framework for analyzing TLS libraries. It is developed by the Ruhr University Bochum (https://nds.rub.de/), the Paderborn University, and the Hackmanit GmbH (https://hackmanit.de/).
The newest version!
/*
* TLS-Attacker - A Modular Penetration Testing Framework for TLS
*
* Copyright 2014-2023 Ruhr University Bochum, Paderborn University, Technology Innovation Institute, and Hackmanit GmbH
*
* Licensed under Apache License, Version 2.0
* http://www.apache.org/licenses/LICENSE-2.0.txt
*/
package de.rub.nds.tcp;
import de.rub.nds.tlsattacker.core.layer.data.Serializer;
public class TcpStreamContainerSerializer extends Serializer {
private TcpStreamContainer streamContainer;
public TcpStreamContainerSerializer(TcpStreamContainer streamContainer) {
super();
this.streamContainer = streamContainer;
}
@Override
protected byte[] serializeBytes() {
appendBytes(streamContainer.getData().getValue());
return getAlreadySerialized();
}
}