File tree Expand file tree Collapse file tree
sigstore-java/src/test/java/dev/sigstore/fulcio/client Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2626import dev .sigstore .testing .FulcioWrapper ;
2727import dev .sigstore .testing .MockOAuth2ServerExtension ;
2828import dev .sigstore .testing .grpc .GrpcTypes ;
29- import dev .sigstore .trustroot .Service ;
30- import dev .sigstore .tuf .SigstoreTufClient ;
3129import java .nio .charset .StandardCharsets ;
3230import java .security .cert .CertificateException ;
33- import java .util .List ;
3431import java .util .function .Function ;
3532import java .util .stream .Stream ;
3633import org .junit .jupiter .api .Assertions ;
@@ -109,11 +106,6 @@ public void testDecodeCerts() throws Exception {
109106 Resources .getResource ("dev/sigstore/samples/fulcio-response/valid/certWithSct.pem" ),
110107 StandardCharsets .UTF_8 ));
111108
112- var tufClient = SigstoreTufClient .builder ().usePublicGoodInstance ().build ();
113- tufClient .update ();
114- var signingConfig = tufClient .getSigstoreSigningConfig ();
115- var fulcioService = Service .select (signingConfig .getCas (), List .of (1 )).get ();
116-
117109 var certPath = FulcioClient .decodeCerts (certs );
118110 Assertions .assertTrue (Certificates .getEmbeddedSCTs (Certificates .getLeaf (certPath )).isPresent ());
119111 Assertions .assertEquals (3 , certPath .getCertificates ().size ());
You can’t perform that action at this time.
0 commit comments