Class SSLContextValidatorEngine
java.lang.Object
org.apache.pulsar.common.util.keystoretls.SSLContextValidatorEngine
SSLContextValidatorEngine to validate 2 SSlContext.
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic ByteBuffer
ensureCapacity
(ByteBuffer existingBuffer, int newLength) Check if the given ByteBuffer capacity.static void
validate
(SSLContextValidatorEngine.SSLEngineProvider clientSslEngineSupplier, SSLContextValidatorEngine.SSLEngineProvider serverSslEngineSupplier) Validates TLS handshake up to TLSv1.2.
-
Method Details
-
validate
public static void validate(SSLContextValidatorEngine.SSLEngineProvider clientSslEngineSupplier, SSLContextValidatorEngine.SSLEngineProvider serverSslEngineSupplier) throws SSLException Validates TLS handshake up to TLSv1.2. TLSv1.3 has a differences in TLS handshake as described in https://stackoverflow.com/a/62465859- Throws:
SSLException
-
ensureCapacity
Check if the given ByteBuffer capacity.- Parameters:
existingBuffer
- ByteBuffer capacity to checknewLength
- new length for the ByteBuffer. returns ByteBuffer
-