Top Fields Constructors Methods
org.apache.sshd.server.kex

public Class DHGServer

extends AbstractDHServerKeyExchange
Class Inheritance
Imports
java.security.KeyPair, java.util.Arrays, .Objects, org.apache.sshd.common.NamedFactory, .SshConstants, .SshException, org.apache.sshd.common.digest.Digest, org.apache.sshd.common.kex.AbstractDH, .CurveSizeIndicator, .DHFactory, .KexProposalOption, .KeyEncapsulationMethod, .KeyExchange, .KeyExchangeFactory, org.apache.sshd.common.session.Session, org.apache.sshd.common.signature.Signature, org.apache.sshd.common.util.ValidateUtils, org.apache.sshd.common.util.buffer.Buffer, .BufferUtils, .ByteArrayBuffer, org.apache.sshd.server.session.ServerSession

Author
Apache MINA SSHD Project

Field Summary

Modifier and TypeField and Description
protected AbstractDH
protected final DHFactory

Constructor Summary

AccessConstructor and Description
protected
DHGServer(DHFactory factory, Session session)

Method Summary

Modifier and TypeMethod and Description
public final String
public void
init(byte[]
the server identification string
v_s
,
byte[]
the client identification string
v_c
,
byte[]
the server key initialization packet
i_s
,
byte[]
the client key initialization packet
i_c
)

Overrides org.apache.sshd.common.kex.dh.AbstractDHKeyExchange.init.

Implements org.apache.sshd.common.kex.KeyExchange.init.

Initialize the key exchange algorithm.

public static KeyExchangeFactory
newFactory(final DHFactory factory)

public boolean
next(int
the command
cmd
,
Buffer
the packet contents positioned after the command
buffer
)

Implements org.apache.sshd.common.kex.KeyExchange.next.

Process the next packet

Inherited from org.apache.sshd.server.kex.AbstractDHServerKeyExchange:
getServerSession

Field Detail

dhback to summary
protected AbstractDH dh
factoryback to summary
protected final DHFactory factory

Constructor Detail

DHGServerback to summary
protected DHGServer(DHFactory factory, Session session)

Method Detail

getNameback to summary
public final String getName()

Implements org.apache.sshd.common.NamedResource.getName.

Returns:String

Doc from org.apache.sshd.common.NamedResource.getName.

The resource name

Annotations
@Override
initback to summary
public void init(byte[] v_s, byte[] v_c, byte[] i_s, byte[] i_c) throws Exception

Overrides org.apache.sshd.common.kex.dh.AbstractDHKeyExchange.init.

Implements org.apache.sshd.common.kex.KeyExchange.init.

Doc from org.apache.sshd.common.kex.KeyExchange.init.

Initialize the key exchange algorithm.

Parameters
v_s:byte[]

the server identification string

v_c:byte[]

the client identification string

i_s:byte[]

the server key initialization packet

i_c:byte[]

the client key initialization packet

Annotations
@Override
Exceptions
Exception:
if an error occurs
newFactoryback to summary
public static KeyExchangeFactory newFactory(final DHFactory factory)
nextback to summary
public boolean next(int cmd, Buffer buffer) throws Exception

Implements org.apache.sshd.common.kex.KeyExchange.next.

Doc from org.apache.sshd.common.kex.KeyExchange.next.

Process the next packet

Parameters
cmd:int

the command

buffer:Buffer

the packet contents positioned after the command

Returns:boolean

a boolean indicating if the processing is complete or if more packets are to be received

Annotations
@Override
Exceptions
Exception:
if an error occurs