File tree Expand file tree Collapse file tree 4 files changed +34
-7
lines changed
core/src/main/java/io/grpc/internal
netty/src/main/java/io/grpc/netty Expand file tree Collapse file tree 4 files changed +34
-7
lines changed Original file line number Diff line number Diff line change 1+ /*
2+ * Copyright 2025 The gRPC Authors
3+ *
4+ * Licensed under the Apache License, Version 2.0 (the "License");
5+ * you may not use this file except in compliance with the License.
6+ * You may obtain a copy of the License at
7+ *
8+ * http://www.apache.org/licenses/LICENSE-2.0
9+ *
10+ * Unless required by applicable law or agreed to in writing, software
11+ * distributed under the License is distributed on an "AS IS" BASIS,
12+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+ * See the License for the specific language governing permissions and
14+ * limitations under the License.
15+ */
16+
117package io .grpc .internal ;
218
319import io .grpc .Status ;
420
21+ /** Verifier for the outgoing authority pseudo-header against peer cert. */
522public interface AuthorityVerifier {
623 Status verifyAuthority (String authority );
724}
Original file line number Diff line number Diff line change @@ -44,5 +44,6 @@ public final class GrpcAttributes {
4444
4545 public static final Attributes .Key <AuthorityVerifier > ATTR_AUTHORITY_VERIFIER =
4646 Attributes .Key .create ("io.grpc.internal.GrpcAttributes.authorityVerifier" );
47+
4748 private GrpcAttributes () {}
4849}
Original file line number Diff line number Diff line change 7171import io .netty .handler .ssl .SslProvider ;
7272import io .netty .util .AsciiString ;
7373import java .io .ByteArrayInputStream ;
74- import java .lang .reflect .InvocationTargetException ;
75- import java .lang .reflect .Method ;
7674import java .net .SocketAddress ;
7775import java .net .URI ;
7876import java .nio .channels .ClosedChannelException ;
7977import java .security .GeneralSecurityException ;
8078import java .security .KeyStore ;
81- import java .security .cert .Certificate ;
82- import java .security .cert .CertificateException ;
83- import java .security .cert .X509Certificate ;
8479import java .util .Arrays ;
8580import java .util .EnumSet ;
8681import java .util .List ;
8782import java .util .Set ;
8883import java .util .concurrent .Executor ;
8984import java .util .logging .Level ;
9085import java .util .logging .Logger ;
91- import javax .annotation .Nonnull ;
9286import javax .annotation .Nullable ;
9387import javax .net .ssl .SSLEngine ;
9488import javax .net .ssl .SSLException ;
9589import javax .net .ssl .SSLParameters ;
96- import javax .net .ssl .SSLPeerUnverifiedException ;
9790import javax .net .ssl .SSLSession ;
9891import javax .net .ssl .TrustManager ;
9992import javax .net .ssl .TrustManagerFactory ;
Original file line number Diff line number Diff line change 1+ /*
2+ * Copyright 2025 The gRPC Authors
3+ *
4+ * Licensed under the Apache License, Version 2.0 (the "License");
5+ * you may not use this file except in compliance with the License.
6+ * You may obtain a copy of the License at
7+ *
8+ * http://www.apache.org/licenses/LICENSE-2.0
9+ *
10+ * Unless required by applicable law or agreed to in writing, software
11+ * distributed under the License is distributed on an "AS IS" BASIS,
12+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+ * See the License for the specific language governing permissions and
14+ * limitations under the License.
15+ */
16+
117package io .grpc .netty ;
218
319import io .grpc .Status ;
You can’t perform that action at this time.
0 commit comments