Package org.bouncycastle.tls
Class KeyShareEntry
java.lang.Object
org.bouncycastle.tls.KeyShareEntry
-
Field Summary
Modifier and TypeFieldDescriptionprotected final byte[]
protected final int
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
encode
(OutputStream output) Encode thisKeyShareEntry
to anOutputStream
.byte[]
int
static KeyShareEntry
parse
(InputStream input) Parse aKeyShareEntry
from anInputStream
.
-
Field Details
-
namedGroup
protected final int namedGroup -
keyExchange
protected final byte[] keyExchange
-
-
Constructor Details
-
KeyShareEntry
public KeyShareEntry(int namedGroup, byte[] keyExchange) - Parameters:
namedGroup
-NamedGroup
keyExchange
-
-
-
Method Details
-
getNamedGroup
public int getNamedGroup()- Returns:
NamedGroup
-
getKeyExchange
public byte[] getKeyExchange() -
encode
Encode thisKeyShareEntry
to anOutputStream
.- Parameters:
output
- theOutputStream
to encode to.- Throws:
IOException
-
parse
Parse aKeyShareEntry
from anInputStream
.- Parameters:
input
- theInputStream
to parse from.- Returns:
- a
KeyShareEntry
object. - Throws:
IOException
-