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

pack-priv final Class ServerNameExtension

extends Object
Class Inheritance
Imports
java.io.IOException, java.nio.ByteBuffer, java.nio.charset.StandardCharsets, java.util.ArrayList, .Collection, .LinkedHashMap, .List, .Map, .Objects, javax.net.ssl.SNIHostName, .SNIMatcher, .SNIServerName, .SSLProtocolException, .StandardConstants, sun.security.ssl.SSLExtension.ExtensionConsumer, .SSLExtension.SSLExtensionSpec, .SSLHandshake.HandshakeMessage

Pack of the "server_name" extensions [RFC 4366/6066].

Nested and Inner Type Summary

Modifier and TypeClass and Description
private static class
ServerNameExtension.CHServerNameConsumer

Network data consumer of a "server_name" extension in the ClientHello handshake message.

private static class
ServerNameExtension.CHServerNameProducer

Network data producer of a "server_name" extension in the ClientHello handshake message.

pack-priv static class
ServerNameExtension.CHServerNamesSpec

The "server_name" extension.

private static class
private static class
ServerNameExtension.EEServerNameConsumer

Network data consumer of a "server_name" extension in the EncryptedExtensions handshake message.

private static class
ServerNameExtension.EEServerNameProducer

Network data producer of a "server_name" extension in the EncryptedExtensions handshake message.

private static class
ServerNameExtension.SHServerNameConsumer

Network data consumer of a "server_name" extension in the ServerHello handshake message.

private static class
ServerNameExtension.SHServerNameProducer

Network data producer of a "server_name" extension in the ServerHello handshake message.

pack-priv static class
ServerNameExtension.SHServerNamesSpec

The "server_name" extension in the ServerHello handshake message.

private static class

Field Summary

Modifier and TypeField and Description
pack-priv static final HandshakeProducer
pack-priv static final SSLExtension.ExtensionConsumer
pack-priv static final SSLStringizer
pack-priv static final HandshakeProducer
pack-priv static final SSLExtension.ExtensionConsumer
pack-priv static final HandshakeProducer
pack-priv static final SSLExtension.ExtensionConsumer
pack-priv static final SSLStringizer

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

chNetworkProducerback to summary
pack-priv static final HandshakeProducer chNetworkProducer
chOnLoadConsumerback to summary
pack-priv static final SSLExtension.ExtensionConsumer chOnLoadConsumer
chStringizerback to summary
pack-priv static final SSLStringizer chStringizer
eeNetworkProducerback to summary
pack-priv static final HandshakeProducer eeNetworkProducer
eeOnLoadConsumerback to summary
pack-priv static final SSLExtension.ExtensionConsumer eeOnLoadConsumer
shNetworkProducerback to summary
pack-priv static final HandshakeProducer shNetworkProducer
shOnLoadConsumerback to summary
pack-priv static final SSLExtension.ExtensionConsumer shOnLoadConsumer
shStringizerback to summary
pack-priv static final SSLStringizer shStringizer

Constructor Detail

ServerNameExtensionback to summary
pack-priv ServerNameExtension()
sun.security.ssl back to summary

private final Class ServerNameExtension.CHServerNameConsumer

extends Object
implements ExtensionConsumer
Class Inheritance
All Implemented Interfaces
sun.security.ssl.SSLExtension.ExtensionConsumer

Network data consumer of a "server_name" extension in the ClientHello handshake message.

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
private static SNIServerName
public void
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

CHServerNameConsumerback to summary
private CHServerNameConsumer()

Method Detail

chooseSniback to summary
private static SNIServerName chooseSni(Collection<SNIMatcher> matchers, List<SNIServerName> sniNames)
consumeback to summary
public void consume(ConnectionContext context, SSLHandshake.HandshakeMessage message, ByteBuffer buffer) throws IOException

Implements sun.security.ssl.SSLExtension.ExtensionConsumer.consume.

Annotations
@Override
sun.security.ssl back to summary

private final Class ServerNameExtension.CHServerNameProducer

extends Object
implements HandshakeProducer
Class Inheritance
All Implemented Interfaces
sun.security.ssl.HandshakeProducer

Network data producer of a "server_name" extension in the ClientHello handshake message.

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public byte[]
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

CHServerNameProducerback to summary
private CHServerNameProducer()

Method Detail

produceback to summary
public byte[] produce(ConnectionContext context, SSLHandshake.HandshakeMessage message) throws IOException

Implements sun.security.ssl.HandshakeProducer.produce.

Annotations
@Override
sun.security.ssl back to summary

pack-priv final Class ServerNameExtension.CHServerNamesSpec

extends Object
implements SSLExtensionSpec
Class Inheritance
All Implemented Interfaces
sun.security.ssl.SSLExtension.SSLExtensionSpec

The "server_name" extension. See RFC 4366/6066 for the specification of the extension.

Nested and Inner Type Summary

Modifier and TypeClass and Description
private static class

Field Summary

Modifier and TypeField and Description
pack-priv static final int
pack-priv final List<SNIServerName>

Constructor Summary

AccessConstructor and Description
private
private

Method Summary

Modifier and TypeMethod and Description
public String
toString()

Overrides java.lang.Object.toString.

Returns a string representation of the object.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAllwaitwaitwait

Field Detail

NAME_HEADER_LENGTHback to summary
pack-priv static final int NAME_HEADER_LENGTH
serverNamesback to summary
pack-priv final List<SNIServerName> serverNames

Constructor Detail

CHServerNamesSpecback to summary
private CHServerNamesSpec(List<SNIServerName> serverNames)
CHServerNamesSpecback to summary
private CHServerNamesSpec(HandshakeContext hc, ByteBuffer buffer) throws IOException

