Class Tls13SelectorTest
java.lang.Object
org.apache.kafka.common.network.SelectorTest
org.apache.kafka.common.network.SslSelectorTest
org.apache.kafka.common.network.Tls13SelectorTest
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidTLS 1.3 has a post-handshake key and IV update, which will update the sending and receiving keys for one side of the connection.Methods inherited from class SslSelectorTest
setUp, tearDown, testBytesBufferedChannelAfterMute, testBytesBufferedChannelWithNoIncomingBytes, testConnectionWithCustomKeyManager, testDisconnectWithIntermediateBufferedBytes, testMuteOnOOM, testSSLHandshakeFailureMetric, testSSLHandshakeTimeMetric, testSSLHandshakeTimeMetricReconnect, testSSLMetricsCreationMethods inherited from class SelectorTest
registerFailure, testCantSendWithInProgress, testChannelCloseWhileProcessingReceives, testChannelWithInvalidSniHostName, testChannelWithMissingSniHostName, testCipherMetricHasNoTenantTagBeforeAuth, testClearCompletedSendsAndReceives, testCloseAllChannels, testCloseDecrementsNoTenantKeyWhenAuthNeverHappened, testCloseDecrementsResolvedTenantKey, testCloseOldestConnection, testConnectDisconnectDuringInSinglePoll, testConnectException, testConnectionMaxIdleMs, testConnectionRefused, testConnectionsByClientMetric, testEarliestMtlsCertExpirationDefaultValue, testEmptyRequest, testErrorDuringConnection, testExistingConnectionId, testExpireClosedConnectionWithPendingReceives, testExpireConnectionWithPendingReceives, testFailedAuthLeavesTenantUnresolved, testGracefulClose, testIdleExpiryWithoutReadyKeys, testImmediatelyConnectedCleaned, testInboundConnectionsCountInConnectionCreationMetric, testInvalidSniMetricOnAuthenticatedConnection, testInvalidSniMetricOnSuccessWithoutMultiTenantPrincipal, testInvalidSniMetricOnUnauthenticatedConnection, testLargeMessageSequence, testLowestPriorityChannel, testMaybeRecordCipherSwapNoOpForNonMultiTenantPrincipal, testMaybeRecordIdempotentForSameTenant, testMaybeRecordNoOpWhenNoCipher, testMetricsCleanupOnSelectorClose, testMissingSniMetricOnAuthenticatedConnection, testMissingSniMetricOnUnauthenticatedConnection, testMtlsCertExpirationCounterNotAffectedByNonMtlsClose, testMtlsCertExpirationFreshCacheRejectsHigherValue, testMtlsCertExpirationNotResetWhenNonMtlsClosed, testMtlsCertExpirationResetOnLastClose, testMtlsCertExpirationStaleCacheOverwrite, testMtlsCertExpirationTracksMinimum, testMute, testNormalOperation, testNoRouteToHost, testNoSwapWhenCipherNotTracked, testNoSwapWhenTrackedCiphersEmpty, testOutboundConnectionsCountInConnectionCreationMetric, testPartialReceiveGracefulClose, testPartialSendAndReceiveReflectedInMetrics, testProxyProtocolConnectionMetrics, testProxyReadyAndDisconnectInSinglePoll, testReauthChangesTenant, testReverseAndAddDocumentsExistingBehavior, testSendLargeRequest, testSendWithoutConnecting, testServerDisconnect, testSniMetricsKeyedByTenantAndAuthenticationId, testSniRejectionConnectionClosedMetric, testSuccessfulMultiTenantAuthSwapsTenantTag, testSuiteCapacityExhaustionDropsNewTenantSilently, testThrottledProxyConnection, testWriteCompletesSendWithNoBytesWritten, verifySelectorEmpty
-
Constructor Details
-
Tls13SelectorTest
public Tls13SelectorTest()
-
-
Method Details
-
testKeyUpdate
TLS 1.3 has a post-handshake key and IV update, which will update the sending and receiving keys for one side of the connection. Key Usage Limits will trigger an update when the algorithm limits are reached, but the default value is too large (2^37 bytes of plaintext data) for a unit test. This value can be overridden via the security property `jdk.tls.keyLimits`, but that's also difficult to achieve in a unit test. Applications can also trigger an update by calling `SSLSocket.startHandshake()` or `SSLEngine.beginHandshake()` (this would trigger `renegotiation` with TLS 1.2) and that's the approach we take here.- Throws:
Exception
-