public class VerifyResult
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private boolean |
cades |
private java.security.cert.X509Certificate |
cert |
private java.lang.String |
certPathError |
private boolean |
checkQCStatements |
private org.bouncycastle.cms.CMSSignedData |
cms |
private boolean |
contentTypeDataPresent |
private boolean |
counterSignature |
private java.io.File |
crlDir |
private boolean |
crlDownloadForced |
private java.lang.String |
CRLerror |
private CertValidity |
cv |
private java.lang.String |
encodedDigest |
private boolean |
encryptionRSA |
private boolean |
hashingSHA256 |
private boolean |
integrityChecked |
private boolean |
isExpired |
private boolean |
isInUse |
private boolean |
isPathValid |
private boolean |
isRevoked |
private boolean |
keyUsageNonRepudiationAloneCritical |
private java.util.logging.Logger |
log |
private boolean |
messageDigestPresent |
private boolean |
passed |
private java.util.Hashtable<javax.security.auth.x500.X500Principal,VerifyResult> |
risultatiCs |
private org.bouncycastle.cms.SignerInformation |
signer |
private java.lang.String |
signingAlgorithmName |
private java.util.Date |
signingTime |
Constructor and Description |
---|
VerifyResult(org.bouncycastle.util.Store certs,
java.security.cert.X509Certificate c,
org.bouncycastle.cms.CMSSignedData cm,
CertificationAuthorities C,
org.bouncycastle.cms.SignerInformation s)
Constructor
|
VerifyResult(org.bouncycastle.util.Store certs,
java.security.cert.X509Certificate c,
org.bouncycastle.cms.CMSSignedData cm,
CertificationAuthorities roots,
org.bouncycastle.cms.SignerInformation s,
boolean counterSignature,
boolean isDownloadCRLForced,
boolean checkQCS,
java.io.File crlDir)
Constructor
|
Modifier and Type | Method and Description |
---|---|
boolean |
checkIntegrity()
Main signature verification and signature attributes correctness
Verifica principale della firma e di correttezza degli attributi. |
java.lang.String |
encodeFromBytes(byte[] bytes)
Creates the base64 encoding of a byte array.
|
boolean |
getCAdES() |
java.security.cert.X509Certificate |
getCert() |
java.lang.String |
getCertPathError() |
java.security.cert.X509CRL |
getCrl() |
java.lang.String |
getCRLerror()
Return CRLerror (error during CRL download)
Restituisce l'errore CRLerror (errore durante il download della CRL) |
boolean |
getEncryptionRSA() |
boolean |
getHashingSHA256() |
boolean |
getKeyUsageNonRepudiationAloneCritical() |
boolean |
getPassed_cnipasigner_expired()
Perform the global verification and return the global result
Metodo complessivo che esegue e restituisce la verifica |
boolean |
getPassed()
Perform the global verification and return the global result
Metodo complessivo che esegue e restituisce la verifica |
java.util.Collection<java.lang.String> |
getQcStatementStrings() |
(package private) byte[] |
getRawBytes()
Return signed content Ritorna il contenuto firmato (la firma)
|
java.util.Hashtable<javax.security.auth.x500.X500Principal,VerifyResult> |
getRisultatiCs() |
java.lang.String |
getSigningAlgorithmName() |
java.util.Date |
getSigningTime() |
private void |
initCountersignatures(org.bouncycastle.util.Store certs,
org.bouncycastle.cms.CMSSignedData cm,
CertificationAuthorities roots,
org.bouncycastle.cms.SignerInformation parentSigner,
boolean isDownloadCRLForced) |
boolean |
isCades() |
boolean |
isCounterSignature() |
boolean |
isCRLChecked()
Checks if CRL is already been checked
True se la CRL è stata verificata |
boolean |
isDownloadCRLForced() |
boolean |
isEncryptionRSA() |
boolean |
isExpired() |
boolean |
isHashingSHA256() |
boolean |
isIntegrityChecked() |
boolean |
isInUse() |
boolean |
isKeyUsageNonRepudiationAloneCritical() |
boolean |
isMandatoryAuthenticatedAttributesPresent() |
boolean |
isPassed() |
boolean |
isPathValid()
Checks certification path by IssuerX500Principal keyed in CAroot
risale il certification path attraverso IssuerX500Principal chiave in CAroot |
boolean |
isQcStatementsPresent() |
boolean |
isRevoked() |
boolean |
mandatoryAuthenticatedAttributesPresent() |
void |
setPassed(boolean b) |
private java.util.logging.Logger log
private boolean isPathValid
private boolean integrityChecked
private boolean contentTypeDataPresent
private boolean messageDigestPresent
private boolean keyUsageNonRepudiationAloneCritical
private boolean isRevoked
private boolean isExpired
private boolean isInUse
private CertValidity cv
private java.lang.String CRLerror
private java.lang.String certPathError
private org.bouncycastle.cms.SignerInformation signer
private boolean counterSignature
private org.bouncycastle.cms.CMSSignedData cms
private java.security.cert.X509Certificate cert
private java.lang.String encodedDigest
private boolean crlDownloadForced
private boolean encryptionRSA
private boolean hashingSHA256
private boolean cades
private boolean checkQCStatements
private java.util.Date signingTime
private java.lang.String signingAlgorithmName
private boolean passed
private java.util.Hashtable<javax.security.auth.x500.X500Principal,VerifyResult> risultatiCs
private java.io.File crlDir
public VerifyResult(org.bouncycastle.util.Store certs, java.security.cert.X509Certificate c, org.bouncycastle.cms.CMSSignedData cm, CertificationAuthorities C, org.bouncycastle.cms.SignerInformation s)
c
- X509Certificatecm
- CMSSignedDataC
- CertificationAuthoritiess
- SignerInformationpublic VerifyResult(org.bouncycastle.util.Store certs, java.security.cert.X509Certificate c, org.bouncycastle.cms.CMSSignedData cm, CertificationAuthorities roots, org.bouncycastle.cms.SignerInformation s, boolean counterSignature, boolean isDownloadCRLForced, boolean checkQCS, java.io.File crlDir)
c
- X509Certificatecm
- CMSSignedDataC
- CertificationAuthoritiess
- SignerInformationisDownloadCRLForced
- booleanprivate void initCountersignatures(org.bouncycastle.util.Store certs, org.bouncycastle.cms.CMSSignedData cm, CertificationAuthorities roots, org.bouncycastle.cms.SignerInformation parentSigner, boolean isDownloadCRLForced)
public java.security.cert.X509CRL getCrl()
public java.security.cert.X509Certificate getCert()
public boolean checkIntegrity()
public boolean isIntegrityChecked()
public boolean getPassed()
public boolean isCounterSignature()
public java.util.Hashtable<javax.security.auth.x500.X500Principal,VerifyResult> getRisultatiCs()
public boolean getPassed_cnipasigner_expired()
public java.lang.String getCRLerror()
public java.lang.String getCertPathError()
public boolean isPathValid()
public boolean isRevoked()
public boolean isExpired()
public boolean isInUse()
public boolean isPassed()
public boolean isDownloadCRLForced()
public boolean isCRLChecked()
public void setPassed(boolean b)
public java.lang.String encodeFromBytes(byte[] bytes)
bytes
- byte[]byte[] getRawBytes()
public boolean mandatoryAuthenticatedAttributesPresent()
public java.util.Date getSigningTime()
public boolean getKeyUsageNonRepudiationAloneCritical()
public boolean isKeyUsageNonRepudiationAloneCritical()
public boolean getCAdES()
public boolean getEncryptionRSA()
public boolean getHashingSHA256()
public boolean isCades()
public java.lang.String getSigningAlgorithmName()
public boolean isEncryptionRSA()
public boolean isHashingSHA256()
public boolean isMandatoryAuthenticatedAttributesPresent()
public boolean isQcStatementsPresent()
public java.util.Collection<java.lang.String> getQcStatementStrings()