Class KeyStoreSignatureProvider.X509SignatureState
- java.lang.Object
-
- org.faceless.pdf2.viewer2.SignatureProvider.SignatureState
-
- org.faceless.pdf2.viewer2.feature.KeyStoreSignatureProvider.X509SignatureState
-
- Enclosing class:
- KeyStoreSignatureProvider
public class KeyStoreSignatureProvider.X509SignatureState extends SignatureProvider.SignatureState
A subclass of SignatureState that references an X.509 Certificate. This class is used internally by the KeyStoreSignatureProvider and there's no need to reference it directly unless you're extending it.
-
-
Constructor Summary
Constructors Constructor Description X509SignatureState(FormSignature sig, Boolean validity, String reason, boolean alteredsince, Exception exception, X509Certificate signingcert, X509Certificate invalidcert)
Create a new X509SignatureState
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description X509Certificate
getCertificate()
Deprecated.callgetUnverifiableCertificate()
insteadX509Certificate
getSigningCertificate()
Return the signing certificate from the signature.X509Certificate
getUnverifiableCertificate()
If the certificate chain could not be verified up to a trusted root in the KeyStore, Return the Certificate that failed to verify.-
Methods inherited from class org.faceless.pdf2.viewer2.SignatureProvider.SignatureState
getException, getIcon, getReason, getSignature, getSignatureProvider, getValidity, isAlteredSince
-
-
-
-
Constructor Detail
-
X509SignatureState
public X509SignatureState(FormSignature sig, Boolean validity, String reason, boolean alteredsince, Exception exception, X509Certificate signingcert, X509Certificate invalidcert)
Create a new X509SignatureState- Parameters:
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 verification, or null if it succeededsigningcert
- the X.509 Certificate from the signature used to signinvalidcert
- the X.509 Certificate from the signature that failed to verify
-
-
Method Detail
-
getCertificate
public X509Certificate getCertificate()
Deprecated.callgetUnverifiableCertificate()
instead
-
getUnverifiableCertificate
public X509Certificate getUnverifiableCertificate()
If the certificate chain could not be verified up to a trusted root in the KeyStore, Return the Certificate that failed to verify. Otherwise, if everything was perfect, return null.- Since:
- 2.26.2
-
getSigningCertificate
public X509Certificate getSigningCertificate()
Return the signing certificate from the signature.- Since:
- 2.26.2
-
-