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

pack-priv final Class NewSessionTicket

extends Object
Class Inheritance
Imports
java.io.IOException, java.nio.ByteBuffer, java.security.GeneralSecurityException, .SecureRandom, java.text.MessageFormat, java.util.Arrays, .Locale, javax.crypto.KDF, .SecretKey, javax.crypto.spec.HKDFParameterSpec, .SecretKeySpec, javax.net.ssl.SSLHandshakeException, sun.security.ssl.PskKeyExchangeModesExtension.PskKeyExchangeMode, .PskKeyExchangeModesExtension.PskKeyExchangeModesSpec, .SessionTicketExtension.SessionTicketSpec, .SSLHandshake.HandshakeMessage, sun.security.util.HexDumpEncoder

Pack of the NewSessionTicket handshake message.

Nested and Inner Type Summary

Modifier and TypeClass and Description
pack-priv abstract static class
NewSessionTicket.NewSessionTicketMessage

The NewSessionTicketMessage handshake messages.

private static class
pack-priv static class
NewSessionTicket.T12NewSessionTicketMessage

NewSessionTicket for TLS 1.2 and below (RFC 5077)

private static class
NewSessionTicket.T12NewSessionTicketProducer

The "NewSessionTicket" handshake message producer for RFC 5077

private static class
pack-priv static class
NewSessionTicket.T13NewSessionTicketMessage

NewSessionTicket defined by the TLS 1.3

private static class

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 int
pack-priv static final SSLProducer

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
private static SecretKey
derivePreSharedKey(CipherSuite.HashAlg hashAlg, SecretKey resumptionMasterSecret, byte[] nonce)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

handshake12Consumerback to summary
pack-priv static final SSLConsumer handshake12Consumer
handshake12Producerback to summary
pack-priv static final HandshakeProducer handshake12Producer
handshakeConsumerback to summary
pack-priv static final SSLConsumer handshakeConsumer
MAX_TICKET_LIFETIMEback to summary
pack-priv static final int MAX_TICKET_LIFETIME
t13PosthandshakeProducerback to summary
pack-priv static final SSLProducer t13PosthandshakeProducer

Constructor Detail

NewSessionTicketback to summary
pack-priv NewSessionTicket()

Method Detail

derivePreSharedKeyback to summary
private static SecretKey derivePreSharedKey(CipherSuite.HashAlg hashAlg, SecretKey resumptionMasterSecret, byte[] nonce) throws IOException
sun.security.ssl back to summary

pack-priv abstract Class NewSessionTicket.NewSessionTicketMessage

extends HandshakeMessage
Class Inheritance
Known Direct Subclasses
sun.security.ssl.NewSessionTicket.T12NewSessionTicketMessage, sun.security.ssl.NewSessionTicket.T13NewSessionTicketMessage

The NewSessionTicketMessage handshake messages.

Field Summary

Modifier and TypeField and Description
pack-priv byte[]
pack-priv int
Inherited from sun.security.ssl.SSLHandshake.HandshakeMessage:
handshakeContext

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
pack-priv int
pack-priv byte[]
public SSLHandshake
pack-priv boolean
Inherited from sun.security.ssl.SSLHandshake.HandshakeMessage:
messageLengthsendwrite

Field Detail

ticketback to summary
pack-priv byte[] ticket
ticketLifetimeback to summary
pack-priv int ticketLifetime

Constructor Detail

NewSessionTicketMessageback to summary
pack-priv NewSessionTicketMessage(HandshakeContext context)

Method Detail

getTicketAgeAddback to summary
pack-priv int getTicketAgeAdd() throws IOException
getTicketNonceback to summary
pack-priv byte[] getTicketNonce() throws IOException
handshakeTypeback to summary
public SSLHandshake handshakeType()

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

Annotations
@Override
isValidback to summary
pack-priv boolean isValid()
sun.security.ssl back to summary

private final Class NewSessionTicket.T12NewSessionTicketConsumer

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

Constructor Summary

AccessConstructor and Description
private

Method Summary

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

Constructor Detail

T12NewSessionTicketConsumerback to summary
private T12NewSessionTicketConsumer()

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

pack-priv final Class NewSessionTicket.T12NewSessionTicketMessage

extends NewSessionTicketMessage
Class Inheritance

NewSessionTicket for TLS 1.2 and below (RFC 5077)

Field Summary

Inherited from sun.security.ssl.NewSessionTicket.NewSessionTicketMessage:
ticketticketLifetime

Constructor Summary

AccessConstructor and Description
pack-priv
T12NewSessionTicketMessage(HandshakeContext context, int ticketLifetime, byte[] ticket)

pack-priv

Method Summary

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

Overrides java.lang.Object.toString.

Returns a string representation of the object.

Inherited from sun.security.ssl.NewSessionTicket.NewSessionTicketMessage:
getTicketAgeAddgetTicketNoncehandshakeTypeisValid

Constructor Detail

T12NewSessionTicketMessageback to summary
pack-priv T12NewSessionTicketMessage(HandshakeContext context, int ticketLifetime, byte[] ticket)
T12NewSessionTicketMessageback to summary
pack-priv T12NewSessionTicketMessage(HandshakeContext context, ByteBuffer m) throws IOException

Method Detail

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 NewSessionTicket.T12NewSessionTicketProducer

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

The "NewSessionTicket" handshake message producer for RFC 5077

Constructor Summary

AccessConstructor and Description
private

Method Summary

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

Constructor Detail

T12NewSessionTicketProducerback to summary
private T12NewSessionTicketProducer()

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 NewSessionTicket.T13NewSessionTicketConsumer

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

Constructor Summary

AccessConstructor and Description
private

Method Summary

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

Constructor Detail

T13NewSessionTicketConsumerback to summary
private T13NewSessionTicketConsumer()

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

pack-priv final Class NewSessionTicket.T13NewSessionTicketMessage

extends NewSessionTicketMessage
Class Inheritance

NewSessionTicket defined by the TLS 1.3

Field Summary

Modifier and TypeField and Description
pack-priv SSLExtensions
pack-priv int
pack-priv byte[]
Inherited from sun.security.ssl.NewSessionTicket.NewSessionTicketMessage:
ticketticketLifetime

Constructor Summary

AccessConstructor and Description
pack-priv
T13NewSessionTicketMessage(HandshakeContext context, int ticketLifetime, SecureRandom generator, byte[] ticketNonce, byte[] ticket)

pack-priv

Method Summary

Modifier and TypeMethod and Description
pack-priv int
pack-priv byte[]
public int
public void
public String
toString()

Overrides java.lang.Object.toString.

Returns a string representation of the object.

Inherited from sun.security.ssl.NewSessionTicket.NewSessionTicketMessage:
handshakeTypeisValid

Field Detail

extensionsback to summary
pack-priv SSLExtensions extensions
ticketAgeAddback to summary
pack-priv int ticketAgeAdd
ticketNonceback to summary
pack-priv byte[] ticketNonce

Constructor Detail

T13NewSessionTicketMessageback to summary
pack-priv T13NewSessionTicketMessage(HandshakeContext context, int ticketLifetime, SecureRandom generator, byte[] ticketNonce, byte[] ticket)
T13NewSessionTicketMessageback to summary
pack-priv T13NewSessionTicketMessage(HandshakeContext context, ByteBuffer m) throws IOException

Method Detail

getTicketAgeAddback to summary
pack-priv int getTicketAgeAdd()

Overrides sun.security.ssl.NewSessionTicket.NewSessionTicketMessage.getTicketAgeAdd.

getTicketNonceback to summary
pack-priv byte[] getTicketNonce()

Overrides sun.security.ssl.NewSessionTicket.NewSessionTicketMessage.getTicketNonce.

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 NewSessionTicket.T13NewSessionTicketProducer

extends Object
implements SSLProducer
Class Inheritance
  • java.lang.Object
  • sun.security.ssl.NewSessionTicket.T13NewSessionTicketProducer
All Implemented Interfaces
sun.security.ssl.SSLProducer

Constructor Summary

AccessConstructor and Description
private

Method Summary

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

Constructor Detail

T13NewSessionTicketProducerback to summary
private T13NewSessionTicketProducer()

Method Detail

generateNSTback to summary
private NewSessionTicket.NewSessionTicketMessage generateNST(HandshakeContext hc, SSLSessionContextImpl sessionCache) throws IOException
produceback to summary
public byte[] produce(ConnectionContext context) throws IOException

Implements sun.security.ssl.SSLProducer.produce.

Annotations
@Override