org.faceless.pdf2.viewer2.feature
Class FormSignedSignatureWidgetFactory.SignatureState

java.lang.Object
  extended by org.faceless.pdf2.viewer2.feature.FormSignedSignatureWidgetFactory.SignatureState
Enclosing class:
FormSignedSignatureWidgetFactory

public class FormSignedSignatureWidgetFactory.SignatureState
extends Object

A SignatureState contains information about a Signature once it's been verified. This can be used to display information about the signatures in a popup window to the user.


Method Summary
 X509Certificate getCertificate()
          Return the X.509 certificate that couldn't be verified, or null if all the certificates passed or the signature isn't a PKCS#7 signature.
 Exception getException()
          Return the exception that occurred when trying to verify the signature or certificate, or null if none was thrown
 String getReason()
          Return the descriptive text describing the state
 FormSignature getSignature()
          Return the signature itself
 Boolean getValidity()
          Return the validity of the Signature, with true indicating good, false indicating bad and null meaning unknown.
 boolean isAlteredSince()
          Return true of the PDF was altered since the signature was applied.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getValidity

public Boolean getValidity()
Return the validity of the Signature, with true indicating good, false indicating bad and null meaning unknown.


getReason

public String getReason()
Return the descriptive text describing the state


isAlteredSince

public boolean isAlteredSince()
Return true of the PDF was altered since the signature was applied. Only useful if getValidity() returns true.


getCertificate

public X509Certificate getCertificate()
Return the X.509 certificate that couldn't be verified, or null if all the certificates passed or the signature isn't a PKCS#7 signature.


getException

public Exception getException()
Return the exception that occurred when trying to verify the signature or certificate, or null if none was thrown


getSignature

public FormSignature getSignature()
Return the signature itself



Copyright © 2001-2008 Big Faceless Organization