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

pack-priv final Class KeyShareExtension

extends Object
Class Inheritance
Imports
java.io.IOException, java.nio.ByteBuffer, java.security.AlgorithmConstraints, .CryptoPrimitive, .GeneralSecurityException, java.security.spec.AlgorithmParameterSpec, .NamedParameterSpec, java.text.MessageFormat, java.util.*, javax.net.ssl.SSLProtocolException, sun.security.ssl.NamedGroup.NamedGroupSpec, .SSLExtension.ExtensionConsumer, .SSLExtension.SSLExtensionSpec, .SSLHandshake.HandshakeMessage, sun.security.util.HexDumpEncoder

Pack of the "key_share" extensions.

Nested and Inner Type Summary

Modifier and TypeClass and Description
private static class
KeyShareExtension.CHKeyShareConsumer

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

private static class
KeyShareExtension.CHKeyShareOnTradeAbsence

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

private static class
KeyShareExtension.CHKeyShareProducer

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

pack-priv static class
KeyShareExtension.CHKeyShareSpec

The "key_share" extension in a ClientHello handshake message.

private static class
private static class
KeyShareExtension.HRRKeyShareConsumer

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

private static class
KeyShareExtension.HRRKeyShareProducer

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

private static class
KeyShareExtension.HRRKeyShareReproducer

Network data producer of the extension for stateless HelloRetryRequest reconstruction.

pack-priv static class
KeyShareExtension.HRRKeyShareSpec

The key share entry used in HelloRetryRequest "key_share" extensions.

private static class
private static class
KeyShareExtension.KeyShareEntry

The key share entry used in "key_share" extensions.

private static class
KeyShareExtension.SHKeyShareAbsence

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

private static class
KeyShareExtension.SHKeyShareConsumer

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

private static class
KeyShareExtension.SHKeyShareProducer

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

pack-priv static class
KeyShareExtension.SHKeyShareSpec

The key share entry used in ServerHello "key_share" extensions.

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 HandshakeAbsence
pack-priv static final SSLStringizer
pack-priv static final HandshakeProducer
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 HandshakeAbsence
pack-priv static final SSLExtension.ExtensionConsumer
pack-priv static final SSLStringizer

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
private static boolean
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
chOnTradeAbsenceback to summary
pack-priv static final HandshakeAbsence chOnTradeAbsence
chStringizerback to summary
pack-priv static final SSLStringizer chStringizer
hrrNetworkProducerback to summary
pack-priv static final HandshakeProducer hrrNetworkProducer
hrrNetworkReproducerback to summary
pack-priv static final HandshakeProducer hrrNetworkReproducer
hrrOnLoadConsumerback to summary
pack-priv static final SSLExtension.ExtensionConsumer hrrOnLoadConsumer
hrrStringizerback to summary
pack-priv static final SSLStringizer hrrStringizer
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
shStringizerback to summary
pack-priv static final SSLStringizer shStringizer

Constructor Detail

KeyShareExtensionback to summary
pack-priv KeyShareExtension()

Method Detail

isCredentialPermittedback to summary
private static boolean isCredentialPermitted(AlgorithmConstraints constraints, SSLCredentials cred)
sun.security.ssl back to summary

private final Class KeyShareExtension.CHKeyShareConsumer

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

CHKeyShareConsumerback to summary
private CHKeyShareConsumer()

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 KeyShareExtension.CHKeyShareOnTradeAbsence

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

CHKeyShareOnTradeAbsenceback to summary
private CHKeyShareOnTradeAbsence()

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 KeyShareExtension.CHKeyShareProducer

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

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

Constructor Summary

AccessConstructor and Description
private

Method Summary

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

Constructor Detail

CHKeyShareProducerback to summary
private CHKeyShareProducer()

Method Detail

getShareback to summary
private static byte[] getShare(ClientHandshakeContext chc, NamedGroup ng)
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 KeyShareExtension.CHKeyShareSpec

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

The "key_share" extension in a ClientHello handshake message.

Field Summary

Modifier and TypeField and Description
pack-priv final List<KeyShareExtension.KeyShareEntry>

Constructor Summary

AccessConstructor and Description
private
private
CHKeyShareSpec(HandshakeContext handshakeContext, ByteBuffer buffer)

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

clientSharesback to summary
pack-priv final List<KeyShareExtension.KeyShareEntry> clientShares

Constructor Detail

CHKeyShareSpecback to summary
private CHKeyShareSpec(List<KeyShareExtension.KeyShareEntry> clientShares)
CHKeyShareSpecback to summary
private CHKeyShareSpec(HandshakeContext handshakeContext, 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 KeyShareExtension.CHKeyShareStringizer

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 handshakeContext, ByteBuffer buffer)

