public interface KeyExchange extends NamedResource
Modifier and Type | Interface and Description |
---|---|
static class |
KeyExchange.Utils
A helper class for key exchange related operations
|
BY_NAME_COMPARATOR, NAME_EXTRACTOR
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
|
PublicKey |
getServerKey()
Retrieves the server's key
|
void |
init(Session session,
byte[] v_s,
byte[] v_c,
byte[] i_s,
byte[] i_c)
Initialize the key exchange algorithm.
|
boolean |
next(int cmd,
Buffer buffer)
Process the next packet
|
getName
void init(Session session, byte[] v_s, byte[] v_c, byte[] i_s, byte[] i_c) throws Exception
session
- 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 occursboolean next(int cmd, Buffer buffer) throws Exception
cmd
- the commandbuffer
- the packet contents positioned after the commandException
- if an error occursDigest getHash()
byte[] getH()
h
parameterh
parameterbyte[] getK()
k
parameterCopyright © 2008–2016 The Apache Software Foundation. All rights reserved.