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

pack-priv final Class ServerHello

extends Object
Class Inheritance
Imports
java.io.IOException, java.nio.ByteBuffer, java.security.AlgorithmConstraints, .CryptoPrimitive, .GeneralSecurityException, java.text.MessageFormat, java.util.*, javax.crypto.KDF, .SecretKey, javax.crypto.spec.HKDFParameterSpec, .IvParameterSpec, javax.net.ssl.SSLException, .SSLHandshakeException, .SSLProtocolException, sun.security.ssl.CipherSuite.KeyExchange, .ClientHello.ClientHelloMessage, .SSLCipher.SSLReadCipher, .SSLCipher.SSLWriteCipher, .SSLHandshake.HandshakeMessage, .SupportedVersionsExtension.SHSupportedVersionsSpec

Pack of the ServerHello/HelloRetryRequest handshake message.

Nested and Inner Type Summary

Modifier and TypeClass and Description
private static class
ServerHello.ServerHelloConsumer

The "ServerHello" handshake message consumer.

pack-priv static class
ServerHello.ServerHelloMessage

The ServerHello handshake message.

private static class
private static class
ServerHello.T12ServerHelloProducer

The "ServerHello" handshake message producer.

private static class
private static class
ServerHello.T13HelloRetryRequestProducer

The "HelloRetryRequest" handshake message producer.

private static class
ServerHello.T13HelloRetryRequestReproducer

The "HelloRetryRequest" handshake message reproducer.

private static class
private static class
ServerHello.T13ServerHelloProducer

The "ServerHello" handshake message producer.

Field Summary

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

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

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

Field Detail

d12HandshakeConsumerback to summary
private static final HandshakeConsumer d12HandshakeConsumer
d13HandshakeConsumerback to summary
private static final HandshakeConsumer d13HandshakeConsumer
d13HrrHandshakeConsumerback to summary
private static final HandshakeConsumer d13HrrHandshakeConsumer
handshakeConsumerback to summary
pack-priv static final SSLConsumer handshakeConsumer
hrrHandshakeProducerback to summary
pack-priv static final HandshakeProducer hrrHandshakeProducer
hrrReproducerback to summary
pack-priv static final HandshakeProducer hrrReproducer
t12HandshakeConsumerback to summary
private static final HandshakeConsumer t12HandshakeConsumer
t12HandshakeProducerback to summary
pack-priv static final HandshakeProducer t12HandshakeProducer
t13HandshakeConsumerback to summary
private static final HandshakeConsumer t13HandshakeConsumer
t13HandshakeProducerback to summary
pack-priv static final HandshakeProducer t13HandshakeProducer
t13HrrHandshakeConsumerback to summary
private static final HandshakeConsumer t13HrrHandshakeConsumer

Constructor Detail

ServerHelloback to summary
pack-priv ServerHello()

Method Detail

setUpPskKDback to summary
private static void setUpPskKD(HandshakeContext hc, SecretKey psk) throws SSLHandshakeException
sun.security.ssl back to summary

private final Class ServerHello.ServerHelloConsumer

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

The "ServerHello" handshake message consumer.

Constructor Summary

AccessConstructor and Description
private

Method Summary

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

Constructor Detail

ServerHelloConsumerback to summary
private ServerHelloConsumer()

Method Detail

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

Implements sun.security.ssl.SSLConsumer.consume.

Annotations
@Override
onHelloRetryRequestback to summary
private void onHelloRetryRequest(ClientHandshakeContext chc, ServerHello.ServerHelloMessage helloRetryRequest) throws IOException
onServerHelloback to summary
private void onServerHello(ClientHandshakeContext chc, ServerHello.ServerHelloMessage serverHello) throws IOException
sun.security.ssl back to summary

pack-priv final Class ServerHello.ServerHelloMessage

extends HandshakeMessage
Class Inheritance

The ServerHello handshake message.

Field Summary

Modifier and TypeField and Description
pack-priv final CipherSuite
pack-priv final ClientHello.ClientHelloMessage
pack-priv final byte
pack-priv final SSLExtensions
pack-priv final ByteBuffer
pack-priv final RandomCookie
pack-priv final ProtocolVersion
pack-priv final SessionId
Inherited from sun.security.ssl.SSLHandshake.HandshakeMessage:
handshakeContext

Constructor Summary

AccessConstructor and Description
pack-priv
ServerHelloMessage(HandshakeContext context, ProtocolVersion serverVersion, SessionId sessionId, CipherSuite cipherSuite, RandomCookie serverRandom, ClientHello.ClientHelloMessage clientHello)

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

