Class SSLContextValidatorEngine
- java.lang.Object
-
- org.apache.pulsar.common.util.keystoretls.SSLContextValidatorEngine
-
public class SSLContextValidatorEngine extends java.lang.ObjectSSLContextValidatorEngine to validate 2 SSlContext.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceSSLContextValidatorEngine.SSLEngineProvider
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.nio.ByteBufferensureCapacity(java.nio.ByteBuffer existingBuffer, int newLength)Check if the given ByteBuffer capacity.static voidvalidate(SSLContextValidatorEngine.SSLEngineProvider clientSslEngineSupplier, SSLContextValidatorEngine.SSLEngineProvider serverSslEngineSupplier)Validates TLS handshake up to TLSv1.2.
-
-
-
Method Detail
-
validate
public static void validate(SSLContextValidatorEngine.SSLEngineProvider clientSslEngineSupplier, SSLContextValidatorEngine.SSLEngineProvider serverSslEngineSupplier) throws javax.net.ssl.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:
javax.net.ssl.SSLException
-
ensureCapacity
public static java.nio.ByteBuffer ensureCapacity(java.nio.ByteBuffer existingBuffer, int newLength)Check if the given ByteBuffer capacity.- Parameters:
existingBuffer- ByteBuffer capacity to checknewLength- new length for the ByteBuffer. returns ByteBuffer
-
-