How to verify a jar signed with jarsigner programmatically

前端 未结 4 1906
佛祖请我去吃肉
佛祖请我去吃肉 2020-11-29 05:19

I\'m wanting to sign a jar using jarsigner, then verify it using a Java application which does not have the signed jar as part of it\'s classpath (i.e. just using a filesyst

4条回答
  •  难免孤独
    2020-11-29 05:48

    The security Provider implementation guide outlines the process of verifying JARs. Although these instructions are for a JCA cryptographic service provider to verify itself, they should be applicable to your problem.

    Specifically, check out the verify(X509Certificate targetCert) method in the sample code, "MyJCE.java".

提交回复
热议问题