public class DHGEX extends java.lang.Object implements KeyExchange
| Modifier and Type | Class and Description |
|---|---|
static class |
DHGEX.Factory |
| Constructor and Description |
|---|
DHGEX() |
| Modifier and Type | Method and Description |
|---|---|
protected DH |
getDH(java.math.BigInteger p,
java.math.BigInteger g) |
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
|
java.security.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 java.lang.Exception
KeyExchangeinit in interface KeyExchanges - 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 packetjava.lang.Exception - if an error occurspublic boolean next(Buffer buffer) throws java.lang.Exception
KeyExchangenext in interface KeyExchangebuffer - the packetjava.lang.Exception - if an error occursprotected DH getDH(java.math.BigInteger p, java.math.BigInteger g) throws java.lang.Exception
java.lang.Exceptionpublic Digest getHash()
KeyExchangegetHash in interface KeyExchangepublic byte[] getH()
KeyExchangegetH in interface KeyExchangepublic byte[] getK()
KeyExchangegetK in interface KeyExchangepublic java.security.PublicKey getServerKey()
KeyExchangegetServerKey in interface KeyExchangeCopyright © 2008-2014 The Apache Software Foundation. All Rights Reserved.