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 voidbuildElements(ReportBuilder<?,?> documentBuilder)Constroi os elementos específicos do relatóriobooleancertificateIsCA()static List<CertificateReport>flatten(CertificateReport report)X509CertificategetCertificate()StringgetElementTag()Retorna a tag do elementoX500PrincipalgetIssuerName()X500PrincipalgetSubjectName()booleanisExpired()booleanisIndeterminate()booleanisInvalid()booleanisNotAnchored()booleanisNotValidYet()booleanisRevoked()booleanisValid()voidsetValidationResult(ValidationResult validationResult)Methods inherited from class br.ufsc.labsec.signature.conformanceVerifier.report.AbstractReport
addAllErrorMessages, addErrorMessage, clear, formatDate, generateDocument, generateElement, generateJSON, getErrorMessagesMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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:AbstractReportConstroi os elementos específicos do relatório- Specified by:
buildElementsin classAbstractReport- Parameters:
documentBuilder- builder
-
flatten
-
getElementTag
Description copied from interface:ReportElementRetorna a tag do elemento- Returns:
- A tag do elemento
-
certificateIsCA
public boolean certificateIsCA()
-