org.icepdf.ri.common.utility.signatures
Class SignatureTreeNode

java.lang.Object
  extended by javax.swing.tree.DefaultMutableTreeNode
      extended by org.icepdf.ri.common.utility.signatures.SignatureTreeNode
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable, javax.swing.tree.MutableTreeNode, javax.swing.tree.TreeNode

public class SignatureTreeNode
extends javax.swing.tree.DefaultMutableTreeNode

Represents a signatures in the signature tree. The node can be expanded to show more details about the signer, validity and certificate details.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class javax.swing.tree.DefaultMutableTreeNode
allowsChildren, children, EMPTY_ENUMERATION, parent, userObject
 
Constructor Summary
SignatureTreeNode(org.icepdf.core.pobjects.annotations.SignatureWidgetAnnotation signatureWidgetAnnotation, java.util.ResourceBundle messageBundle)
          Creates a new instance of an OutlineItemTreeNode
 
Method Summary
 org.icepdf.core.pobjects.annotations.SignatureWidgetAnnotation getOutlineItem()
           
protected  javax.swing.ImageIcon getRootNodeValidityIcon()
           
 boolean isVerifyingSignature()
           
 void refreshSignerNode()
          Builds a rather complicated tree node and child nodes to show various properties of a a signer and the corresponding certificate.
 void setVerifyingSignature(boolean verifyingSignature)
          Flat to indicated that the validation process has completed and the state variables are in a completed state.
 void validateSignatureNode()
          Validates the signatures represented by this tree node.
 
Methods inherited from class javax.swing.tree.DefaultMutableTreeNode
add, breadthFirstEnumeration, children, clone, depthFirstEnumeration, getAllowsChildren, getChildAfter, getChildAt, getChildBefore, getChildCount, getDepth, getFirstChild, getFirstLeaf, getIndex, getLastChild, getLastLeaf, getLeafCount, getLevel, getNextLeaf, getNextNode, getNextSibling, getParent, getPath, getPathToRoot, getPreviousLeaf, getPreviousNode, getPreviousSibling, getRoot, getSharedAncestor, getSiblingCount, getUserObject, getUserObjectPath, insert, isLeaf, isNodeAncestor, isNodeChild, isNodeDescendant, isNodeRelated, isNodeSibling, isRoot, pathFromAncestorEnumeration, postorderEnumeration, preorderEnumeration, remove, remove, removeAllChildren, removeFromParent, setAllowsChildren, setParent, setUserObject, toString
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SignatureTreeNode

public SignatureTreeNode(org.icepdf.core.pobjects.annotations.SignatureWidgetAnnotation signatureWidgetAnnotation,
                         java.util.ResourceBundle messageBundle)
Creates a new instance of an OutlineItemTreeNode

Parameters:
signatureWidgetAnnotation - Contains PDF Outline signatureWidgetAnnotation data
Method Detail

validateSignatureNode

public void validateSignatureNode()
                           throws org.icepdf.core.pobjects.acroform.signature.exceptions.SignatureIntegrityException
Validates the signatures represented by this tree node. This method is called by a worker thread and once validation is complete the notes states is updated with a call to refreshSignerNode()

Throws:
org.icepdf.core.pobjects.acroform.signature.exceptions.SignatureIntegrityException

refreshSignerNode

public void refreshSignerNode()
Builds a rather complicated tree node and child nodes to show various properties of a a signer and the corresponding certificate. The main purpose is to display to the end user if the certificate is valid and can be trusted as well as showing document permissions and if the document has been modified since it was singed.

- Singed by "signer name" | - Signature is | - This version of the document has been altered - SignatureSigner's identity is - Signature includes an embedded timestamp | Signing is from the clock of the signer's computer. - Permissions | - No changes allowed - Field values can be changed - needs more research - Signature Details | - Reason: - Location: - Certificate Details (clickable, loads certificate dialog) - Last Checked: - Field Name: on page X (clickable, takes to page and applies focus).


getRootNodeValidityIcon

protected javax.swing.ImageIcon getRootNodeValidityIcon()

isVerifyingSignature

public boolean isVerifyingSignature()

setVerifyingSignature

public void setVerifyingSignature(boolean verifyingSignature)
Flat to indicated that the validation process has completed and the state variables are in a completed state. This doesn't mean that the signature is valid just the validation process is complete.

Parameters:
verifyingSignature - true to indicate the validation process is complete, otherwise falls.

getOutlineItem

public org.icepdf.core.pobjects.annotations.SignatureWidgetAnnotation getOutlineItem()