Package org.bouncycastle.tls
Class KeyShareEntry
java.lang.Object
org.bouncycastle.tls.KeyShareEntry
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final byte[]protected final int -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidencode(OutputStream output) Encode thisKeyShareEntryto anOutputStream.byte[]intstatic KeyShareEntryparse(InputStream input) Parse aKeyShareEntryfrom anInputStream.
-
Field Details
-
namedGroup
protected final int namedGroup -
keyExchange
protected final byte[] keyExchange
-
-
Constructor Details
-
KeyShareEntry
public KeyShareEntry(int namedGroup, byte[] keyExchange) - Parameters:
namedGroup-NamedGroupkeyExchange-
-
-
Method Details
-
getNamedGroup
public int getNamedGroup()- Returns:
NamedGroup
-
getKeyExchange
public byte[] getKeyExchange() -
encode
Encode thisKeyShareEntryto anOutputStream.- Parameters:
output- theOutputStreamto encode to.- Throws:
IOException
-
parse
Parse aKeyShareEntryfrom anInputStream.- Parameters:
input- theInputStreamto parse from.- Returns:
- a
KeyShareEntryobject. - Throws:
IOException
-