Skip to content

Commit

Permalink
refactor: remove unused
Browse files Browse the repository at this point in the history
  • Loading branch information
yeikel committed May 22, 2024
1 parent c0299ad commit 36a3fcc
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions src/test/java/io/vertx/test/core/TestUtils.java
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,6 @@
import java.util.stream.Collectors;
import java.util.stream.StreamSupport;
import java.util.zip.GZIPOutputStream;

import javax.security.cert.X509Certificate;

import io.netty.buffer.Unpooled;
import io.netty.handler.codec.http2.Http2CodecUtil;
import io.netty.util.NetUtil;
Expand Down Expand Up @@ -472,12 +469,6 @@ public static String cnOf(Certificate cert) throws Exception {
return null;
}

public static String cnOf(X509Certificate cert) throws Exception {
String dn = cert.getSubjectDN().getName();
List<String> names = KeyStoreHelper.getX509CertificateCommonNames(dn);
return names.isEmpty() ? null : names.get(0);
}

/**
* @return the loopback address for testing
*/
Expand Down

0 comments on commit 36a3fcc

Please sign in to comment.