문제

In my application, noticed that among signed jar files even unsigned jar file are also getting loaded while invoke application, so to ensure the security i need guidance to prevent loading of any unsigned jars

EDIT:

How to identify / retrieve the Jar signature using ClassLoader

도움이 되었습니까?

해결책 3

We can use jarverifier in the link, to check whether the jar has completely signed not and at the same time it can be used to verify the certificate of jar file.

다른 팁

You might be able to achieve this using the all-permissions element in your jnlp file.

<security>
  <all-permissions/>
</security>

see http://docs.oracle.com/javase/7/docs/technotes/guides/javaws/developersguide/syntax.html and Is it possible to use jnlp without signing the jars?

Hope it helps.

One solution is to create a custom version of JarClassLoader which will check jars signatures.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top