File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -537,17 +537,17 @@ public static void main(String[] args) throws Exception {
537537 rawout .close ();
538538 outc2pa = null ;
539539 }
540+ if (boxdebug ) {
541+ System .out .println (c2pa .dump (null , null ));
542+ }
543+ if (debug ) {
544+ System .out .println (c2pa .toJson ().toString (new JsonWriteOptions ().setPretty (true ).setCborDiag ("hex" )));
545+ }
540546// List<C2PAManifest> manifests = c2pa.getManifests(); // to validate ALL manifests
541547 List <C2PAManifest > manifests = Collections .<C2PAManifest >singletonList (c2pa .getActiveManifest ()); // validate only current manifest
542548 for (C2PAManifest manifest : manifests ) {
543549 in = new FileInputStream (inname );
544550 manifest .setInputStream (in );
545- if (debug ) {
546- System .out .println (c2pa .toJson ().toString (new JsonWriteOptions ().setPretty (true ).setCborDiag ("hex" )));
547- }
548- if (boxdebug ) {
549- System .out .println (c2pa .dump (null , null ));
550- }
551551 System .out .println ("# verifying " + (manifest == c2pa .getActiveManifest () ? "active " : "" ) + "manifest \" " + manifest .label () + "\" " );
552552 List <C2PAStatus > status = manifest .getSignature ().verify (null );
553553 boolean ok = true ;
You can’t perform that action at this time.
0 commit comments