Skip to content

Commit 1d6f46f

Browse files
committed
Fix style
1 parent 02a1041 commit 1d6f46f

File tree

4 files changed

+34
-7
lines changed

4 files changed

+34
-7
lines changed
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,24 @@
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+
117
package io.grpc.internal;
218

319
import io.grpc.Status;
420

21+
/** Verifier for the outgoing authority pseudo-header against peer cert. */
522
public interface AuthorityVerifier {
623
Status verifyAuthority(String authority);
724
}

core/src/main/java/io/grpc/internal/GrpcAttributes.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff 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
}

netty/src/main/java/io/grpc/netty/ProtocolNegotiators.java

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -71,29 +71,22 @@
7171
import io.netty.handler.ssl.SslProvider;
7272
import io.netty.util.AsciiString;
7373
import java.io.ByteArrayInputStream;
74-
import java.lang.reflect.InvocationTargetException;
75-
import java.lang.reflect.Method;
7674
import java.net.SocketAddress;
7775
import java.net.URI;
7876
import java.nio.channels.ClosedChannelException;
7977
import java.security.GeneralSecurityException;
8078
import java.security.KeyStore;
81-
import java.security.cert.Certificate;
82-
import java.security.cert.CertificateException;
83-
import java.security.cert.X509Certificate;
8479
import java.util.Arrays;
8580
import java.util.EnumSet;
8681
import java.util.List;
8782
import java.util.Set;
8883
import java.util.concurrent.Executor;
8984
import java.util.logging.Level;
9085
import java.util.logging.Logger;
91-
import javax.annotation.Nonnull;
9286
import javax.annotation.Nullable;
9387
import javax.net.ssl.SSLEngine;
9488
import javax.net.ssl.SSLException;
9589
import javax.net.ssl.SSLParameters;
96-
import javax.net.ssl.SSLPeerUnverifiedException;
9790
import javax.net.ssl.SSLSession;
9891
import javax.net.ssl.TrustManager;
9992
import javax.net.ssl.TrustManagerFactory;

netty/src/main/java/io/grpc/netty/X509AuthorityVerifier.java

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,19 @@
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+
117
package io.grpc.netty;
218

319
import io.grpc.Status;

0 commit comments

Comments
 (0)