com.groupbyinc.flux.common.netty.handler.ssl.OpenSsl.class Maven / Gradle / Ivy
???? 2? 4com/groupbyinc/flux/common/netty/handler/ssl/OpenSsl java/lang/Object OpenSsl.java 6com/groupbyinc/flux/common/netty/handler/ssl/OpenSsl$1 logger GLcom/groupbyinc/flux/common/netty/util/internal/logging/InternalLogger; UNAVAILABILITY_CAUSE Ljava/lang/Throwable; DEFAULT_CIPHERS Ljava/util/List; $Ljava/util/List; AVAILABLE_CIPHER_SUITES Ljava/util/Set; #Ljava/util/Set; AVAILABLE_OPENSSL_CIPHER_SUITES AVAILABLE_JAVA_CIPHER_SUITES SUPPORTS_KEYMANAGER_FACTORY Z SUPPORTS_HOSTNAME_VALIDATION USE_KEYMANAGER_FACTORY
SUPPORTS_OCSP SUPPORTED_PROTOCOLS_SET $assertionsDisabled doesSupportOcsp ()Z java/lang/Exception version ()I
! ???????? =com/groupbyinc/flux/common/netty/internal/tcnative/SSLContext ' make (II)J ) *
( +
enableOcsp (JZ)V - .
( / free (J)I 1 2
( 3 java/lang/Throwable 5 sslCtx J supportsOcsp doesSupportProtocol (I)Z ignore Ljava/lang/Exception; protocol I isAvailable
A isAlpnSupported isOcspSupported E @
G 6com/groupbyinc/flux/common/netty/internal/tcnative/SSL I
J !
versionString ()Ljava/lang/String; L M
J N java/lang/String P ensureAvailability ()V java/lang/UnsatisfiedLinkError T *failed to load the required native library V (Ljava/lang/String;)V X Y
U Z initCause ,(Ljava/lang/Throwable;)Ljava/lang/Throwable; \ ]
U ^ java/lang/Error ` unavailabilityCause ()Ljava/lang/Throwable; availableCipherSuites ()Ljava/util/Set; Ljava/lang/Deprecated; availableOpenSslCipherSuites g e
h j availableJavaCipherSuites m isCipherSuiteAvailable (Ljava/lang/String;)Z Acom/groupbyinc/flux/common/netty/handler/ssl/CipherSuiteConverter q toOpenSsl &(Ljava/lang/String;)Ljava/lang/String; s t
r u
java/util/Set w contains (Ljava/lang/Object;)Z y z x { cipherSuite Ljava/lang/String; converted supportsKeyManagerFactory ? supportsHostnameValidation ? useKeyManagerFactory ?
memoryAddress 4(Lcom/groupbyinc/flux/common/netty/buffer/ByteBuf;)J ? /com/groupbyinc/flux/common/netty/buffer/ByteBuf ? isDirect ?
? ? java/lang/AssertionError ? X S
? ? hasMemoryAddress ?
? ? ()J ? ?
? ? nioBuffer ()Ljava/nio/ByteBuffer; ? ?
? ? 9com/groupbyinc/flux/common/netty/internal/tcnative/Buffer ? address (Ljava/nio/ByteBuffer;)J ? ?
? ? buf 1Lcom/groupbyinc/flux/common/netty/buffer/ByteBuf;
? this 6Lcom/groupbyinc/flux/common/netty/handler/ssl/OpenSsl; loadTcNative @com/groupbyinc/flux/common/netty/util/internal/PlatformDependent ? normalizedOs ? M
? ? normalizedArch ? M
? ? java/util/LinkedHashSet ? (I)V X ?
? ? java/lang/StringBuilder ?
? ? netty_tcnative_ ? append -(Ljava/lang/String;)Ljava/lang/StringBuilder; ? ?
? ? (C)Ljava/lang/StringBuilder; ? ?
? ? toString ? M
? ? add ? z x ? linux ? equalsIgnoreCase ? p
Q ? _fedora ? netty_tcnative ? java/lang/Class ? getClassLoader ()Ljava/lang/ClassLoader; ? ?
? ? size ? x ? toArray (([Ljava/lang/Object;)[Ljava/lang/Object; ? ? x ? [Ljava/lang/String; ? Bcom/groupbyinc/flux/common/netty/util/internal/NativeLibraryLoader ? loadFirstAvailable -(Ljava/lang/ClassLoader;[Ljava/lang/String;)V ? ?
? ? os arch libNames initializeTcNative :com/groupbyinc/flux/common/netty/internal/tcnative/Library ?
initialize ?
? ? releaseIfNeeded ;(Lcom/groupbyinc/flux/common/netty/util/ReferenceCounted;)V 6com/groupbyinc/flux/common/netty/util/ReferenceCounted ? refCnt ? ? ? 8com/groupbyinc/flux/common/netty/util/ReferenceCountUtil ? safeRelease (Ljava/lang/Object;)V ? ?
? ? counted 8Lcom/groupbyinc/flux/common/netty/util/ReferenceCounted; java/lang/ClassNotFoundException desiredAssertionStatus
? Lcom/groupbyinc/flux/common/netty/util/internal/logging/InternalLoggerFactory getInstance Z(Ljava/lang/Class;)Lcom/groupbyinc/flux/common/netty/util/internal/logging/InternalLogger;
6com.groupbyinc.flux.common.netty.internal.tcnative.SSL forName =(Ljava/lang/String;ZLjava/lang/ClassLoader;)Ljava/lang/Class;
? %netty-tcnative not in the classpath; :com/groupbyinc/flux/common/netty/handler/ssl/OpenSslEngine
getSimpleName M
? will be unavailable. Ecom/groupbyinc/flux/common/netty/util/internal/logging/InternalLogger debug Y! ? S
# Failed to load netty-tcnative; % ? will be unavailable, unless the application has already loaded the symbols by some other means. See http://netty.io/wiki/forked-tomcat-native.html for more information.' *(Ljava/lang/String;Ljava/lang/Throwable;)V )* ?
, %Failed to initialize netty-tcnative; . ^ will be unavailable. See http://netty.io/wiki/forked-tomcat-native.html for more information.0 'netty-tcnative using native library: {}2 '(Ljava/lang/String;Ljava/lang/Object;)V 45 java/util/ArrayList7
8 ? ALL: setCipherSuite (JLjava/lang/String;)Z<=
(> newSSL (JZ)J@A
JB
getCiphers (J)[Ljava/lang/String;DE
JF java/util/ListH Gcom/groupbyinc/flux/common/netty/handler/ssl/util/SelfSignedCertificateJ isEmptyL
QM netty.ioO setHostNameValidation (JILjava/lang/String;)VQR
JS $Hostname Verification not supported.U
K ? "java/security/cert/X509CertificateX cert &()Ljava/security/cert/X509Certificate;Z[
K\ Kcom/groupbyinc/flux/common/netty/handler/ssl/ReferenceCountedOpenSslContext^ toBIO (([Ljava/security/cert/X509Certificate;)J`a
_b setCertificateChainBio (JJZ)Vde
Jf
? java/security/AccessControlleri doPrivileged 4(Ljava/security/PrivilegedAction;)Ljava/lang/Object;kl
jm java/lang/Booleano booleanValueq
pr 3Failed to get useKeyManagerFactory system property.t KeyManagerFactory not supported.v freeSSL (J)Vxy
Jz freeBIO|y
J} delete S
K? :Failed to get the list of available OpenSSL cipher suites.? warn?)? java/util/Collections? unmodifiableSet (Ljava/util/Set;)Ljava/util/Set;??
?? iterator ()Ljava/util/Iterator;?? x? java/util/Iterator? hasNext? ?? next ()Ljava/lang/Object;???? TLS? toJava 8(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;??
r? SSL? 5com/groupbyinc/flux/common/netty/handler/ssl/SslUtils? "useFallbackCiphersIfDefaultIsEmpty '(Ljava/util/List;Ljava/lang/Iterable;)V??
?? unmodifiableList "(Ljava/util/List;)Ljava/util/List;??
??
? DEFAULT_CIPHER_SUITES? ? ?? addIfSupported 5(Ljava/util/Set;Ljava/util/List;[Ljava/lang/String;)V??
?? addAll (Ljava/util/Collection;)Z?? x? ?
SSLv2Hello? : ;
? SSLv2? SSLv3? TLSv1? TLSv1.1? TLSv1.2? ?
? isDebugEnabled? ? "Supported protocols (OpenSSL): {} ? java/util/Arrays? asList %([Ljava/lang/Object;)Ljava/util/List;??
?? #Default cipher suites (OpenSSL): {}? emptyList ()Ljava/util/List;??
?? emptySet? e
?? t "Ljava/lang/ClassNotFoundException; c ssl certBio ILcom/groupbyinc/flux/common/netty/handler/ssl/util/SelfSignedCertificate; e cipher defaultCiphers supportsHostNameValidation protocols cause Signature Code LocalVariableTable LineNumberTable
StackMapTable
Deprecated %()Ljava/util/Set; RuntimeVisibleAnnotations LocalVariableTypeTable
Exceptions
SourceFile InnerClasses 1
? ? ? ? ?
? ? T;? "? #?? H %@? ,@? 0; %?? .? 4W? &N %?? ? 4W? : %?? ? 4W?? / @ @ B @ ? A 7 8 R 9 ? : ? ?
? ? ? ? ' / ? 0 8 @ J R? ? / P 6? 6?
: ; ? A %@? ,@> %?? ? 4W?N6 %?? ? 4W?: %?? ? 4W? / / / 1 / ? <