public abstract class AbstractDHKeyExchange extends AbstractLoggingBean implements KeyExchange
| Modifier and Type | Field and Description |
|---|---|
protected byte[] |
e |
protected byte[] |
f |
protected byte[] |
h |
protected Digest |
hash |
protected byte[] |
i_c |
protected byte[] |
i_s |
protected byte[] |
k |
protected AbstractSession |
session |
protected byte[] |
v_c |
protected byte[] |
v_s |
log| Modifier | Constructor and Description |
|---|---|
protected |
AbstractDHKeyExchange() |
| Modifier and Type | Method and Description |
|---|---|
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
|
AbstractSession |
getSession() |
void |
init(AbstractSession s,
byte[] v_s,
byte[] v_c,
byte[] i_s,
byte[] i_c)
Initialize the key exchange algorithm.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetServerKey, nextprotected AbstractSession session
protected byte[] v_s
protected byte[] v_c
protected byte[] i_s
protected byte[] i_c
protected Digest hash
protected byte[] e
protected byte[] f
protected byte[] k
protected byte[] h
public void init(AbstractSession s, byte[] v_s, byte[] v_c, byte[] i_s, byte[] i_c) throws 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 packetException - if an error occurspublic AbstractSession getSession()
public Digest getHash()
KeyExchangegetHash in interface KeyExchangepublic byte[] getH()
KeyExchangeh parametergetH in interface KeyExchangeh parameterpublic byte[] getK()
KeyExchangegetK in interface KeyExchangek parameterCopyright © 2008–2015 The Apache Software Foundation. All rights reserved.