Class CertificateToValidateDTO
java.lang.Object
eu.europa.esig.dss.ws.cert.validation.dto.CertificateToValidateDTO
public class CertificateToValidateDTO extends Object
The DTO representing the certificate validation request
-
Constructor Summary
Constructors Constructor Description CertificateToValidateDTO()The empty constructorCertificateToValidateDTO(RemoteCertificate certificate)The constructor with a certificate to be validatedCertificateToValidateDTO(RemoteCertificate certificate, List<RemoteCertificate> certificateChain, Date validationTime)The default constructorCertificateToValidateDTO(RemoteCertificate certificate, List<RemoteCertificate> certificateChain, Date validationTime, TokenExtractionStrategy tokenExtractionStrategy)The default constructor with a token extraction strategy -
Method Summary
Modifier and Type Method Description RemoteCertificategetCertificate()Gets the certificate to be validatedList<RemoteCertificate>getCertificateChain()Gets the certificate chain for the certificate to be validatedTokenExtractionStrategygetTokenExtractionStrategy()Gets the token extraction strategyDategetValidationTime()Gets the validation timevoidsetCertificate(RemoteCertificate certificate)Sets the certificate to be validatedvoidsetCertificateChain(List<RemoteCertificate> certificateChain)Sets the certificate chain for the certificate to be validatedvoidsetTokenExtractionStrategy(TokenExtractionStrategy tokenExtractionStrategy)Sets the token extraction strategy for DiagnosticDatavoidsetValidationTime(Date validationTime)Sets the validation time
-
Constructor Details
-
CertificateToValidateDTO
public CertificateToValidateDTO()The empty constructor -
CertificateToValidateDTO
The constructor with a certificate to be validated- Parameters:
certificate-RemoteCertificateto be validated
-
CertificateToValidateDTO
public CertificateToValidateDTO(RemoteCertificate certificate, List<RemoteCertificate> certificateChain, Date validationTime)The default constructor- Parameters:
certificate-RemoteCertificateto be validatedcertificateChain- a list ofRemoteCertificates representing the certificate chainvalidationTime-Datethe validation time
-
CertificateToValidateDTO
public CertificateToValidateDTO(RemoteCertificate certificate, List<RemoteCertificate> certificateChain, Date validationTime, TokenExtractionStrategy tokenExtractionStrategy)The default constructor with a token extraction strategy- Parameters:
certificate-RemoteCertificateto be validatedcertificateChain- a list ofRemoteCertificates representing the certificate chainvalidationTime-Datethe validation timetokenExtractionStrategy-TokenExtractionStrategyfor the DiagnosticData report
-
-
Method Details
-
getCertificate
Gets the certificate to be validated- Returns:
RemoteCertificate
-
setCertificate
Sets the certificate to be validated- Parameters:
certificate-RemoteCertificate
-
getCertificateChain
Gets the certificate chain for the certificate to be validated- Returns:
- a list of
RemoteCertificates representing the certificate chain
-
setCertificateChain
Sets the certificate chain for the certificate to be validated- Parameters:
certificateChain- list ofRemoteCertificates representing the certificate chain
-
getValidationTime
Gets the validation time- Returns:
Date
-
setValidationTime
Sets the validation time- Parameters:
validationTime-Date
-
getTokenExtractionStrategy
Gets the token extraction strategy- Returns:
TokenExtractionStrategy
-
setTokenExtractionStrategy
Sets the token extraction strategy for DiagnosticData- Parameters:
tokenExtractionStrategy-TokenExtractionStrategy
-