Class SimpleCertificateReport
- java.lang.Object
-
- eu.europa.esig.dss.simplecertificatereport.SimpleCertificateReport
-
public class SimpleCertificateReport extends Object
A SimpleCertificateReport holder to fetch values from a JAXB SimpleCertificateReport.
-
-
Constructor Summary
Constructors Constructor Description SimpleCertificateReport(XmlSimpleCertificateReport simpleReport)
-
Method Summary
Modifier and Type Method Description List<String>getCertificateAiaUrls(String certificateId)This method returns the list of AIA urls (caIssuers) for a given certificateStringgetCertificateCommonName(String certificateId)This method returns the commonName attribute for a given certificateStringgetCertificateCountry(String certificateId)This method returns the country attribute for a given certificateList<String>getCertificateCpsUrls(String certificateId)This method returns the list of CPS (Certificate Practice Statements) urls for a given certificateList<String>getCertificateCrlUrls(String certificateId)This method returns the list of CRL (Certificate Revocation List) urls for a given certificateStringgetCertificateEmail(String certificateId)This method returns the email attribute for a given certificateStringgetCertificateGivenName(String certificateId)This method returns the givenName attribute for a given certificateList<String>getCertificateIds()This method returns a list of certificate idsIndicationgetCertificateIndication(String certificateId)This method returns theIndication(result of validation) for a given certificateStringgetCertificateLocality(String certificateId)This method returns the locality attribute for a given certificateDategetCertificateNotAfter(String certificateId)This method returns the notAfter date for a given certificateDategetCertificateNotBefore(String certificateId)This method returns the notBefore date for a given certificateList<String>getCertificateOcspUrls(String certificateId)This method returns the list of OCSP (Online Certificate Status Protocol) urls for a given certificateStringgetCertificateOrganizationName(String certificateId)This method returns the organizationName attribute for a given certificateStringgetCertificateOrganizationUnit(String certificateId)This method returns the organizationUnit attribute for a given certificateList<String>getCertificatePdsUrls(String certificateId)This method returns the list of PDS (PKI Disclosure Statements) urls for a given certificateStringgetCertificatePseudonym(String certificateId)This method returns the pseudonym attribute for a given certificateDategetCertificateRevocationDate(String certificateId)This method returns the revocation date for a given certificateRevocationReasongetCertificateRevocationReason(String certificateId)This method returns the revocation reason for a given certificateStringgetCertificateState(String certificateId)This method returns the state attribute for a given certificateSubIndicationgetCertificateSubIndication(String certificateId)This method returns theSubIndication(result of validation) for a given certificateStringgetCertificateSurname(String certificateId)This method returns the surname attribute for a given certificateXmlSimpleCertificateReportgetJaxbModel()This methods returns the jaxb model of the simple certificate reportCertificateQualificationgetQualificationAtCertificateIssuance()This method returns the qualification of the first certificate at its issuanceCertificateQualificationgetQualificationAtValidationTime()This method returns the qualification of the first certificate at the validation timeSet<String>getTrustAnchorVATNumbers()This method returns a Set of trust anchor VAT numbersDategetValidationTime()This method returns the used validation time
-
-
-
Constructor Detail
-
SimpleCertificateReport
public SimpleCertificateReport(XmlSimpleCertificateReport simpleReport)
-
-
Method Detail
-
getValidationTime
public Date getValidationTime()
This method returns the used validation time- Returns:
- the validation time
-
getCertificateIds
public List<String> getCertificateIds()
This method returns a list of certificate ids- Returns:
- the list of certificate ids
-
getCertificateNotBefore
public Date getCertificateNotBefore(String certificateId)
This method returns the notBefore date for a given certificate- Parameters:
certificateId- the certificate id- Returns:
- the notBefore date
-
getCertificateNotAfter
public Date getCertificateNotAfter(String certificateId)
This method returns the notAfter date for a given certificate- Parameters:
certificateId- the certificate id- Returns:
- the notAfter date
-
getCertificateAiaUrls
public List<String> getCertificateAiaUrls(String certificateId)
This method returns the list of AIA urls (caIssuers) for a given certificate- Parameters:
certificateId- the certificate id- Returns:
- the list of AIA urls
-
getCertificateCpsUrls
public List<String> getCertificateCpsUrls(String certificateId)
This method returns the list of CPS (Certificate Practice Statements) urls for a given certificate- Parameters:
certificateId- the certificate id- Returns:
- the list of CPS urls
-
getCertificateCrlUrls
public List<String> getCertificateCrlUrls(String certificateId)
This method returns the list of CRL (Certificate Revocation List) urls for a given certificate- Parameters:
certificateId- the certificate id- Returns:
- the list of CRL urls
-
getCertificateOcspUrls
public List<String> getCertificateOcspUrls(String certificateId)
This method returns the list of OCSP (Online Certificate Status Protocol) urls for a given certificate- Parameters:
certificateId- the certificate id- Returns:
- the list of OCSP urls
-
getCertificatePdsUrls
public List<String> getCertificatePdsUrls(String certificateId)
This method returns the list of PDS (PKI Disclosure Statements) urls for a given certificate- Parameters:
certificateId- the certificate id- Returns:
- the list of PDS urls
-
getCertificateCommonName
public String getCertificateCommonName(String certificateId)
This method returns the commonName attribute for a given certificate- Parameters:
certificateId- the certificate id- Returns:
- the commonName if available or null
-
getCertificateEmail
public String getCertificateEmail(String certificateId)
This method returns the email attribute for a given certificate- Parameters:
certificateId- the certificate id- Returns:
- the email if available or null
-
getCertificateGivenName
public String getCertificateGivenName(String certificateId)
This method returns the givenName attribute for a given certificate- Parameters:
certificateId- the certificate id- Returns:
- the givenName if available or null
-
getCertificateLocality
public String getCertificateLocality(String certificateId)
This method returns the locality attribute for a given certificate- Parameters:
certificateId- the certificate id- Returns:
- the locality if available or null
-
getCertificateState
public String getCertificateState(String certificateId)
This method returns the state attribute for a given certificate- Parameters:
certificateId- the certificate id- Returns:
- the state if available or null
-
getCertificateCountry
public String getCertificateCountry(String certificateId)
This method returns the country attribute for a given certificate- Parameters:
certificateId- the certificate id- Returns:
- the country if available or null
-
getCertificateOrganizationName
public String getCertificateOrganizationName(String certificateId)
This method returns the organizationName attribute for a given certificate- Parameters:
certificateId- the certificate id- Returns:
- the organizationName if available or null
-
getCertificateOrganizationUnit
public String getCertificateOrganizationUnit(String certificateId)
This method returns the organizationUnit attribute for a given certificate- Parameters:
certificateId- the certificate id- Returns:
- the organizationUnit if available or null
-
getCertificatePseudonym
public String getCertificatePseudonym(String certificateId)
This method returns the pseudonym attribute for a given certificate- Parameters:
certificateId- the certificate id- Returns:
- the pseudonym if available or null
-
getCertificateSurname
public String getCertificateSurname(String certificateId)
This method returns the surname attribute for a given certificate- Parameters:
certificateId- the certificate id- Returns:
- the surname if available or null
-
getCertificateIndication
public Indication getCertificateIndication(String certificateId)
This method returns theIndication(result of validation) for a given certificate- Parameters:
certificateId- the certificate id- Returns:
- the
Indication
-
getCertificateSubIndication
public SubIndication getCertificateSubIndication(String certificateId)
This method returns theSubIndication(result of validation) for a given certificate- Parameters:
certificateId- the certificate id- Returns:
- the
SubIndication
-
getCertificateRevocationDate
public Date getCertificateRevocationDate(String certificateId)
This method returns the revocation date for a given certificate- Parameters:
certificateId- the certificate id- Returns:
- the revocation date or null
-
getCertificateRevocationReason
public RevocationReason getCertificateRevocationReason(String certificateId)
This method returns the revocation reason for a given certificate- Parameters:
certificateId- the certificate id- Returns:
- the revocation reason or null
-
getQualificationAtCertificateIssuance
public CertificateQualification getQualificationAtCertificateIssuance()
This method returns the qualification of the first certificate at its issuance- Returns:
- the qualification at the certificate creation
-
getTrustAnchorVATNumbers
public Set<String> getTrustAnchorVATNumbers()
This method returns a Set of trust anchor VAT numbers- Returns:
- a Set of VAT numbers
-
getQualificationAtValidationTime
public CertificateQualification getQualificationAtValidationTime()
This method returns the qualification of the first certificate at the validation time- Returns:
- the qualification at the validation time
-
getJaxbModel
public XmlSimpleCertificateReport getJaxbModel()
This methods returns the jaxb model of the simple certificate report- Returns:
- the jaxb model
-
-