public abstract class AbstractDHGServer extends Object implements KeyExchange
Constructor and Description |
---|
AbstractDHGServer() |
Modifier and Type | Method and Description |
---|---|
protected abstract AbstractDH |
getDH() |
byte[] |
getH()
Retrieves the computed H parameter
|
Digest |
getHash()
The message digest used by this key exchange algorithm.
|
byte[] |
getK()
Retrieves the computed K parameter
|
PublicKey |
getServerKey()
Retrieves the server's key
|
void |
init(AbstractSession s,
byte[] V_S,
byte[] V_C,
byte[] I_S,
byte[] I_C)
Initialize the key exchange algorithm.
|
boolean |
next(Buffer buffer)
Process the next packet
|
public void init(AbstractSession s, byte[] V_S, byte[] V_C, byte[] I_S, byte[] I_C) throws Exception
KeyExchange
init
in interface KeyExchange
s
- the session using this algorithmV_S
- the server identification stringV_C
- the client identification stringI_S
- the server key init packetI_C
- the client key init packetException
- if an error occursprotected abstract AbstractDH getDH() throws Exception
Exception
public boolean next(Buffer buffer) throws Exception
KeyExchange
next
in interface KeyExchange
buffer
- the packetException
- if an error occurspublic Digest getHash()
KeyExchange
getHash
in interface KeyExchange
public byte[] getH()
KeyExchange
getH
in interface KeyExchange
public byte[] getK()
KeyExchange
getK
in interface KeyExchange
public PublicKey getServerKey()
KeyExchange
getServerKey
in interface KeyExchange
Copyright © 2008–2014 The Apache Software Foundation. All rights reserved.