APIdia Launch Partner
Top Description Fields Constructors Methods
sun.security.ssl

pack-priv final Class SSLExtensions

extends Object
Class Inheritance
Imports
java.io.IOException, java.nio.ByteBuffer, java.text.MessageFormat, java.util.*, sun.security.ssl.SSLHandshake.HandshakeMessage, sun.security.util.HexDumpEncoder

SSL/(D)TLS extensions in a handshake message.

Field Summary

Modifier and TypeField and Description
private int
private final Map<SSLExtension, byte[]>
private final SSLHandshake.HandshakeMessage
private final Map<Integer, byte[]>

Constructor Summary

AccessConstructor and Description
pack-priv
pack-priv

Method Summary

Modifier and TypeMethod and Description
pack-priv void
consumeOnLoad(HandshakeContext context, SSLExtension[] extensions)

Consume the specified extensions.

pack-priv void
consumeOnTrade(HandshakeContext context, SSLExtension[] extensions)

Consider impact of the specified extensions.

pack-priv byte[]
pack-priv int
pack-priv void
produce(HandshakeContext context, SSLExtension[] extensions)

Produce extension values for the specified extensions.

pack-priv void
reproduce(HandshakeContext context, SSLExtension[] extensions)

Produce extension values for the specified extensions, replacing if there is an existing extension value for a specified extension.

pack-priv void
public String
toString()

Overrides java.lang.Object.toString.

Returns a string representation of the object.

private static String
toString(int extId, byte[] extData)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAllwaitwaitwait

Field Detail

encodedLengthback to summary
private int encodedLength
extMapback to summary
private final Map<SSLExtension, byte[]> extMap
handshakeMessageback to summary
private final SSLHandshake.HandshakeMessage handshakeMessage
logMapback to summary
private final Map<Integer, byte[]> logMap

Constructor Detail

SSLExtensionsback to summary
pack-priv SSLExtensions(SSLHandshake.HandshakeMessage handshakeMessage)
SSLExtensionsback to summary
pack-priv SSLExtensions(SSLHandshake.HandshakeMessage hm, ByteBuffer m, SSLExtension[] extensions) throws IOException

Method Detail

consumeOnLoadback to summary
pack-priv void consumeOnLoad(HandshakeContext context, SSLExtension[] extensions) throws IOException

Consume the specified extensions.

consumeOnTradeback to summary
pack-priv void consumeOnTrade(HandshakeContext context, SSLExtension[] extensions) throws IOException

Consider impact of the specified extensions.

getback to summary
pack-priv byte[] get(SSLExtension ext)
lengthback to summary
pack-priv int length()
produceback to summary
pack-priv void produce(HandshakeContext context, SSLExtension[] extensions) throws IOException

Produce extension values for the specified extensions.

reproduceback to summary
pack-priv void reproduce(HandshakeContext context, SSLExtension[] extensions) throws IOException

Produce extension values for the specified extensions, replacing if there is an existing extension value for a specified extension.

sendback to summary
pack-priv void send(HandshakeOutStream hos) throws IOException
toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object. Satisfying this method's contract implies a non-null result must be returned.

Annotations
@Override
toStringback to summary
private static String toString(int extId, byte[] extData)