io.netty.handler.ssl.SslContextBuilder.class Maven / Gradle / Ivy
???? 2 ? &io/netty/handler/ssl/SslContextBuilder java/lang/Object SslContextBuilder.java forServer Z provider "Lio/netty/handler/ssl/SslProvider; sslContextProvider Ljava/security/Provider; trustCertCollection %[Ljava/security/cert/X509Certificate; trustManagerFactory #Ljavax/net/ssl/TrustManagerFactory; keyCertChain key Ljava/security/PrivateKey; keyPassword Ljava/lang/String; keyManagerFactory !Ljavax/net/ssl/KeyManagerFactory; ciphers Ljava/lang/Iterable; (Ljava/lang/Iterable; cipherFilter (Lio/netty/handler/ssl/CipherSuiteFilter; apn 0Lio/netty/handler/ssl/ApplicationProtocolConfig; sessionCacheSize J sessionTimeout
clientAuth !Lio/netty/handler/ssl/ClientAuth; protocols [Ljava/lang/String; startTls
enableOcsp forClient *()Lio/netty/handler/ssl/SslContextBuilder; (Z)V ) *
+ F(Ljava/io/File;Ljava/io/File;)Lio/netty/handler/ssl/SslContextBuilder;
keyManager . -
/ keyCertChainFile Ljava/io/File; keyFile T(Ljava/io/InputStream;Ljava/io/InputStream;)Lio/netty/handler/ssl/SslContextBuilder; . 4
5 keyCertChainInputStream Ljava/io/InputStream; keyInputStream i(Ljava/security/PrivateKey;[Ljava/security/cert/X509Certificate;)Lio/netty/handler/ssl/SslContextBuilder; . :
; X(Ljava/io/File;Ljava/io/File;Ljava/lang/String;)Lio/netty/handler/ssl/SslContextBuilder; . =
> f(Ljava/io/InputStream;Ljava/io/InputStream;Ljava/lang/String;)Lio/netty/handler/ssl/SslContextBuilder; . @
A {(Ljava/security/PrivateKey;Ljava/lang/String;[Ljava/security/cert/X509Certificate;)Lio/netty/handler/ssl/SslContextBuilder; . C
D K(Ljavax/net/ssl/KeyManagerFactory;)Lio/netty/handler/ssl/SslContextBuilder; . F
G ()V ) I
J .io/netty/handler/ssl/IdentityCipherSuiteFilter L INSTANCE 0Lio/netty/handler/ssl/IdentityCipherSuiteFilter; N O M P R io/netty/handler/ssl/ClientAuth T NONE V " U W ! " Y [ this (Lio/netty/handler/ssl/SslContextBuilder; sslProvider L(Lio/netty/handler/ssl/SslProvider;)Lio/netty/handler/ssl/SslContextBuilder; a B(Ljava/security/Provider;)Lio/netty/handler/ssl/SslContextBuilder;
d trustManager 8(Ljava/io/File;)Lio/netty/handler/ssl/SslContextBuilder; java/lang/Exception h io/netty/handler/ssl/SslContext j toX509Certificates 5(Ljava/io/File;)[Ljava/security/cert/X509Certificate; l m
k n O([Ljava/security/cert/X509Certificate;)Lio/netty/handler/ssl/SslContextBuilder; f p
q "java/lang/IllegalArgumentException s java/lang/StringBuilder u
v J *File does not contain valid certificates: x append -(Ljava/lang/String;)Ljava/lang/StringBuilder; z {
v | -(Ljava/lang/Object;)Ljava/lang/StringBuilder; z ~
v toString ()Ljava/lang/String; ? ?
v ? *(Ljava/lang/String;Ljava/lang/Throwable;)V ) ?
t ? e Ljava/lang/Exception; trustCertCollectionFile ?(Ljava/io/InputStream;)Lio/netty/handler/ssl/SslContextBuilder; <(Ljava/io/InputStream;)[Ljava/security/cert/X509Certificate; l ?
k ? 1Input stream does not contain valid certificates. ? trustCertCollectionInputStream
clone ()Ljava/lang/Object; ? ?
? ?
? ? M(Ljavax/net/ssl/TrustManagerFactory;)Lio/netty/handler/ssl/SslContextBuilder; toPrivateKey <(Ljava/io/File;Ljava/lang/String;)Ljava/security/PrivateKey; ? ?
k ? )File does not contain valid private key: ? java/security/PrivateKey ? ,Input stream not contain valid certificates. ? C(Ljava/io/InputStream;Ljava/lang/String;)Ljava/security/PrivateKey; ? ?
k ? 0Input stream does not contain valid private key. ? !keyCertChain required for servers ? !io/netty/util/internal/ObjectUtil ? checkNotNull 8(Ljava/lang/Object;Ljava/lang/String;)Ljava/lang/Object; ? ?
? ? keyCertChain must be non-empty ? (Ljava/lang/String;)V ) ?
t ? key required for servers ?
? keyCertChain contains null entry ? ? ? ? cert $Ljava/security/cert/X509Certificate; &keyManagerFactory required for servers ? >(Ljava/lang/Iterable;)Lio/netty/handler/ssl/SslContextBuilder; f(Ljava/lang/Iterable;Lio/netty/handler/ssl/CipherSuiteFilter;)Lio/netty/handler/ssl/SslContextBuilder; ?
? ? applicationProtocolConfig Z(Lio/netty/handler/ssl/ApplicationProtocolConfig;)Lio/netty/handler/ssl/SslContextBuilder; ? +(J)Lio/netty/handler/ssl/SslContextBuilder; ? ? K(Lio/netty/handler/ssl/ClientAuth;)Lio/netty/handler/ssl/SslContextBuilder; ! =([Ljava/lang/String;)Lio/netty/handler/ssl/SslContextBuilder; $
? ? # $ ? +(Z)Lio/netty/handler/ssl/SslContextBuilder; % ? &