Method Detail

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
sun.security.ssl back to summary

private Class ServerNameExtension.CHServerNamesSpec.UnknownServerName

extends SNIServerName
Class Inheritance

Constructor Summary

AccessConstructor and Description
pack-priv
UnknownServerName(int code, byte[] encoded)

Constructor Detail

UnknownServerNameback to summary
pack-priv UnknownServerName(int code, byte[] encoded)
sun.security.ssl back to summary

private final Class ServerNameExtension.CHServerNamesStringizer

extends Object
implements SSLStringizer
Class Inheritance
All Implemented Interfaces
sun.security.ssl.SSLStringizer

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public String
toString(HandshakeContext hc, ByteBuffer buffer)

Implements sun.security.ssl.SSLStringizer.toString.

Returns a legible string representation of a ByteBuffer.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

CHServerNamesStringizerback to summary
private CHServerNamesStringizer()

Method Detail

toStringback to summary
public String toString(HandshakeContext hc, ByteBuffer buffer)

Implements sun.security.ssl.SSLStringizer.toString.

Doc from sun.security.ssl.SSLStringizer.toString.

Returns a legible string representation of a ByteBuffer. Note that the implementation MUST not change the internal status of the buffer.

Annotations
@Override
sun.security.ssl back to summary

private final Class ServerNameExtension.EEServerNameConsumer

extends Object
implements ExtensionConsumer
Class Inheritance
All Implemented Interfaces
sun.security.ssl.SSLExtension.ExtensionConsumer

Network data consumer of a "server_name" extension in the EncryptedExtensions handshake message.

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public void
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

EEServerNameConsumerback to summary
private EEServerNameConsumer()

Method Detail

consumeback to summary
public void consume(ConnectionContext context, SSLHandshake.HandshakeMessage message, ByteBuffer buffer) throws IOException

Implements sun.security.ssl.SSLExtension.ExtensionConsumer.consume.

Annotations
@Override
sun.security.ssl back to summary

private final Class ServerNameExtension.EEServerNameProducer

extends Object
implements HandshakeProducer
Class Inheritance
All Implemented Interfaces
sun.security.ssl.HandshakeProducer

Network data producer of a "server_name" extension in the EncryptedExtensions handshake message.

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public byte[]
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

EEServerNameProducerback to summary
private EEServerNameProducer()

Method Detail

produceback to summary
public byte[] produce(ConnectionContext context, SSLHandshake.HandshakeMessage message) throws IOException

Implements sun.security.ssl.HandshakeProducer.produce.

Annotations
@Override
sun.security.ssl back to summary

private final Class ServerNameExtension.SHServerNameConsumer

extends Object
implements ExtensionConsumer
Class Inheritance
All Implemented Interfaces
sun.security.ssl.SSLExtension.ExtensionConsumer

Network data consumer of a "server_name" extension in the ServerHello handshake message.

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public void
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

SHServerNameConsumerback to summary
private SHServerNameConsumer()

Method Detail

consumeback to summary
public void consume(ConnectionContext context, SSLHandshake.HandshakeMessage message, ByteBuffer buffer) throws IOException

Implements sun.security.ssl.SSLExtension.ExtensionConsumer.consume.

Annotations
@Override
sun.security.ssl back to summary

private final Class ServerNameExtension.SHServerNameProducer

extends Object
implements HandshakeProducer
Class Inheritance
All Implemented Interfaces
sun.security.ssl.HandshakeProducer

Network data producer of a "server_name" extension in the ServerHello handshake message.

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public byte[]
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

SHServerNameProducerback to summary
private SHServerNameProducer()

Method Detail

produceback to summary
public byte[] produce(ConnectionContext context, SSLHandshake.HandshakeMessage message) throws IOException

Implements sun.security.ssl.HandshakeProducer.produce.

Annotations
@Override
sun.security.ssl back to summary

pack-priv final Class ServerNameExtension.SHServerNamesSpec

extends Object
implements SSLExtensionSpec
Class Inheritance
All Implemented Interfaces
sun.security.ssl.SSLExtension.SSLExtensionSpec

The "server_name" extension in the ServerHello handshake message. The "extension_data" field of this extension shall be empty.

Field Summary

Modifier and TypeField and Description
pack-priv static final ServerNameExtension.SHServerNamesSpec

Constructor Summary

AccessConstructor and Description
private
private

Method Summary

Modifier and TypeMethod and Description
public String
toString()

Overrides java.lang.Object.toString.

Returns a string representation of the object.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAllwaitwaitwait

Field Detail

DEFAULTback to summary
pack-priv static final ServerNameExtension.SHServerNamesSpec DEFAULT

Constructor Detail

SHServerNamesSpecback to summary
private SHServerNamesSpec()
SHServerNamesSpecback to summary
private SHServerNamesSpec(HandshakeContext hc, ByteBuffer buffer) throws IOException

Method Detail

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
sun.security.ssl back to summary

private final Class ServerNameExtension.SHServerNamesStringizer

extends Object
implements SSLStringizer
Class Inheritance
All Implemented Interfaces
sun.security.ssl.SSLStringizer

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public String
toString(HandshakeContext hc, ByteBuffer buffer)

Implements sun.security.ssl.SSLStringizer.toString.

Returns a legible string representation of a ByteBuffer.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

SHServerNamesStringizerback to summary
private SHServerNamesStringizer()

Method Detail

toStringback to summary
public String toString(HandshakeContext hc, ByteBuffer buffer)

Implements sun.security.ssl.SSLStringizer.toString.

Doc from sun.security.ssl.SSLStringizer.toString.

Returns a legible string representation of a ByteBuffer. Note that the implementation MUST not change the internal status of the buffer.

Annotations
@Override