Skip navigation links

Oracle Fusion Middleware Java API Reference for Oracle Business Intelligence Publisher
11g Release 1 (11.1.1)

E22256-01


oracle.xdo.common.pdf.signature
Class SignatureField

java.lang.Object
  extended by oracle.xdo.common.pdf.signature.SignatureField


public class SignatureField
extends java.lang.Object

This class provides a signature field's information. This class is a read only mode for the PDF document and you can only get the signature related information only from the PDF document. If you want to remove some signature fields, please use PDFSignature class instead.


Method Summary
 byte[] extractRevision()
           
 int getRevision()
          Returns a revision value.
 boolean verifyCertificates(java.util.Vector trustedCertificates, java.util.Vector crls)
          Verifies if the certificate chain used to sign the document is valid against the trusted (root) certificates.
 boolean verifyDocument()
          Verifies if the portion of PDF document has been modified a signature applied.

 

Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

 

Method Detail

extractRevision

public byte[] extractRevision()

getRevision

public int getRevision()
Returns a revision value. The value starts with 1.
Returns:

verifyDocument

public boolean verifyDocument()
Verifies if the portion of PDF document has been modified a signature applied. This doesn't support Acrobat5 signed PDF document with adbe.pkcs7.detached because Acrobat5 generates the pkcs7 incorrectly. It looks like Acrobat7 and above generate pkcs7 object properly. However, I didn't verify Acrobat6 pkcs7 detached document.
Returns:
true if the document has not been modified.

verifyCertificates

public boolean verifyCertificates(java.util.Vector trustedCertificates,
                                  java.util.Vector crls)
                           throws CertificateNotYetValidException,
                                  CertificateExpiredException,
                                  CertificateRevokedException,
                                  NoTrustedCertificateException,
                                  NotVerifiedAgainstChainException,
                                  NotVerifiedAgainstTrustedRoot
Verifies if the certificate chain used to sign the document is valid against the trusted (root) certificates. The trustedCertificates should contain at least on File instance which points to a root CA, otherwise, NoTurstedCertificateException is thrown. The crls can be a null if there is no Certificate Revocation List.
Parameters:
trustedCertificates - which contains File instances
crls - which contains File instances
Returns:
Throws:
CertificateNotYetValidException
CertificateExpiredException
CertificateRevokedException
NoTrustedCertificateException
NotVerifiedAgainstChainException
NotVerifiedAgainstTrustedRoot

Skip navigation links

Oracle Fusion Middleware Java API Reference for Oracle Business Intelligence Publisher
11g Release 1 (11.1.1)

E22256-01


Copyright © 2010, 2011, Oracle. All rights reserved.