类 SSLContextValidatorEngine
java.lang.Object
org.apache.pulsar.common.util.keystoretls.SSLContextValidatorEngine
SSLContextValidatorEngine to validate 2 SSlContext.
-
嵌套类概要
嵌套类 -
方法概要
修饰符和类型方法说明static ByteBufferensureCapacity(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.
-
方法详细资料
-
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- 抛出:
SSLException
-
ensureCapacity
Check if the given ByteBuffer capacity.- 参数:
existingBuffer- ByteBuffer capacity to checknewLength- new length for the ByteBuffer. returns ByteBuffer
-