Skip to content

Commit 8d9ec59

Browse files
author
elasticsearchmachine
committed
[CI] Auto commit changes from spotless
1 parent a379700 commit 8d9ec59

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

x-pack/plugin/security/src/main/java/org/elasticsearch/xpack/security/transport/CrossClusterApiKeySignatureManager.java

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,6 @@
2020
import org.elasticsearch.logging.Logger;
2121
import org.elasticsearch.xpack.core.ssl.SslSettingsLoader;
2222

23-
import javax.net.ssl.X509ExtendedTrustManager;
24-
import javax.net.ssl.X509KeyManager;
25-
import javax.net.ssl.X509TrustManager;
26-
import javax.security.auth.x500.X500Principal;
2723
import java.nio.charset.StandardCharsets;
2824
import java.nio.file.Files;
2925
import java.nio.file.Path;
@@ -43,6 +39,11 @@
4339
import java.util.concurrent.atomic.AtomicReference;
4440
import java.util.stream.Collectors;
4541

42+
import javax.net.ssl.X509ExtendedTrustManager;
43+
import javax.net.ssl.X509KeyManager;
44+
import javax.net.ssl.X509TrustManager;
45+
import javax.security.auth.x500.X500Principal;
46+
4647
import static org.elasticsearch.xpack.security.transport.CrossClusterApiKeySigningSettings.KEYSTORE_ALIAS_SUFFIX;
4748
import static org.elasticsearch.xpack.security.transport.CrossClusterApiKeySigningSettings.SETTINGS_PART_DIAGNOSE_TRUST;
4849
import static org.elasticsearch.xpack.security.transport.CrossClusterApiKeySigningSettings.SETTINGS_PART_SIGNING;
@@ -209,7 +210,7 @@ public boolean verify(X509CertificateSignature signature, String... headers) thr
209210
/**
210211
* Find the certificate that issued the certificate at the top of the current chain. A certificate chain is a list of
211212
* certificates followed by one or more CA certificates (usually the last one being a self-signed certificate), with the
212-
* following properties:
213+
* following properties:
213214
* <br>
214215
* 1. The Issuer of each certificate (except the last one) matches the Subject of the next certificate in the list.
215216
* 2. Each certificate (except the last one) is signed by the secret key corresponding to the next certificate in the chain (i.e.

0 commit comments

Comments
 (0)