Package org.bouncycastle.tls
Class KeyShareEntry
- java.lang.Object
-
- org.bouncycastle.tls.KeyShareEntry
-
public class KeyShareEntry extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description protected byte[]
keyExchange
protected int
namedGroup
-
Constructor Summary
Constructors Constructor Description KeyShareEntry(int namedGroup, byte[] keyExchange)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
encode(java.io.OutputStream output)
Encode thisKeyShareEntry
to anOutputStream
.byte[]
getKeyExchange()
int
getNamedGroup()
static KeyShareEntry
parse(java.io.InputStream input)
Parse aKeyShareEntry
from anInputStream
.
-
-
-
Constructor Detail
-
KeyShareEntry
public KeyShareEntry(int namedGroup, byte[] keyExchange)
- Parameters:
namedGroup
-NamedGroup
keyExchange
-
-
-
Method Detail
-
getNamedGroup
public int getNamedGroup()
- Returns:
NamedGroup
-
getKeyExchange
public byte[] getKeyExchange()
-
encode
public void encode(java.io.OutputStream output) throws java.io.IOException
Encode thisKeyShareEntry
to anOutputStream
.- Parameters:
output
- theOutputStream
to encode to.- Throws:
java.io.IOException
-
parse
public static KeyShareEntry parse(java.io.InputStream input) throws java.io.IOException
Parse aKeyShareEntry
from anInputStream
.- Parameters:
input
- theInputStream
to parse from.- Returns:
- a
KeyShareEntry
object. - Throws:
java.io.IOException
-
-