List of usage examples for java.net JarURLConnection getCertificates
public java.security.cert.Certificate[] getCertificates() throws IOException
From source file:Main.java
public static void main(String[] argv) throws Exception { URL url = new URL("jar:file:/c://my.jar!/"); JarURLConnection conn = (JarURLConnection) url.openConnection(); Attributes attrs = conn.getAttributes(); Certificate[] certs = conn.getCertificates(); }