public class KeyShareEntry
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected byte[] |
keyExchange |
protected int |
namedGroup |
Constructor and Description |
---|
KeyShareEntry(int namedGroup,
byte[] keyExchange) |
Modifier and Type | Method and Description |
---|---|
void |
encode(java.io.OutputStream output)
Encode this
KeyShareEntry to an OutputStream . |
byte[] |
getKeyExchange() |
int |
getNamedGroup() |
static KeyShareEntry |
parse(java.io.InputStream input)
Parse a
KeyShareEntry from an InputStream . |
protected final int namedGroup
protected final byte[] keyExchange
public KeyShareEntry(int namedGroup, byte[] keyExchange)
namedGroup
- NamedGroup
keyExchange
- public int getNamedGroup()
NamedGroup
public byte[] getKeyExchange()
public void encode(java.io.OutputStream output) throws java.io.IOException
KeyShareEntry
to an OutputStream
.output
- the OutputStream
to encode to.java.io.IOException
public static KeyShareEntry parse(java.io.InputStream input) throws java.io.IOException
KeyShareEntry
from an InputStream
.input
- the InputStream
to parse from.KeyShareEntry
object.java.io.IOException