COSString certString = (COSString)cert.getDictionaryObject(
COSName.getPDFName( "Cert" ) );
byte[] certData = certString.getBytes();
CertificateFactory factory = CertificateFactory.getInstance( "X.509" );
ByteArrayInputStream certStream = new ByteArrayInputStream( certData );
Collection certs = factory.generateCertificates( certStream );
System.out.println( "certs=" + certs );
}
else if( subFilter.getName().equals( "adbe.pkcs7.sha1" ) )
{
COSString certString = (COSString)cert.getDictionaryObject(