org.knopflerfish.framework.validator
Class JKSValidator

java.lang.Object
  extended by org.knopflerfish.framework.validator.JKSValidator
All Implemented Interfaces:
Validator

public class JKSValidator
extends java.lang.Object
implements Validator

JKS certificate validator


Constructor Summary
JKSValidator()
          Create an Archive based on contents of an InputStream, the archive is saved as local copy in the specified directory.
 
Method Summary
 java.security.cert.Certificate[] checkCertificates(java.security.cert.Certificate[] certs)
          Check that certificates are valid:
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JKSValidator

public JKSValidator()
Create an Archive based on contents of an InputStream, the archive is saved as local copy in the specified directory.

Parameters:
storage - BundleStorageImpl for this archive.
dir - Directory to save data in.
rev - Revision of bundle content (used for updates).
is - Jar file data in an InputStream.
url - URL to use to CodeSource.
location - Location for archive
Method Detail

checkCertificates

public java.security.cert.Certificate[] checkCertificates(java.security.cert.Certificate[] certs)
Check that certificates are valid:

Specified by:
checkCertificates in interface Validator
Returns:
Array of certificates that we could not validate.