|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.faceless.pdf2.viewer2.SignatureProvider.SignatureState
public class SignatureProvider.SignatureState
A SignatureState contains information about a FormSignature
once it's been verified.
This is used to display information about the signatures in the dialog displayed
by showVerifyDialog()
, and to determine which Icon to display on
any visual representation of the Signature in the PDF (see SignatureProvider.getIcon(org.faceless.pdf2.viewer2.DocumentPanel, org.faceless.pdf2.FormSignature)
).
Subclasses of SignatureState may extend this class to store additional information if necessary.
Constructor Summary | |
---|---|
SignatureProvider.SignatureState(FormSignature sig,
Boolean validity,
String reason,
boolean alteredsince,
Exception exception)
Create a new SignatureState |
Method Summary | |
---|---|
Exception |
getException()
Return the Exception that occurred when trying to verify the signature or certificate, or null if none was thrown. |
ImageIcon |
getIcon()
Return an Icon that visually represents the state of the signature. |
String |
getReason()
Return the descriptive text describing this state |
FormSignature |
getSignature()
Return the signature itself |
SignatureProvider |
getSignatureProvider()
Return the SignatureProvider that verified the Signature and
created this SignatureState object. |
Boolean |
getValidity()
Return the validity of the Signature. |
boolean |
isAlteredSince()
Return true of the PDF has been altered since the signature was applied. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SignatureProvider.SignatureState(FormSignature sig, Boolean validity, String reason, boolean alteredsince, Exception exception)
sig
- the signaturevalidity
- Boolean.TRUE
, Boolean.FALSE
or null to indicate the signature is valid, invalid or hasn't be validatedreason
- the reason for signingalteredsince
- whether the PDF has been altered since the signature was appliedexception
- the exception encountered during validation, or null if it succeededMethod Detail |
---|
public Boolean getValidity()
Boolean.TRUE
for valid, Boolean.FALSE
for invalid
or null
for unknown validity.
public String getReason()
public boolean isAlteredSince()
getValidity()
returns True.
public Exception getException()
null
if none was thrown.
public FormSignature getSignature()
public SignatureProvider getSignatureProvider()
SignatureProvider
that verified the Signature and
created this SignatureState object.
public ImageIcon getIcon()
Icon
that visually represents the state of the signature. This
will be displayed in the DocumentPanel
and in the dialog displayed by
showVerifyDialog()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |