Top Fields Constructors Methods
org.bouncycastle.tls

public Class KeyShareEntry

extends Object
Class Inheritance
Imports
java.io.IOException, .InputStream, .OutputStream

Field Summary

Modifier and TypeField and Description
protected final byte[]
protected final int

Constructor Summary

AccessConstructor and Description
public
KeyShareEntry(int namedGroup, byte[] keyExchange)

Method Summary

Modifier and TypeMethod and Description
private static boolean
public void
encode(OutputStream
the OutputStream to encode to.
output
)

Encode this KeyShareEntry to an OutputStream.

public byte[]
public int
public static KeyShareEntry

Returns:

a KeyShareEntry object.
parse
(InputStream
the InputStream to parse from.
input
)

Parse a KeyShareEntry from an InputStream.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

keyExchangeback to summary
protected final byte[] keyExchange
namedGroupback to summary
protected final int namedGroup

Constructor Detail

KeyShareEntryback to summary
public KeyShareEntry(int namedGroup, byte[] keyExchange)
Parameters
namedGroup:int

NamedGroup

Method Detail

checkKeyExchangeLengthback to summary
private static boolean checkKeyExchangeLength(int length)
encodeback to summary
public void encode(OutputStream output) throws IOException

Encode this KeyShareEntry to an OutputStream.

Parameters
output:OutputStream

the OutputStream to encode to.

getKeyExchangeback to summary
public byte[] getKeyExchange()
getNamedGroupback to summary
public int getNamedGroup()
Returns:int

NamedGroup

parseback to summary
public static KeyShareEntry parse(InputStream input) throws IOException

Parse a KeyShareEntry from an InputStream.

Parameters
input:InputStream

the InputStream to parse from.

Returns:KeyShareEntry

a KeyShareEntry object.