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

pack-priv final Class AlpnExtension

extends Object
Class Inheritance
Imports
java.io.IOException, java.nio.ByteBuffer, java.nio.charset.Charset, java.security.Security, java.util.*, javax.net.ssl.SSLEngine, .SSLProtocolException, .SSLSocket, sun.security.ssl.SSLExtension.ExtensionConsumer, .SSLExtension.SSLExtensionSpec, .SSLHandshake.HandshakeMessage

Pack of the "application_layer_protocol_negotiation" extensions [RFC 7301].

Nested and Inner Type Summary

Modifier and TypeClass and Description
pack-priv static class
AlpnExtension.AlpnSpec

The "application_layer_protocol_negotiation" extension.

private static class
private static class
AlpnExtension.CHAlpnAbsence

The absence processing if the extension is not present in a ClientHello handshake message.

private static class
AlpnExtension.CHAlpnConsumer

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

private static class
AlpnExtension.CHAlpnProducer

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

private static class
AlpnExtension.SHAlpnAbsence

The absence processing if the extension is not present in the ServerHello handshake message.

private static class
AlpnExtension.SHAlpnConsumer

Network data consumer of the extension in the ServerHello handshake message.

private static class
AlpnExtension.SHAlpnProducer

Network data producer of the extension in the ServerHello handshake message.

Field Summary

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

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

alpnCharsetback to summary
pack-priv static final Charset alpnCharset
alpnStringizerback to summary
pack-priv static final SSLStringizer alpnStringizer
chNetworkProducerback to summary
pack-priv static final HandshakeProducer chNetworkProducer
chOnLoadAbsenceback to summary
pack-priv static final HandshakeAbsence chOnLoadAbsence
chOnLoadConsumerback to summary
pack-priv static final SSLExtension.ExtensionConsumer chOnLoadConsumer
eeNetworkProducerback to summary
pack-priv static final HandshakeProducer eeNetworkProducer
eeOnLoadAbsenceback to summary
pack-priv static final HandshakeAbsence eeOnLoadAbsence
eeOnLoadConsumerback to summary
pack-priv static final SSLExtension.ExtensionConsumer eeOnLoadConsumer
shNetworkProducerback to summary
pack-priv static final HandshakeProducer shNetworkProducer
shOnLoadAbsenceback to summary
pack-priv static final HandshakeAbsence shOnLoadAbsence
shOnLoadConsumerback to summary
pack-priv static final SSLExtension.ExtensionConsumer shOnLoadConsumer

Constructor Detail

AlpnExtensionback to summary
pack-priv AlpnExtension()
sun.security.ssl back to summary

pack-priv final Class AlpnExtension.AlpnSpec

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

The "application_layer_protocol_negotiation" extension.

See RFC 7301 for the specification of this extension.

Field Summary

Modifier and TypeField and Description
pack-priv final List<String>

Constructor Summary

AccessConstructor and Description
private
AlpnSpec(String[] applicationProtocols)

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

applicationProtocolsback to summary
pack-priv final List<String> applicationProtocols

Constructor Detail

AlpnSpecback to summary
private AlpnSpec(String[] applicationProtocols)
AlpnSpecback to summary
private AlpnSpec(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 AlpnExtension.AlpnStringizer

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

AlpnStringizerback to summary
private AlpnStringizer()

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 AlpnExtension.CHAlpnAbsence

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

The absence processing if the extension is not present in a ClientHello 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

CHAlpnAbsenceback to summary
private CHAlpnAbsence()

Method Detail

absentback to summary
public void absent(ConnectionContext context, SSLHandshake.HandshakeMessage message) throws IOException

Implements sun.security.ssl.HandshakeAbsence.absent.

Annotations
@Override
sun.security.ssl back to summary

private final Class AlpnExtension.CHAlpnConsumer

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

Network data consumer of the extension in a ClientHello 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

CHAlpnConsumerback to summary
private CHAlpnConsumer()

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 AlpnExtension.CHAlpnProducer

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

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

Field Summary

Modifier and TypeField and Description
pack-priv static final int
pack-priv static final int

Constructor Summary

AccessConstructor and Description
private

Method Summary

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

Field Detail

MAX_AP_LENGTHback to summary
pack-priv static final int MAX_AP_LENGTH
MAX_AP_LIST_LENGTHback to summary
pack-priv static final int MAX_AP_LIST_LENGTH

Constructor Detail

CHAlpnProducerback to summary
private CHAlpnProducer()

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 AlpnExtension.SHAlpnAbsence

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

The absence processing if the extension is not present 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

SHAlpnAbsenceback to summary
private SHAlpnAbsence()

Method Detail

absentback to summary
public void absent(ConnectionContext context, SSLHandshake.HandshakeMessage message) throws IOException

Implements sun.security.ssl.HandshakeAbsence.absent.

Annotations
@Override
sun.security.ssl back to summary

private final Class AlpnExtension.SHAlpnConsumer

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

Network data consumer of the 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

SHAlpnConsumerback to summary
private SHAlpnConsumer()

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 AlpnExtension.SHAlpnProducer

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

Network data producer of the 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

SHAlpnProducerback to summary
private SHAlpnProducer()

Method Detail

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

Implements sun.security.ssl.HandshakeProducer.produce.

Annotations
@Override