|
90 | 90 | import javax.net.ssl.TrustManager; |
91 | 91 | import javax.net.ssl.TrustManagerFactory; |
92 | 92 | import javax.net.ssl.X509TrustManager; |
93 | | - |
94 | 93 | import org.codehaus.mojo.animal_sniffer.IgnoreJRERequirement; |
95 | 94 |
|
96 | 95 | /** |
@@ -265,7 +264,7 @@ public static final class FromChannelCredentialsResult { |
265 | 264 | public final String error; |
266 | 265 |
|
267 | 266 | private FromChannelCredentialsResult(ProtocolNegotiator.ClientFactory negotiator, |
268 | | - CallCredentials creds, String error) { |
| 267 | + CallCredentials creds, String error) { |
269 | 268 | this.negotiator = negotiator; |
270 | 269 | this.callCredentials = creds; |
271 | 270 | this.error = error; |
@@ -428,8 +427,8 @@ static final class ServerTlsHandler extends ChannelInboundHandlerAdapter { |
428 | 427 | private ProtocolNegotiationEvent pne = ProtocolNegotiationEvent.DEFAULT; |
429 | 428 |
|
430 | 429 | ServerTlsHandler(ChannelHandler next, |
431 | | - SslContext sslContext, |
432 | | - final ObjectPool<? extends Executor> executorPool) { |
| 430 | + SslContext sslContext, |
| 431 | + final ObjectPool<? extends Executor> executorPool) { |
433 | 432 | this.sslContext = Preconditions.checkNotNull(sslContext, "sslContext"); |
434 | 433 | this.next = Preconditions.checkNotNull(next, "next"); |
435 | 434 | if (executorPool != null) { |
@@ -486,8 +485,8 @@ private void fireProtocolNegotiationEvent(ChannelHandlerContext ctx, SSLSession |
486 | 485 | * Returns a {@link ProtocolNegotiator} that does HTTP CONNECT proxy negotiation. |
487 | 486 | */ |
488 | 487 | public static ProtocolNegotiator httpProxy(final SocketAddress proxyAddress, |
489 | | - final @Nullable String proxyUsername, final @Nullable String proxyPassword, |
490 | | - final ProtocolNegotiator negotiator) { |
| 488 | + final @Nullable String proxyUsername, final @Nullable String proxyPassword, |
| 489 | + final ProtocolNegotiator negotiator) { |
491 | 490 | Preconditions.checkNotNull(negotiator, "negotiator"); |
492 | 491 | Preconditions.checkNotNull(proxyAddress, "proxyAddress"); |
493 | 492 | final AsciiString scheme = negotiator.scheme(); |
@@ -564,8 +563,8 @@ protected void userEventTriggered0(ChannelHandlerContext ctx, Object evt) throws |
564 | 563 | static final class ClientTlsProtocolNegotiator implements ProtocolNegotiator { |
565 | 564 |
|
566 | 565 | public ClientTlsProtocolNegotiator(SslContext sslContext, |
567 | | - ObjectPool<? extends Executor> executorPool, Optional<Runnable> handshakeCompleteRunnable, |
568 | | - X509TrustManager x509ExtendedTrustManager, String sni, boolean isXdsTarget) { |
| 566 | + ObjectPool<? extends Executor> executorPool, Optional<Runnable> handshakeCompleteRunnable, |
| 567 | + X509TrustManager x509ExtendedTrustManager, String sni, boolean isXdsTarget) { |
569 | 568 | this.sslContext = Preconditions.checkNotNull(sslContext, "sslContext"); |
570 | 569 | this.executorPool = executorPool; |
571 | 570 | if (this.executorPool != null) { |
@@ -628,10 +627,10 @@ static final class ClientTlsHandler extends ProtocolNegotiationHandler { |
628 | 627 | private SSLEngine sslEngine; |
629 | 628 |
|
630 | 629 | ClientTlsHandler(ChannelHandler next, SslContext sslContext, String sniHostPort, |
631 | | - Executor executor, ChannelLogger negotiationLogger, |
632 | | - Optional<Runnable> handshakeCompleteRunnable, |
633 | | - ClientTlsProtocolNegotiator clientTlsProtocolNegotiator, |
634 | | - X509TrustManager x509ExtendedTrustManager) { |
| 630 | + Executor executor, ChannelLogger negotiationLogger, |
| 631 | + Optional<Runnable> handshakeCompleteRunnable, |
| 632 | + ClientTlsProtocolNegotiator clientTlsProtocolNegotiator, |
| 633 | + X509TrustManager x509ExtendedTrustManager) { |
635 | 634 | super(next, negotiationLogger); |
636 | 635 | this.sslContext = Preconditions.checkNotNull(sslContext, "sslContext"); |
637 | 636 | if (!Strings.isNullOrEmpty(sniHostPort)) { |
@@ -753,8 +752,8 @@ static HostPort parseAuthority(String authority) { |
753 | 752 | * @param executorPool a dedicated {@link Executor} pool for time-consuming TLS tasks |
754 | 753 | */ |
755 | 754 | public static ProtocolNegotiator tls(SslContext sslContext, |
756 | | - ObjectPool<? extends Executor> executorPool, Optional<Runnable> handshakeCompleteRunnable, |
757 | | - X509TrustManager x509ExtendedTrustManager, String sni, boolean isXdsTarget) { |
| 755 | + ObjectPool<? extends Executor> executorPool, Optional<Runnable> handshakeCompleteRunnable, |
| 756 | + X509TrustManager x509ExtendedTrustManager, String sni, boolean isXdsTarget) { |
758 | 757 | return new ClientTlsProtocolNegotiator(sslContext, executorPool, handshakeCompleteRunnable, |
759 | 758 | x509ExtendedTrustManager, sni, isXdsTarget); |
760 | 759 | } |
|
0 commit comments