cipherSuiteback to summary
pack-priv final CipherSuite cipherSuite
clientHelloback to summary
pack-priv final ClientHello.ClientHelloMessage clientHello
compressionMethodback to summary
pack-priv final byte compressionMethod
extensionsback to summary
pack-priv final SSLExtensions extensions
handshakeRecordback to summary
pack-priv final ByteBuffer handshakeRecord
serverRandomback to summary
pack-priv final RandomCookie serverRandom
serverVersionback to summary
pack-priv final ProtocolVersion serverVersion
sessionIdback to summary
pack-priv final SessionId sessionId

Constructor Detail

ServerHelloMessageback to summary
pack-priv ServerHelloMessage(HandshakeContext context, ProtocolVersion serverVersion, SessionId sessionId, CipherSuite cipherSuite, RandomCookie serverRandom, ClientHello.ClientHelloMessage clientHello)
ServerHelloMessageback to summary
pack-priv ServerHelloMessage(HandshakeContext context, 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 ServerHello.T12ServerHelloConsumer

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

Constructor Summary

AccessConstructor and Description
private

Method Summary

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

Constructor Detail

T12ServerHelloConsumerback to summary
private T12ServerHelloConsumer()

Method Detail

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

Implements sun.security.ssl.HandshakeConsumer.consume.

Annotations
@Override
sun.security.ssl back to summary

private final Class ServerHello.T12ServerHelloProducer

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

The "ServerHello" handshake message producer.

Nested and Inner Type Summary

Modifier and TypeClass and Description
private static class

Constructor Summary

AccessConstructor and Description
private

Method Summary

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

Constructor Detail

T12ServerHelloProducerback to summary
private T12ServerHelloProducer()

Method Detail

chooseCipherSuiteback to summary
private static ServerHello.T12ServerHelloProducer.KeyExchangeProperties chooseCipherSuite(ServerHandshakeContext shc, ClientHello.ClientHelloMessage clientHello) throws IOException
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 ServerHello.T12ServerHelloProducer.KeyExchangeProperties

extends Object
Class Inheritance
  • java.lang.Object
  • sun.security.ssl.ServerHello.T12ServerHelloProducer.KeyExchangeProperties

Field Summary

Modifier and TypeField and Description
pack-priv final CipherSuite
pack-priv final SSLKeyExchange
pack-priv final SSLPossession[]

Constructor Summary

AccessConstructor and Description
private
KeyExchangeProperties(CipherSuite cipherSuite, SSLKeyExchange keyExchange, SSLPossession[] possessions)

Field Detail

cipherSuiteback to summary
pack-priv final CipherSuite cipherSuite
keyExchangeback to summary
pack-priv final SSLKeyExchange keyExchange
possessionsback to summary
pack-priv final SSLPossession[] possessions

Constructor Detail

KeyExchangePropertiesback to summary
private KeyExchangeProperties(CipherSuite cipherSuite, SSLKeyExchange keyExchange, SSLPossession[] possessions)
sun.security.ssl back to summary

private final Class ServerHello.T13HelloRetryRequestConsumer

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

Constructor Summary

AccessConstructor and Description
private

Method Summary

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

Constructor Detail

T13HelloRetryRequestConsumerback to summary
private T13HelloRetryRequestConsumer()

Method Detail

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

Implements sun.security.ssl.HandshakeConsumer.consume.

Annotations
@Override
sun.security.ssl back to summary

private final Class ServerHello.T13HelloRetryRequestProducer

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

The "HelloRetryRequest" 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

T13HelloRetryRequestProducerback to summary
private T13HelloRetryRequestProducer()

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 ServerHello.T13HelloRetryRequestReproducer

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

The "HelloRetryRequest" handshake message reproducer.

Constructor Summary

AccessConstructor and Description
private

Method Summary

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

Constructor Detail

T13HelloRetryRequestReproducerback to summary
private T13HelloRetryRequestReproducer()

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 ServerHello.T13ServerHelloConsumer

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

Constructor Summary

AccessConstructor and Description
private

Method Summary

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

Constructor Detail

T13ServerHelloConsumerback to summary
private T13ServerHelloConsumer()

Method Detail

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

Implements sun.security.ssl.HandshakeConsumer.consume.

Annotations
@Override
sun.security.ssl back to summary

private final Class ServerHello.T13ServerHelloProducer

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

The "ServerHello" handshake message producer.

Constructor Summary

AccessConstructor and Description
private

Method Summary

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

Constructor Detail

T13ServerHelloProducerback to summary
private T13ServerHelloProducer()

Method Detail

chooseCipherSuiteback to summary
private static CipherSuite chooseCipherSuite(ServerHandshakeContext shc, ClientHello.ClientHelloMessage clientHello)
produceback to summary
public byte[] produce(ConnectionContext context, SSLHandshake.HandshakeMessage message) throws IOException

Implements sun.security.ssl.HandshakeProducer.produce.

Annotations
@Override