- java.lang.Object
-
- javax.swing.tree.DefaultMutableTreeNode
-
- org.icepdf.ri.common.utility.signatures.SignatureTreeNode
-
- All Implemented Interfaces:
Serializable,Cloneable,MutableTreeNode,TreeNode
public class SignatureTreeNode extends 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
Constructors Constructor Description SignatureTreeNode(SignatureWidgetAnnotation signatureWidgetAnnotation, ResourceBundle messageBundle)Creates a new instance of an OutlineItemTreeNode
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SignatureWidgetAnnotationgetOutlineItem()protected IcongetRootNodeValidityIcon()booleanisVerifyingSignature()voidrefreshSignerNode()Builds a rather complicated tree node and child nodes to show various properties of a a signer and the corresponding certificate.voidsetVerifyingSignature(boolean verifyingSignature)Flat to indicated that the validation process has completed and the state variables are in a completed state.voidvalidateSignatureNode()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
-
-
-
-
Constructor Detail
-
SignatureTreeNode
public SignatureTreeNode(SignatureWidgetAnnotation signatureWidgetAnnotation, ResourceBundle messageBundle)
Creates a new instance of an OutlineItemTreeNode- Parameters:
signatureWidgetAnnotation- Contains PDF Outline signatureWidgetAnnotation datamessageBundle- i18n message bundle
-
-
Method Detail
-
validateSignatureNode
public void validateSignatureNode() throws SignatureIntegrityExceptionValidates 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 torefreshSignerNode()- Throws:
SignatureIntegrityException- security exception if validation failed.
-
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 <valid|invalid> | - This version of the document has <not> been altered - SignatureSigner's identity is <valid|invalid> - 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: <verification last run time> - Field Name: <field name> on page X (clickable, takes to page and applies focus).
-
getRootNodeValidityIcon
protected Icon 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 SignatureWidgetAnnotation getOutlineItem()
-
-