Class CertificateReport
java.lang.Object
br.ufsc.labsec.signature.conformanceVerifier.report.AbstractReport
br.ufsc.labsec.signature.conformanceVerifier.report.CertificateReport
- All Implemented Interfaces:
ReportElement
public class CertificateReport extends AbstractReport
-
Field Summary
Fields inherited from class br.ufsc.labsec.signature.conformanceVerifier.report.AbstractReport
DATE_TIME_FORMATTER
-
Constructor Summary
Constructors Constructor Description CertificateReport(X509Certificate certificate, boolean obtainedOnline, Time timeReference, boolean poe, boolean isICPBr, boolean isTrustAnchor, ValidationResult result)
CertificateReport(X509Certificate certificate, CertificateReport issuer, boolean obtainedOnline, ValidationResult result)
-
Method Summary
Modifier and Type Method Description protected void
buildElements(ReportBuilder<?,?> documentBuilder)
Constroi os elementos específicos do relatórioboolean
certificateIsCA()
static List<CertificateReport>
flatten(CertificateReport report)
X509Certificate
getCertificate()
String
getElementTag()
Retorna a tag do elementoX500Principal
getIssuerName()
X500Principal
getSubjectName()
boolean
isExpired()
boolean
isIndeterminate()
boolean
isInvalid()
boolean
isNotAnchored()
boolean
isNotValidYet()
boolean
isRevoked()
boolean
isValid()
void
setValidationResult(ValidationResult validationResult)
Methods inherited from class br.ufsc.labsec.signature.conformanceVerifier.report.AbstractReport
addAllErrorMessages, addErrorMessage, clear, formatDate, generateDocument, generateElement, generateJSON, getErrorMessages
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface br.ufsc.labsec.signature.conformanceVerifier.report.builder.ReportElement
getPluralElementTag
-
Constructor Details
-
CertificateReport
public CertificateReport(X509Certificate certificate, CertificateReport issuer, boolean obtainedOnline, ValidationResult result) -
CertificateReport
public CertificateReport(X509Certificate certificate, boolean obtainedOnline, Time timeReference, boolean poe, boolean isICPBr, boolean isTrustAnchor, ValidationResult result)
-
-
Method Details
-
isValid
public boolean isValid() -
isInvalid
public boolean isInvalid() -
isIndeterminate
public boolean isIndeterminate() -
isRevoked
public boolean isRevoked() -
isExpired
public boolean isExpired() -
isNotValidYet
public boolean isNotValidYet() -
isNotAnchored
public boolean isNotAnchored() -
setValidationResult
-
getCertificate
-
getSubjectName
-
getIssuerName
-
buildElements
Description copied from class:AbstractReport
Constroi os elementos específicos do relatório- Specified by:
buildElements
in classAbstractReport
- Parameters:
documentBuilder
- builder
-
flatten
-
getElementTag
Description copied from interface:ReportElement
Retorna a tag do elemento- Returns:
- A tag do elemento
-
certificateIsCA
public boolean certificateIsCA()
-