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

public Class DHGEXClient

extends AbstractDHClientKeyExchange
Class Inheritance
Imports
java.math.BigInteger, java.security.PublicKey, java.util.Objects, org.apache.sshd.client.session.AbstractClientSession, org.apache.sshd.common.NamedFactory, .SshConstants, .SshException, org.apache.sshd.common.kex.AbstractDH, .DHFactory, .KexProposalOption, .KeyExchange, .KeyExchangeFactory, org.apache.sshd.common.session.Session, org.apache.sshd.common.signature.Signature, org.apache.sshd.common.util.GenericUtils, .ValidateUtils, org.apache.sshd.common.util.buffer.Buffer, .BufferUtils, .ByteArrayBuffer, org.apache.sshd.common.util.security.SecurityUtils, org.apache.sshd.core.CoreModuleProperties

Author
Apache MINA SSHD Project

Field Summary

Modifier and TypeField and Description
protected AbstractDH
protected byte
protected final DHFactory
protected byte[]
g

protected int
protected int
private byte[]
p

protected int
private BigInteger

Constructor Summary

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

Method Summary

Modifier and TypeMethod and Description
protected AbstractDH
public final String
protected byte[]
getP()

protected BigInteger
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
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

protected void
setP(byte[] p)

protected void
protected void
Inherited from org.apache.sshd.client.kex.AbstractDHClientKeyExchange:
getClientSession

Field Detail

dhback to summary
protected AbstractDH dh
expectedback to summary
protected byte expected
factoryback to summary
protected final DHFactory factory
gback to summary
protected byte[] g
maxback to summary
protected int max
minback to summary
protected int min
pback to summary
private byte[] p
prfback to summary
protected int prf
pValueback to summary
private BigInteger pValue

Constructor Detail

DHGEXClientback to summary
protected DHGEXClient(DHFactory factory, Session session)

Method Detail

getDHback to summary
protected AbstractDH getDH(BigInteger p, BigInteger g) throws Exception
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
getPback to summary
protected byte[] getP()
getPValueback to summary
protected BigInteger getPValue()
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(DHFactory delegate)
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
@SuppressWarnings:checkstyle:VariableDeclarationUsageDistance
Exceptions
Exception:
if an error occurs
setPback to summary
protected void setP(byte[] p)
validateEValueback to summary
protected void validateEValue() throws Exception
validateFValueback to summary
protected void validateFValue() throws Exception