All Downloads are FREE. Search and download functionalities are using the official Maven repository.

de.rub.nds.tcp.TcpStreamContainerSerializer Maven / Gradle / Ivy

Go to download

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();
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy