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

pack-priv abstract Class HelloCookieManager

extends Object
Class Inheritance
Known Direct Subclasses
sun.security.ssl.HelloCookieManager.D10HelloCookieManager, sun.security.ssl.HelloCookieManager.D13HelloCookieManager, sun.security.ssl.HelloCookieManager.T13HelloCookieManager
Imports
java.io.IOException, java.nio.charset.StandardCharsets, java.security.MessageDigest, .NoSuchAlgorithmException, .SecureRandom, java.util.Arrays, java.util.concurrent.locks.ReentrantLock

(D)TLS handshake cookie manager

Nested and Inner Type Summary

Modifier and TypeClass and Description
pack-priv static class
private static class
private static class
private static class

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
pack-priv abstract byte[]
pack-priv abstract boolean
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

HelloCookieManagerback to summary
pack-priv HelloCookieManager()

Method Detail

createCookieback to summary
pack-priv abstract byte[] createCookie(ServerHandshakeContext context, ClientHello.ClientHelloMessage clientHello) throws IOException
isCookieValidback to summary
pack-priv abstract boolean isCookieValid(ServerHandshakeContext context, ClientHello.ClientHelloMessage clientHello, byte[] cookie) throws IOException
sun.security.ssl back to summary

pack-priv Class HelloCookieManager.Builder

extends Object
Class Inheritance

Field Summary

Modifier and TypeField and Description
private volatile HelloCookieManager.D10HelloCookieManager
private volatile HelloCookieManager.D13HelloCookieManager
private final ReentrantLock
pack-priv final SecureRandom
private volatile HelloCookieManager.T13HelloCookieManager

Constructor Summary

AccessConstructor and Description
pack-priv
Builder(SecureRandom secureRandom)

Method Summary

Modifier and TypeMethod and Description
pack-priv HelloCookieManager
valueOf(ProtocolVersion protocolVersion)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

d10HelloCookieManagerback to summary
private volatile HelloCookieManager.D10HelloCookieManager d10HelloCookieManager
d13HelloCookieManagerback to summary
private volatile HelloCookieManager.D13HelloCookieManager d13HelloCookieManager
managerLockback to summary
private final ReentrantLock managerLock
secureRandomback to summary
pack-priv final SecureRandom secureRandom
t13HelloCookieManagerback to summary
private volatile HelloCookieManager.T13HelloCookieManager t13HelloCookieManager

Constructor Detail

Builderback to summary
pack-priv Builder(SecureRandom secureRandom)

Method Detail

valueOfback to summary
pack-priv HelloCookieManager valueOf(ProtocolVersion protocolVersion)
sun.security.ssl back to summary

private final Class HelloCookieManager.D10HelloCookieManager

extends HelloCookieManager
Class Inheritance

Field Summary

Modifier and TypeField and Description
private final byte[]
private int
private final ReentrantLock
private static final byte[]
private final byte[]
pack-priv final SecureRandom

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
pack-priv byte[]
private static byte[]
getHostPortBytes(ServerHandshakeContext context)

Returns host and port bytes if those are set.

pack-priv boolean

Field Detail

cookieSecretback to summary
private final byte[] cookieSecret
cookieVersionback to summary
private int cookieVersion
d10ManagerLockback to summary
private final ReentrantLock d10ManagerLock
EMPTY_BYTE_ARRAYback to summary
private static final byte[] EMPTY_BYTE_ARRAY
legacySecretback to summary
private final byte[] legacySecret
secureRandomback to summary
pack-priv final SecureRandom secureRandom

Constructor Detail

D10HelloCookieManagerback to summary
pack-priv D10HelloCookieManager(SecureRandom secureRandom)

Method Detail

createCookieback to summary
pack-priv byte[] createCookie(ServerHandshakeContext context, ClientHello.ClientHelloMessage clientHello)

Implements abstract sun.security.ssl.HelloCookieManager.createCookie.

Annotations
@Override
getHostPortBytesback to summary
private static byte[] getHostPortBytes(ServerHandshakeContext context)

Returns host and port bytes if those are set. Using ASCII unit separator character to separate host and port so we can differentiate between otherwise identical host and port string concatenations, for example host 172.0.0.1 with port 25 and host 172.0.0.12 with port 5.

isCookieValidback to summary
pack-priv boolean isCookieValid(ServerHandshakeContext context, ClientHello.ClientHelloMessage clientHello, byte[] cookie)

Implements abstract sun.security.ssl.HelloCookieManager.isCookieValid.

Annotations
@Override
sun.security.ssl back to summary

private final Class HelloCookieManager.D13HelloCookieManager

extends HelloCookieManager
Class Inheritance

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
pack-priv byte[]
pack-priv boolean

Constructor Detail

D13HelloCookieManagerback to summary
pack-priv D13HelloCookieManager(SecureRandom secureRandom)

Method Detail

createCookieback to summary
pack-priv byte[] createCookie(ServerHandshakeContext context, ClientHello.ClientHelloMessage clientHello)

Implements abstract sun.security.ssl.HelloCookieManager.createCookie.

Annotations
@Override
isCookieValidback to summary
pack-priv boolean isCookieValid(ServerHandshakeContext context, ClientHello.ClientHelloMessage clientHello, byte[] cookie)

Implements abstract sun.security.ssl.HelloCookieManager.isCookieValid.

Annotations
@Override
sun.security.ssl back to summary

private final Class HelloCookieManager.T13HelloCookieManager

extends HelloCookieManager
Class Inheritance

Field Summary

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

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
pack-priv byte[]
pack-priv boolean

Field Detail

cookieSecretback to summary
private final byte[] cookieSecret
cookieVersionback to summary
private int cookieVersion
legacySecretback to summary
private final byte[] legacySecret
secureRandomback to summary
pack-priv final SecureRandom secureRandom
t13ManagerLockback to summary
private final ReentrantLock t13ManagerLock

Constructor Detail

T13HelloCookieManagerback to summary
pack-priv T13HelloCookieManager(SecureRandom secureRandom)

Method Detail

createCookieback to summary
pack-priv byte[] createCookie(ServerHandshakeContext context, ClientHello.ClientHelloMessage clientHello)

Implements abstract sun.security.ssl.HelloCookieManager.createCookie.

Annotations
@Override
isCookieValidback to summary
pack-priv boolean isCookieValid(ServerHandshakeContext context, ClientHello.ClientHelloMessage clientHello, byte[] cookie) throws IOException

Implements abstract sun.security.ssl.HelloCookieManager.isCookieValid.

Annotations
@Override