Top Description Inners Fields Constructors Methods
io.netty.handler.ssl

pack-priv final Class OpenSslX509TrustManagerWrapper

extends Object
Class Inheritance
Annotations
@SuppressJava6Requirement
reason:Usage guarded by java version check
Imports
io.netty.util.internal.EmptyArrays, .PlatformDependent, .SuppressJava6Requirement, io.netty.util.internal.logging.InternalLogger, .InternalLoggerFactory, javax.net.ssl.SSLContext, .TrustManager, .X509ExtendedTrustManager, .X509TrustManager, java.lang.reflect.Field, java.security.AccessController, .KeyManagementException, .NoSuchAlgorithmException, .NoSuchProviderException, .PrivilegedAction, java.security.cert.CertificateException, .X509Certificate

Utility which allows to wrap X509TrustManager implementations with the internal implementation used by SSLContextImpl that provides extended verification. This is really a "hack" until there is an official API as requested on the in JDK-8210843.

Nested and Inner Type Summary

Modifier and TypeClass and Description
private static interface
private static class

Field Summary

Modifier and TypeField and Description
private static final InternalLogger
private static final OpenSslX509TrustManagerWrapper.TrustManagerWrapper

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
private static SSLContext
pack-priv static X509TrustManager
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

LOGGERback to summary
private static final InternalLogger LOGGER
WRAPPERback to summary
private static final OpenSslX509TrustManagerWrapper.TrustManagerWrapper WRAPPER

Constructor Detail

OpenSslX509TrustManagerWrapperback to summary
private OpenSslX509TrustManagerWrapper()

Method Detail

newSSLContextback to summary
private static SSLContext newSSLContext() throws NoSuchAlgorithmException, NoSuchProviderException
wrapIfNeededback to summary
pack-priv static X509TrustManager wrapIfNeeded(X509TrustManager trustManager)
io.netty.handler.ssl back to summary

private Interface OpenSslX509TrustManagerWrapper.TrustManagerWrapper

Known Direct Implementers
io.netty.handler.ssl.OpenSslX509TrustManagerWrapper.UnsafeTrustManagerWrapper

Method Summary

Modifier and TypeMethod and Description
public X509TrustManager

Method Detail

wrapIfNeededback to summary
public X509TrustManager wrapIfNeeded(X509TrustManager manager)
io.netty.handler.ssl back to summary

private final Class OpenSslX509TrustManagerWrapper.UnsafeTrustManagerWrapper

extends Object
implements TrustManagerWrapper
Class Inheritance
  • java.lang.Object
  • io.netty.handler.ssl.OpenSslX509TrustManagerWrapper.UnsafeTrustManagerWrapper
All Implemented Interfaces
io.netty.handler.ssl.OpenSslX509TrustManagerWrapper.TrustManagerWrapper

Field Summary

Modifier and TypeField and Description
private final long
private final long

Constructor Summary

AccessConstructor and Description
pack-priv
UnsafeTrustManagerWrapper(long spiOffset, long tmOffset)

Method Summary

Modifier and TypeMethod and Description
public X509TrustManager
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

spiOffsetback to summary
private final long spiOffset
tmOffsetback to summary
private final long tmOffset

Constructor Detail

UnsafeTrustManagerWrapperback to summary
pack-priv UnsafeTrustManagerWrapper(long spiOffset, long tmOffset)

Method Detail

wrapIfNeededback to summary
public X509TrustManager wrapIfNeeded(X509TrustManager manager)

Implements io.netty.handler.ssl.OpenSslX509TrustManagerWrapper.TrustManagerWrapper.wrapIfNeeded.

Annotations
@SuppressJava6Requirement
reason:Usage guarded by java version check
@Override