classes.io.netty.handler.ssl.SslContext.class Maven / Gradle / Ivy
???? 2T
}\
]^ _` _a
}b
}c
}d
}e fg
}h
}i
}j
}k lm
}nopq
r
}s t
_uv
wx
wy
wz
_{
|
}}
}~
}
}?
}?
}??
}??
(??
*??
,? /?? ?? ?? ??
/?
~?
}?
}???
}?
}?
}??
;??
=??
??
??
???
C?
??
??
??
??
???
??
?? ?
??
??
}?
??
??
??
??
??
}??
??
??????
Zr
}?
??
}?
???
????
f?
??
??
??
??
??
??
???
???
}? ??
}?
??
??
?? }???
zr??? InnerClasses X509_CERT_FACTORY 'Ljava/security/cert/CertificateFactory; defaultServerProvider $()Lio/netty/handler/ssl/SslProvider; Code LineNumberTable defaultClientProvider defaultProvider
StackMapTable newServerContext ?(Ljava/io/File;Ljava/io/File;)Lio/netty/handler/ssl/SslContext; LocalVariableTable
certChainFile Ljava/io/File; keyFile
Exceptions
Deprecated RuntimeVisibleAnnotations Ljava/lang/Deprecated; Q(Ljava/io/File;Ljava/io/File;Ljava/lang/String;)Lio/netty/handler/ssl/SslContext; keyPassword Ljava/lang/String; {(Ljava/io/File;Ljava/io/File;Ljava/lang/String;Ljava/lang/Iterable;Ljava/lang/Iterable;JJ)Lio/netty/handler/ssl/SslContext; ciphers Ljava/lang/Iterable;
nextProtocols sessionCacheSize J sessionTimeout LocalVariableTypeTable (Ljava/lang/Iterable; Signature ?(Ljava/io/File;Ljava/io/File;Ljava/lang/String;Ljava/lang/Iterable;Ljava/lang/Iterable;JJ)Lio/netty/handler/ssl/SslContext; ?(Ljava/io/File;Ljava/io/File;Ljava/lang/String;Ljava/lang/Iterable;Lio/netty/handler/ssl/CipherSuiteFilter;Lio/netty/handler/ssl/ApplicationProtocolConfig;JJ)Lio/netty/handler/ssl/SslContext; cipherFilter (Lio/netty/handler/ssl/CipherSuiteFilter; apn 0Lio/netty/handler/ssl/ApplicationProtocolConfig; ?(Ljava/io/File;Ljava/io/File;Ljava/lang/String;Ljava/lang/Iterable;Lio/netty/handler/ssl/CipherSuiteFilter;Lio/netty/handler/ssl/ApplicationProtocolConfig;JJ)Lio/netty/handler/ssl/SslContext; a(Lio/netty/handler/ssl/SslProvider;Ljava/io/File;Ljava/io/File;)Lio/netty/handler/ssl/SslContext; provider "Lio/netty/handler/ssl/SslProvider; s(Lio/netty/handler/ssl/SslProvider;Ljava/io/File;Ljava/io/File;Ljava/lang/String;)Lio/netty/handler/ssl/SslContext; ?(Lio/netty/handler/ssl/SslProvider;Ljava/io/File;Ljava/io/File;Ljava/lang/String;Ljava/lang/Iterable;Ljava/lang/Iterable;JJ)Lio/netty/handler/ssl/SslContext; ?(Lio/netty/handler/ssl/SslProvider;Ljava/io/File;Ljava/io/File;Ljava/lang/String;Ljava/lang/Iterable;Ljava/lang/Iterable;JJ)Lio/netty/handler/ssl/SslContext; ?(Lio/netty/handler/ssl/SslProvider;Ljava/io/File;Ljava/io/File;Ljava/lang/String;Ljavax/net/ssl/TrustManagerFactory;Ljava/lang/Iterable;Ljava/lang/Iterable;JJ)Lio/netty/handler/ssl/SslContext; trustManagerFactory #Ljavax/net/ssl/TrustManagerFactory; ?(Lio/netty/handler/ssl/SslProvider;Ljava/io/File;Ljava/io/File;Ljava/lang/String;Ljavax/net/ssl/TrustManagerFactory;Ljava/lang/Iterable;Ljava/lang/Iterable;JJ)Lio/netty/handler/ssl/SslContext; ?(Lio/netty/handler/ssl/SslProvider;Ljava/io/File;Ljava/io/File;Ljava/lang/String;Ljava/lang/Iterable;Lio/netty/handler/ssl/CipherSuiteFilter;Lio/netty/handler/ssl/ApplicationProtocolConfig;JJ)Lio/netty/handler/ssl/SslContext; ?(Lio/netty/handler/ssl/SslProvider;Ljava/io/File;Ljava/io/File;Ljava/lang/String;Ljava/lang/Iterable;Lio/netty/handler/ssl/CipherSuiteFilter;Lio/netty/handler/ssl/ApplicationProtocolConfig;JJ)Lio/netty/handler/ssl/SslContext;3(Lio/netty/handler/ssl/SslProvider;Ljava/io/File;Ljavax/net/ssl/TrustManagerFactory;Ljava/io/File;Ljava/io/File;Ljava/lang/String;Ljavax/net/ssl/KeyManagerFactory;Ljava/lang/Iterable;Lio/netty/handler/ssl/CipherSuiteFilter;Lio/netty/handler/ssl/ApplicationProtocolConfig;JJ)Lio/netty/handler/ssl/SslContext; e Ljava/lang/Exception; trustCertCollectionFile keyCertChainFile keyManagerFactory !Ljavax/net/ssl/KeyManagerFactory;oG(Lio/netty/handler/ssl/SslProvider;Ljava/io/File;Ljavax/net/ssl/TrustManagerFactory;Ljava/io/File;Ljava/io/File;Ljava/lang/String;Ljavax/net/ssl/KeyManagerFactory;Ljava/lang/Iterable;Lio/netty/handler/ssl/CipherSuiteFilter;Lio/netty/handler/ssl/ApplicationProtocolConfig;JJ)Lio/netty/handler/ssl/SslContext; newServerContextInternal?(Lio/netty/handler/ssl/SslProvider;[Ljava/security/cert/X509Certificate;Ljavax/net/ssl/TrustManagerFactory;[Ljava/security/cert/X509Certificate;Ljava/security/PrivateKey;Ljava/lang/String;Ljavax/net/ssl/KeyManagerFactory;Ljava/lang/Iterable;Lio/netty/handler/ssl/CipherSuiteFilter;Lio/netty/handler/ssl/ApplicationProtocolConfig;JJLio/netty/handler/ssl/ClientAuth;)Lio/netty/handler/ssl/SslContext; trustCertCollection %[Ljava/security/cert/X509Certificate; keyCertChain key Ljava/security/PrivateKey;
clientAuth !Lio/netty/handler/ssl/ClientAuth;?(Lio/netty/handler/ssl/SslProvider;[Ljava/security/cert/X509Certificate;Ljavax/net/ssl/TrustManagerFactory;[Ljava/security/cert/X509Certificate;Ljava/security/PrivateKey;Ljava/lang/String;Ljavax/net/ssl/KeyManagerFactory;Ljava/lang/Iterable;Lio/netty/handler/ssl/CipherSuiteFilter;Lio/netty/handler/ssl/ApplicationProtocolConfig;JJLio/netty/handler/ssl/ClientAuth;)Lio/netty/handler/ssl/SslContext; newClientContext #()Lio/netty/handler/ssl/SslContext; 1(Ljava/io/File;)Lio/netty/handler/ssl/SslContext; F(Ljavax/net/ssl/TrustManagerFactory;)Lio/netty/handler/ssl/SslContext; T(Ljava/io/File;Ljavax/net/ssl/TrustManagerFactory;)Lio/netty/handler/ssl/SslContext; ~(Ljava/io/File;Ljavax/net/ssl/TrustManagerFactory;Ljava/lang/Iterable;Ljava/lang/Iterable;JJ)Lio/netty/handler/ssl/SslContext; ?(Ljava/io/File;Ljavax/net/ssl/TrustManagerFactory;Ljava/lang/Iterable;Ljava/lang/Iterable;JJ)Lio/netty/handler/ssl/SslContext; ?(Ljava/io/File;Ljavax/net/ssl/TrustManagerFactory;Ljava/lang/Iterable;Lio/netty/handler/ssl/CipherSuiteFilter;Lio/netty/handler/ssl/ApplicationProtocolConfig;JJ)Lio/netty/handler/ssl/SslContext; ?(Ljava/io/File;Ljavax/net/ssl/TrustManagerFactory;Ljava/lang/Iterable;Lio/netty/handler/ssl/CipherSuiteFilter;Lio/netty/handler/ssl/ApplicationProtocolConfig;JJ)Lio/netty/handler/ssl/SslContext; E(Lio/netty/handler/ssl/SslProvider;)Lio/netty/handler/ssl/SslContext; S(Lio/netty/handler/ssl/SslProvider;Ljava/io/File;)Lio/netty/handler/ssl/SslContext; h(Lio/netty/handler/ssl/SslProvider;Ljavax/net/ssl/TrustManagerFactory;)Lio/netty/handler/ssl/SslContext; v(Lio/netty/handler/ssl/SslProvider;Ljava/io/File;Ljavax/net/ssl/TrustManagerFactory;)Lio/netty/handler/ssl/SslContext; ?(Lio/netty/handler/ssl/SslProvider;Ljava/io/File;Ljavax/net/ssl/TrustManagerFactory;Ljava/lang/Iterable;Ljava/lang/Iterable;JJ)Lio/netty/handler/ssl/SslContext; ?(Lio/netty/handler/ssl/SslProvider;Ljava/io/File;Ljavax/net/ssl/TrustManagerFactory;Ljava/lang/Iterable;Ljava/lang/Iterable;JJ)Lio/netty/handler/ssl/SslContext; ?(Lio/netty/handler/ssl/SslProvider;Ljava/io/File;Ljavax/net/ssl/TrustManagerFactory;Ljava/lang/Iterable;Lio/netty/handler/ssl/CipherSuiteFilter;Lio/netty/handler/ssl/ApplicationProtocolConfig;JJ)Lio/netty/handler/ssl/SslContext; ?(Lio/netty/handler/ssl/SslProvider;Ljava/io/File;Ljavax/net/ssl/TrustManagerFactory;Ljava/lang/Iterable;Lio/netty/handler/ssl/CipherSuiteFilter;Lio/netty/handler/ssl/ApplicationProtocolConfig;JJ)Lio/netty/handler/ssl/SslContext; newClientContextInternalm(Lio/netty/handler/ssl/SslProvider;[Ljava/security/cert/X509Certificate;Ljavax/net/ssl/TrustManagerFactory;[Ljava/security/cert/X509Certificate;Ljava/security/PrivateKey;Ljava/lang/String;Ljavax/net/ssl/KeyManagerFactory;Ljava/lang/Iterable;Lio/netty/handler/ssl/CipherSuiteFilter;Lio/netty/handler/ssl/ApplicationProtocolConfig;JJ)Lio/netty/handler/ssl/SslContext; trustCert?(Lio/netty/handler/ssl/SslProvider;[Ljava/security/cert/X509Certificate;Ljavax/net/ssl/TrustManagerFactory;[Ljava/security/cert/X509Certificate;Ljava/security/PrivateKey;Ljava/lang/String;Ljavax/net/ssl/KeyManagerFactory;Ljava/lang/Iterable;Lio/netty/handler/ssl/CipherSuiteFilter;Lio/netty/handler/ssl/ApplicationProtocolConfig;JJ)Lio/netty/handler/ssl/SslContext; toApplicationProtocolConfig F(Ljava/lang/Iterable;)Lio/netty/handler/ssl/ApplicationProtocolConfig;? Z(Ljava/lang/Iterable;)Lio/netty/handler/ssl/ApplicationProtocolConfig; ()V this !Lio/netty/handler/ssl/SslContext; isServer ()Z isClient cipherSuites ()Ljava/util/List; &()Ljava/util/List; ()J applicationProtocolNegotiator 6()Lio/netty/handler/ssl/ApplicationProtocolNegotiator; newEngine =(Lio/netty/buffer/ByteBufAllocator;)Ljavax/net/ssl/SSLEngine; P(Lio/netty/buffer/ByteBufAllocator;Ljava/lang/String;I)Ljavax/net/ssl/SSLEngine; sessionContext #()Ljavax/net/ssl/SSLSessionContext;
newHandler E(Lio/netty/buffer/ByteBufAllocator;)Lio/netty/handler/ssl/SslHandler; alloc "Lio/netty/buffer/ByteBufAllocator; X(Lio/netty/buffer/ByteBufAllocator;Ljava/lang/String;I)Lio/netty/handler/ssl/SslHandler; peerHost peerPort I <(Ljavax/net/ssl/SSLEngine;)Lio/netty/handler/ssl/SslHandler; engine Ljavax/net/ssl/SSLEngine; generateKeySpec .([C[B)Ljava/security/spec/PKCS8EncodedKeySpec; password [C [B encryptedPrivateKeyInfo &Ljavax/crypto/EncryptedPrivateKeyInfo;
keyFactory Ljavax/crypto/SecretKeyFactory;
pbeKeySpec Ljavax/crypto/spec/PBEKeySpec; pbeKey Ljavax/crypto/SecretKey; cipher Ljavax/crypto/Cipher;?????
buildKeyStore [([Ljava/security/cert/X509Certificate;Ljava/security/PrivateKey;[C)Ljava/security/KeyStore; certChain keyPasswordChars ks Ljava/security/KeyStore;? toPrivateKey <(Ljava/io/File;Ljava/lang/String;)Ljava/security/PrivateKey;? C(Ljava/io/InputStream;Ljava/lang/String;)Ljava/security/PrivateKey; keyInputStream Ljava/io/InputStream; getPrivateKeyFromByteBuffer G(Lio/netty/buffer/ByteBuf;Ljava/lang/String;)Ljava/security/PrivateKey; ,Ljava/security/spec/InvalidKeySpecException; ignore2 ignore
encodedKeyBuf Lio/netty/buffer/ByteBuf;
encodedKey encodedKeySpec (Ljava/security/spec/PKCS8EncodedKeySpec;???? buildTrustManagerFactory V(Ljava/io/File;Ljavax/net/ssl/TrustManagerFactory;)Ljavax/net/ssl/TrustManagerFactory; x509Certs toX509Certificates 5(Ljava/io/File;)[Ljava/security/cert/X509Certificate; file <(Ljava/io/InputStream;)[Ljava/security/cert/X509Certificate; in getCertificatesFromBuffers A([Lio/netty/buffer/ByteBuf;)[Ljava/security/cert/X509Certificate; i buf arr$ [Lio/netty/buffer/ByteBuf; len$ i$ certs cf? ?<? m([Ljava/security/cert/X509Certificate;Ljavax/net/ssl/TrustManagerFactory;)Ljavax/net/ssl/TrustManagerFactory; alias cert $Ljava/security/cert/X509Certificate; certCollection?? toPrivateKeyInternal toX509CertificatesInternal )Ljava/security/cert/CertificateException;? buildKeyManagerFactory ?([Ljava/security/cert/X509Certificate;Ljava/security/PrivateKey;Ljava/lang/String;Ljavax/net/ssl/KeyManagerFactory;)Ljavax/net/ssl/KeyManagerFactory; kmf algorithm? ?([Ljava/security/cert/X509Certificate;Ljava/lang/String;Ljava/security/PrivateKey;Ljava/lang/String;Ljavax/net/ssl/KeyManagerFactory;)Ljavax/net/ssl/KeyManagerFactory; keyAlgorithm buildDefaultKeyManagerFactory #()Ljavax/net/ssl/KeyManagerFactory;
SourceFile SslContext.java ? ??? ??? ?? ? ? ? ? ? ? ? ? ???? ? ? ? ?23?? ? ? ? java/lang/Exception javax/net/ssl/SSLException 0failed to initialize the server-side SSL context ?? ? ? (io/netty/handler/ssl/JdkSslServerContext ? )io/netty/handler/ssl/OpenSslServerContext 9io/netty/handler/ssl/ReferenceCountedOpenSslServerContext java/lang/Error ? ? ? ? ? ? ? ? ? ? ? ? ? 0failed to initialize the client-side SSL context ? ? (io/netty/handler/ssl/JdkSslClientContext ? )io/netty/handler/ssl/OpenSslClientContext 9io/netty/handler/ssl/ReferenceCountedOpenSslClientContext ? .io/netty/handler/ssl/ApplicationProtocolConfig
? ? ? ? ? ? ? ? ? ? ? ? ? ? io/netty/handler/ssl/SslHandler ? &java/security/spec/PKCS8EncodedKeySpec ? $javax/crypto/EncryptedPrivateKeyInfo javax/crypto/spec/PBEKeySpec ? !"#$%&'() JKS?*+,-./01 02?3456 ??78 ? ? RSA9:;< *java/security/spec/InvalidKeySpecException DSA EC Neither RSA, DSA nor EC worked/E=>78=? X.509?@ "java/security/cert/X509Certificate "io/netty/buffer/ByteBufInputStream ?ABCDEFG?HI&J ?K 'java/security/cert/CertificateException ssl.KeyManagerFactory.algorithmLMN SunX509PUOPQR&S ? ? java/lang/IllegalStateException +unable to instance X.509 CertificateFactory io/netty/handler/ssl/SslContext java/lang/Object !io/netty/handler/ssl/SslContext$1 java/io/IOException &java/security/NoSuchAlgorithmException #javax/crypto/NoSuchPaddingException !java/security/InvalidKeyException 0java/security/InvalidAlgorithmParameterException java/security/KeyStoreException java/security/KeyException io/netty/buffer/ByteBuf java/lang/String %java/security/cert/CertificateFactory java/lang/Throwable !javax/net/ssl/TrustManagerFactory java/security/KeyStore 'java/security/UnrecoverableKeyException io/netty/handler/ssl/OpenSsl isAvailable io/netty/handler/ssl/SslProvider OPENSSL JDK .io/netty/handler/ssl/IdentityCipherSuiteFilter INSTANCE 0Lio/netty/handler/ssl/IdentityCipherSuiteFilter; io/netty/handler/ssl/ClientAuth NONE *(Ljava/lang/String;Ljava/lang/Throwable;)V +$SwitchMap$io$netty$handler$ssl$SslProvider [I ordinal ()IL([Ljava/security/cert/X509Certificate;Ljavax/net/ssl/TrustManagerFactory;[Ljava/security/cert/X509Certificate;Ljava/security/PrivateKey;Ljava/lang/String;Ljavax/net/ssl/KeyManagerFactory;Ljava/lang/Iterable;Lio/netty/handler/ssl/CipherSuiteFilter;Lio/netty/handler/ssl/ApplicationProtocolConfig;JJLio/netty/handler/ssl/ClientAuth;)V toString ()Ljava/lang/String; (Ljava/lang/String;)V+([Ljava/security/cert/X509Certificate;Ljavax/net/ssl/TrustManagerFactory;[Ljava/security/cert/X509Certificate;Ljava/security/PrivateKey;Ljava/lang/String;Ljavax/net/ssl/KeyManagerFactory;Ljava/lang/Iterable;Lio/netty/handler/ssl/CipherSuiteFilter;Lio/netty/handler/ssl/ApplicationProtocolConfig;JJ)V DISABLED 7io/netty/handler/ssl/ApplicationProtocolConfig$Protocol Protocol NPN_AND_ALPN 9Lio/netty/handler/ssl/ApplicationProtocolConfig$Protocol; Fio/netty/handler/ssl/ApplicationProtocolConfig$SelectorFailureBehavior SelectorFailureBehavior CHOOSE_MY_LAST_PROTOCOL HLio/netty/handler/ssl/ApplicationProtocolConfig$SelectorFailureBehavior; Nio/netty/handler/ssl/ApplicationProtocolConfig$SelectedListenerFailureBehavior SelectedListenerFailureBehavior ACCEPT PLio/netty/handler/ssl/ApplicationProtocolConfig$SelectedListenerFailureBehavior; ?(Lio/netty/handler/ssl/ApplicationProtocolConfig$Protocol;Lio/netty/handler/ssl/ApplicationProtocolConfig$SelectorFailureBehavior;Lio/netty/handler/ssl/ApplicationProtocolConfig$SelectedListenerFailureBehavior;Ljava/lang/Iterable;)V 2io/netty/handler/ssl/ApplicationProtocolNegotiator protocols (Ljavax/net/ssl/SSLEngine;)V ([B)V
getAlgName javax/crypto/SecretKeyFactory getInstance 3(Ljava/lang/String;)Ljavax/crypto/SecretKeyFactory; ([C)V generateSecret 6(Ljava/security/spec/KeySpec;)Ljavax/crypto/SecretKey; javax/crypto/Cipher )(Ljava/lang/String;)Ljavax/crypto/Cipher; getAlgParameters %()Ljava/security/AlgorithmParameters; init :(ILjava/security/Key;Ljava/security/AlgorithmParameters;)V
getKeySpec ?(Ljavax/crypto/Cipher;)Ljava/security/spec/PKCS8EncodedKeySpec; ,(Ljava/lang/String;)Ljava/security/KeyStore; load (Ljava/io/InputStream;[C)V setKeyEntry K(Ljava/lang/String;Ljava/security/Key;[C[Ljava/security/cert/Certificate;)V io/netty/handler/ssl/PemReader readPrivateKey )(Ljava/io/File;)Lio/netty/buffer/ByteBuf; 0(Ljava/io/InputStream;)Lio/netty/buffer/ByteBuf;
readableBytes readBytes ([B)Lio/netty/buffer/ByteBuf; release toCharArray ()[C java/security/KeyFactory .(Ljava/lang/String;)Ljava/security/KeyFactory; generatePrivate 8(Ljava/security/spec/KeySpec;)Ljava/security/PrivateKey; readCertificates *(Ljava/io/File;)[Lio/netty/buffer/ByteBuf; 1(Ljava/io/InputStream;)[Lio/netty/buffer/ByteBuf; ;(Ljava/lang/String;)Ljava/security/cert/CertificateFactory; (Lio/netty/buffer/ByteBuf;)V generateCertificate 7(Ljava/io/InputStream;)Ljava/security/cert/Certificate; java/lang/Integer (I)Ljava/lang/String; setCertificateEntry 5(Ljava/lang/String;Ljava/security/cert/Certificate;)V getDefaultAlgorithm 7(Ljava/lang/String;)Ljavax/net/ssl/TrustManagerFactory; (Ljava/security/KeyStore;)V (Ljava/lang/Throwable;)V java/security/Security getProperty &(Ljava/lang/String;)Ljava/lang/String; "io/netty/util/internal/EmptyArrays EMPTY_CHARS javax/net/ssl/KeyManagerFactory 5(Ljava/lang/String;)Ljavax/net/ssl/KeyManagerFactory; (Ljava/security/KeyStore;[C)V! } ~ ? ? ; ? ? ? ? ? ? f ? ? ? ? ? ? o
? ? ? 7 ? ? ? ?? ? ? s t
v ?
? ? ? ; *+? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? F *+,? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?
*+,-? ? ? ? ? H ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?
*+,-? ? ? ? ? R ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? F *+,? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? W *+,-? ? ? ? ? ? * ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?
*+,-? ?
? ? ?
? R ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? *+,-? ?
? ? ? 0 ? \ ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? *+,- ? ? ? P ? \ ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? B*+? ,-? ?
? ? ?:? ? ? ?? Y? ? % &