Implements sun.security.ssl.SSLStringizer.toString.

Returns a legible string representation of a ByteBuffer.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

CHKeyShareStringizerback to summary
private CHKeyShareStringizer()

Method Detail

toStringback to summary
public String toString(HandshakeContext handshakeContext, 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 KeyShareExtension.HRRKeyShareConsumer

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

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

HRRKeyShareConsumerback to summary
private HRRKeyShareConsumer()

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 KeyShareExtension.HRRKeyShareProducer

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

Network data producer of the extension in a HelloRetryRequest 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

HRRKeyShareProducerback to summary
private HRRKeyShareProducer()

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 KeyShareExtension.HRRKeyShareReproducer

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

Network data producer of the extension for stateless HelloRetryRequest reconstruction.

Constructor Summary

AccessConstructor and Description
private

Method Summary

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

Constructor Detail

HRRKeyShareReproducerback to summary
private HRRKeyShareReproducer()

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 KeyShareExtension.HRRKeyShareSpec

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

The key share entry used in HelloRetryRequest "key_share" extensions.

Field Summary

Modifier and TypeField and Description
pack-priv final int

Constructor Summary

AccessConstructor and Description
pack-priv
private
HRRKeyShareSpec(HandshakeContext handshakeContext, ByteBuffer buffer)

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

selectedGroupback to summary
pack-priv final int selectedGroup

Constructor Detail

HRRKeyShareSpecback to summary
pack-priv HRRKeyShareSpec(NamedGroup serverGroup)
HRRKeyShareSpecback to summary
private HRRKeyShareSpec(HandshakeContext handshakeContext, 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 KeyShareExtension.HRRKeyShareStringizer

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 handshakeContext, ByteBuffer buffer)

Implements sun.security.ssl.SSLStringizer.toString.

Returns a legible string representation of a ByteBuffer.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

HRRKeyShareStringizerback to summary
private HRRKeyShareStringizer()

Method Detail

toStringback to summary
public String toString(HandshakeContext handshakeContext, 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 KeyShareExtension.KeyShareEntry

extends Object
Class Inheritance

The key share entry used in "key_share" extensions.

Field Summary

Modifier and TypeField and Description
pack-priv final byte[]
pack-priv final int

Constructor Summary

AccessConstructor and Description
private
KeyShareEntry(int namedGroupId, byte[] keyExchange)

Method Summary

Modifier and TypeMethod and Description
private byte[]
private int
public String
toString()

Overrides java.lang.Object.toString.

Returns a string representation of the object.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAllwaitwaitwait

Field Detail

keyExchangeback to summary
pack-priv final byte[] keyExchange
namedGroupIdback to summary
pack-priv final int namedGroupId

Constructor Detail

KeyShareEntryback to summary
private KeyShareEntry(int namedGroupId, byte[] keyExchange)

Method Detail

getEncodedback to summary
private byte[] getEncoded()
getEncodedSizeback to summary
private int getEncodedSize()
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 KeyShareExtension.SHKeyShareAbsence

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

SHKeyShareAbsenceback to summary
private SHKeyShareAbsence()

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 KeyShareExtension.SHKeyShareConsumer

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

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

SHKeyShareConsumerback to summary
private SHKeyShareConsumer()

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 KeyShareExtension.SHKeyShareProducer

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

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

SHKeyShareProducerback to summary
private SHKeyShareProducer()

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 KeyShareExtension.SHKeyShareSpec

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

The key share entry used in ServerHello "key_share" extensions.

Field Summary

Modifier and TypeField and Description
pack-priv final KeyShareExtension.KeyShareEntry

Constructor Summary

AccessConstructor and Description
pack-priv
private
SHKeyShareSpec(HandshakeContext handshakeContext, ByteBuffer buffer)

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

serverShareback to summary
pack-priv final KeyShareExtension.KeyShareEntry serverShare

Constructor Detail

SHKeyShareSpecback to summary
pack-priv SHKeyShareSpec(KeyShareExtension.KeyShareEntry serverShare)
SHKeyShareSpecback to summary
private SHKeyShareSpec(HandshakeContext handshakeContext, 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 KeyShareExtension.SHKeyShareStringizer

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 handshakeContext, ByteBuffer buffer)

Implements sun.security.ssl.SSLStringizer.toString.

Returns a legible string representation of a ByteBuffer.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

SHKeyShareStringizerback to summary
private SHKeyShareStringizer()

Method Detail

toStringback to summary
public String toString(HandshakeContext handshakeContext, 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