class CertValidity
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private CertificationAuthorities |
CAroot |
private java.security.cert.X509Certificate |
cert |
private java.lang.String |
certPathError |
private X509CertRL |
CRL |
private java.lang.String |
CRLerror |
private boolean |
hasQCStatements |
private boolean |
isDownloadCRLForced |
private boolean |
isExpired |
private boolean |
isInUse |
private boolean |
isPassed |
private boolean |
isPathValid |
private boolean |
isRevoked |
private java.util.logging.Logger |
log |
private boolean |
qcCompliance |
private java.util.ArrayList<java.lang.String> |
qcStatementsStrings |
Constructor and Description |
---|
CertValidity(java.security.cert.X509Certificate c,
CertificationAuthorities C)
Constructor of the class.
|
CertValidity(java.security.cert.X509Certificate c,
CertificationAuthorities C,
boolean isDownloadCRLForced,
java.io.File crlDir)
Constructor of the class.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getCertPathError() |
java.security.cert.X509CRL |
getCRL() |
java.lang.String |
getCRLerror()
Returns error message during CRL download. see X509CertRL
NB call this method always after getPassed(), that calls X509crl.isrevoked()
Restituisce una stringa contenente un messaggio di errore nella fase di verifica o download della CRL. vedi X509CertRL //chiamare questo metodo sempre dopo aver chiamata getpassed che chiama a sua volta //x509crl.isrevoked! |
boolean |
getExpired()
Return true if certificate is expired
Restituisce true se il certificato � scaduto |
boolean |
getHasQcStatements() |
boolean |
getInUse()
Return true if the certificate is active
Restituisce true se il certificato � ancora attivo |
boolean |
getPassed_noExpiredCheck() |
boolean |
getPassed()
Return the general result
Restituisce il risultato di tutte le verifiche |
boolean |
getPathValid()
Checks certification path by IssuerX500Principal keyed in CAroot
Risale il certification path attraverso IssuerX500Principal chiave in CAroot |
java.util.ArrayList<java.lang.String> |
getQcStatementsStrings() |
java.lang.String |
getReasonCode()
Returns ReasonCode
CRLReason ::= ENUMERATED {
unspecified(0), keyCompromise(1), cACompromise(2), affiliationChanged(3),
superseded(4), cessationOfOperation(5), certificateHold(6), removeFromCRL(8)
}
and possibly the date of revokation. see X509CertRL
|
boolean |
getRevoked()
Checks if certificate is revoked
Verifica che il certificato non sia stato revocato. |
boolean |
isCRLChecked() |
boolean |
isExpired() |
boolean |
isInUse() |
boolean |
isPassed() |
boolean |
isPathValid() |
boolean |
isRevoked() |
void |
setExpired(boolean b) |
void |
setInUse(boolean b) |
void |
setisDownloadCRLForced(boolean b) |
void |
setPassed(boolean b) |
void |
setPathValid(boolean b) |
void |
setRevoked(boolean b) |
private java.util.logging.Logger log
private boolean isPathValid
private java.lang.String CRLerror
private java.lang.String certPathError
private boolean isRevoked
private boolean isDownloadCRLForced
private boolean isExpired
private boolean isInUse
private boolean isPassed
private java.security.cert.X509Certificate cert
private CertificationAuthorities CAroot
private X509CertRL CRL
private boolean hasQCStatements
private boolean qcCompliance
private java.util.ArrayList<java.lang.String> qcStatementsStrings
public CertValidity(java.security.cert.X509Certificate c, CertificationAuthorities C)
c
- certificateC
- CertificationAuthoritiespublic CertValidity(java.security.cert.X509Certificate c, CertificationAuthorities C, boolean isDownloadCRLForced, java.io.File crlDir)
c
- certificate4C
- CertificationAuthoritiesisDownloadCRLForced
- if true CRL download is forcedpublic java.lang.String getCertPathError()
public java.security.cert.X509CRL getCRL()
public boolean getPathValid()
public boolean getRevoked()
public boolean isCRLChecked()
public java.lang.String getReasonCode()
public java.lang.String getCRLerror()
public boolean getPassed()
public boolean getPassed_noExpiredCheck()
public boolean getExpired()
public boolean getInUse()
public boolean isPathValid()
public boolean isRevoked()
public boolean isPassed()
public boolean isExpired()
public boolean isInUse()
public void setPathValid(boolean b)
public void setRevoked(boolean b)
public void setPassed(boolean b)
public void setExpired(boolean b)
public void setInUse(boolean b)
public void setisDownloadCRLForced(boolean b)
public boolean getHasQcStatements()
public java.util.ArrayList<java.lang.String> getQcStatementsStrings()