package com.jscape.inet.ssh.protocol.v2.marshaling;

import com.jscape.inet.ssh.protocol.messages.IdentificationString;

import java.security.PublicKey;
import java.util.Arrays;

/**
 * @author Alex Usun
 */
public class ClientSession
        extends Session {

    public PublicKey hostKey;

    public ClientSession(MessageCodec messageCodec,
                         IdentificationString clientIdentificationString,
                         IdentificationString serverIdentificationString) {
        super(messageCodec, clientIdentificationString, serverIdentificationString);
    }

    @Override
    public String toString() {
        return "ClientSession {"
               + "messageCodec=" + this.messageCodec
               + ", packetCodec=" + this.packetCodec
               + ", clientIdentificationString=" + this.clientIdentificationString
               + ", serverIdentificationString=" + this.serverIdentificationString
               + ", clientKexInitMessage=" + this.clientKexInitMessage
               + ", serverKexInitMessage=" + this.serverKexInitMessage
               + ", algorithms=" + this.algorithms
               + ", sessionId=" + Arrays.toString(this.sessionId)
               + ", hostKey=" + this.hostKey
               + '}';
    }
}
