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

public Class DHGEXServer

extends AbstractDHServerKeyExchange
Class Inheritance
Imports
java.io.FileNotFoundException, .IOException, java.math.BigInteger, java.net.URL, java.security.KeyPair, java.util.ArrayList, .List, .Objects, org.apache.sshd.common.Factory, .FactoryManager, .NamedFactory, .SshConstants, .SshException, org.apache.sshd.common.kex.DHFactory, .DHG, .DHGroupData, .KexProposalOption, .KeyExchange, .KeyExchangeFactory, org.apache.sshd.common.random.Random, 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, org.apache.sshd.server.session.ServerSession

Author
Apache MINA SSHD Project

Field Summary

Modifier and TypeField and Description
protected DHG
protected byte
protected final DHFactory
protected int
protected int
protected boolean
protected int

Constructor Summary

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

Method Summary

Modifier and TypeMethod and Description
protected DHG
chooseDH(int min, int prf, int max)

protected DHG
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.

protected List<Moduli.DhGroup>
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 List<Moduli.DhGroup>
selectModuliGroups(ServerSession session, int min, int prf, int max, List<Moduli.DhGroup> groups)

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

Field Detail

dhback to summary
protected DHG dh
expectedback to summary
protected byte expected
factoryback to summary
protected final DHFactory factory
maxback to summary
protected int max
minback to summary
protected int min
oldRequestback to summary
protected boolean oldRequest
prfback to summary
protected int prf

Constructor Detail

DHGEXServerback to summary
protected DHGEXServer(DHFactory factory, Session session)

Method Detail

chooseDHback to summary
protected DHG chooseDH(int min, int prf, int max) throws Exception
getDHback to summary
protected DHG 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
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
loadModuliGroupsback to summary
protected List<Moduli.DhGroup> loadModuliGroups(ServerSession session) throws IOException
newFactoryback to summary
public static KeyExchangeFactory newFactory(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
selectModuliGroupsback to summary
protected List<Moduli.DhGroup> selectModuliGroups(ServerSession session, int min, int prf, int max, List<Moduli.DhGroup> groups) throws Exception