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

pack-priv final Class ECDHClientKeyExchange

extends Object
Class Inheritance
Imports
java.io.IOException, java.nio.ByteBuffer, java.security.CryptoPrimitive, .GeneralSecurityException, .PublicKey, java.security.interfaces.ECPublicKey, .XECPublicKey, java.security.spec.AlgorithmParameterSpec, .ECParameterSpec, .NamedParameterSpec, java.text.MessageFormat, java.util.EnumSet, .Locale, javax.crypto.SecretKey, sun.security.ssl.SSLHandshake.HandshakeMessage, .X509Authentication.X509Credentials, .X509Authentication.X509Possession, sun.security.util.HexDumpEncoder

Pack of the "ClientKeyExchange" handshake message. This file is used by both the ECDH/ECDHE/XDH code since much of the code is the same between the EC named groups (i.e. x25519/x448/secp*r1), even though the APIs are very different (i.e. ECPublicKey/XECPublicKey, KeyExchange.getInstance("EC"/"XDH"), etc.).

Nested and Inner Type Summary

Modifier and TypeClass and Description
private static class
ECDHClientKeyExchange.ECDHClientKeyExchangeConsumer

The ECDH "ClientKeyExchange" handshake message consumer.

private static class
ECDHClientKeyExchange.ECDHClientKeyExchangeMessage

The ECDH/ECDHE/XDH ClientKeyExchange handshake message.

private static class
ECDHClientKeyExchange.ECDHClientKeyExchangeProducer

The ECDH "ClientKeyExchange" handshake message producer.

private static class
ECDHClientKeyExchange.ECDHEClientKeyExchangeConsumer

The ECDHE "ClientKeyExchange" handshake message consumer.

private static class
ECDHClientKeyExchange.ECDHEClientKeyExchangeProducer

The ECDHE "ClientKeyExchange" handshake message producer.

Field Summary

Modifier and TypeField and Description
pack-priv static final SSLConsumer
pack-priv static final HandshakeProducer
pack-priv static final SSLConsumer
pack-priv static final HandshakeProducer

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

ecdheHandshakeConsumerback to summary
pack-priv static final SSLConsumer ecdheHandshakeConsumer
ecdheHandshakeProducerback to summary
pack-priv static final HandshakeProducer ecdheHandshakeProducer
ecdhHandshakeConsumerback to summary
pack-priv static final SSLConsumer ecdhHandshakeConsumer
ecdhHandshakeProducerback to summary
pack-priv static final HandshakeProducer ecdhHandshakeProducer

Constructor Detail

ECDHClientKeyExchangeback to summary
pack-priv ECDHClientKeyExchange()
sun.security.ssl back to summary

private final Class ECDHClientKeyExchange.ECDHClientKeyExchangeConsumer

extends Object
implements SSLConsumer
Class Inheritance
  • java.lang.Object
  • sun.security.ssl.ECDHClientKeyExchange.ECDHClientKeyExchangeConsumer
All Implemented Interfaces
sun.security.ssl.SSLConsumer

The ECDH "ClientKeyExchange" handshake message consumer.

Constructor Summary

AccessConstructor and Description
private

Method Summary

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

Constructor Detail

ECDHClientKeyExchangeConsumerback to summary
private ECDHClientKeyExchangeConsumer()

Method Detail

consumeback to summary
public void consume(ConnectionContext context, ByteBuffer message) throws IOException

Implements sun.security.ssl.SSLConsumer.consume.

Annotations
@Override
sun.security.ssl back to summary

private final Class ECDHClientKeyExchange.ECDHClientKeyExchangeMessage

extends HandshakeMessage
Class Inheritance

The ECDH/ECDHE/XDH ClientKeyExchange handshake message.

Field Summary

Modifier and TypeField and Description
private final byte[]
Inherited from sun.security.ssl.SSLHandshake.HandshakeMessage:
handshakeContext

Constructor Summary

AccessConstructor and Description
pack-priv
ECDHClientKeyExchangeMessage(HandshakeContext handshakeContext, byte[] encodedPublicKey)

pack-priv

Method Summary

Modifier and TypeMethod and Description
public SSLHandshake
public int
public void
public String
toString()

Overrides java.lang.Object.toString.

Returns a string representation of the object.

Inherited from sun.security.ssl.SSLHandshake.HandshakeMessage:
write

Field Detail

encodedPointback to summary
private final byte[] encodedPoint

Constructor Detail

ECDHClientKeyExchangeMessageback to summary
pack-priv ECDHClientKeyExchangeMessage(HandshakeContext handshakeContext, byte[] encodedPublicKey)
ECDHClientKeyExchangeMessageback to summary
pack-priv ECDHClientKeyExchangeMessage(HandshakeContext handshakeContext, ByteBuffer m) throws IOException

Method Detail

handshakeTypeback to summary
public SSLHandshake handshakeType()

Implements abstract sun.security.ssl.SSLHandshake.HandshakeMessage.handshakeType.

Annotations
@Override
messageLengthback to summary
public int messageLength()

Implements abstract sun.security.ssl.SSLHandshake.HandshakeMessage.messageLength.

Annotations
@Override
sendback to summary
public void send(HandshakeOutStream hos) throws IOException

Implements abstract sun.security.ssl.SSLHandshake.HandshakeMessage.send.

Annotations
@Override
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 ECDHClientKeyExchange.ECDHClientKeyExchangeProducer

extends Object
implements HandshakeProducer
Class Inheritance
  • java.lang.Object
  • sun.security.ssl.ECDHClientKeyExchange.ECDHClientKeyExchangeProducer
All Implemented Interfaces
sun.security.ssl.HandshakeProducer

The ECDH "ClientKeyExchange" handshake message producer.

Constructor Summary

AccessConstructor and Description
private

Method Summary

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

Constructor Detail

ECDHClientKeyExchangeProducerback to summary
private ECDHClientKeyExchangeProducer()

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 ECDHClientKeyExchange.ECDHEClientKeyExchangeConsumer

extends Object
implements SSLConsumer
Class Inheritance
  • java.lang.Object
  • sun.security.ssl.ECDHClientKeyExchange.ECDHEClientKeyExchangeConsumer
All Implemented Interfaces
sun.security.ssl.SSLConsumer

The ECDHE "ClientKeyExchange" handshake message consumer.

Constructor Summary

AccessConstructor and Description
private

Method Summary

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

Constructor Detail

ECDHEClientKeyExchangeConsumerback to summary
private ECDHEClientKeyExchangeConsumer()

Method Detail

consumeback to summary
public void consume(ConnectionContext context, ByteBuffer message) throws IOException

Implements sun.security.ssl.SSLConsumer.consume.

Annotations
@Override
sun.security.ssl back to summary

private final Class ECDHClientKeyExchange.ECDHEClientKeyExchangeProducer

extends Object
implements HandshakeProducer
Class Inheritance
  • java.lang.Object
  • sun.security.ssl.ECDHClientKeyExchange.ECDHEClientKeyExchangeProducer
All Implemented Interfaces
sun.security.ssl.HandshakeProducer

The ECDHE "ClientKeyExchange" handshake message producer.

Constructor Summary

AccessConstructor and Description
private

Method Summary

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

Constructor Detail

ECDHEClientKeyExchangeProducerback to summary
private ECDHEClientKeyExchangeProducer()

Method Detail

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

Implements sun.security.ssl.HandshakeProducer.produce.

Annotations
@Override