Class CertificateToValidateDTO
java.lang.Object
eu.europa.esig.dss.ws.cert.validation.dto.CertificateToValidateDTO
The DTO representing the certificate validation request
-
Constructor Summary
ConstructorDescriptionThe 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 strategyCertificateToValidateDTO
(RemoteCertificate certificate, List<RemoteCertificate> certificateChain, Date validationTime, RemoteDocument policy, TokenExtractionStrategy tokenExtractionStrategy) The default constructor with a custom validation policy -
Method Summary
Modifier and TypeMethodDescriptionGets the certificate to be validatedGets the certificate chain for the certificate to be validatedGets the validation policyGets the token extraction strategyGets the validation timevoid
setCertificate
(RemoteCertificate certificate) Sets the certificate to be validatedvoid
setCertificateChain
(List<RemoteCertificate> certificateChain) Sets the certificate chain for the certificate to be validatedvoid
setPolicy
(RemoteDocument policy) Sets the validation policyvoid
setTokenExtractionStrategy
(TokenExtractionStrategy tokenExtractionStrategy) Sets the token extraction strategy for DiagnosticDatavoid
setValidationTime
(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
-RemoteCertificate
to be validated
-
CertificateToValidateDTO
public CertificateToValidateDTO(RemoteCertificate certificate, List<RemoteCertificate> certificateChain, Date validationTime) The default constructor- Parameters:
certificate
-RemoteCertificate
to be validatedcertificateChain
- a list ofRemoteCertificate
s representing the certificate chainvalidationTime
-Date
the validation time
-
CertificateToValidateDTO
public CertificateToValidateDTO(RemoteCertificate certificate, List<RemoteCertificate> certificateChain, Date validationTime, TokenExtractionStrategy tokenExtractionStrategy) The default constructor with a token extraction strategy- Parameters:
certificate
-RemoteCertificate
to be validatedcertificateChain
- a list ofRemoteCertificate
s representing the certificate chainvalidationTime
-Date
the validation timetokenExtractionStrategy
-TokenExtractionStrategy
for the DiagnosticData report
-
CertificateToValidateDTO
public CertificateToValidateDTO(RemoteCertificate certificate, List<RemoteCertificate> certificateChain, Date validationTime, RemoteDocument policy, TokenExtractionStrategy tokenExtractionStrategy) The default constructor with a custom validation policy- Parameters:
certificate
-RemoteCertificate
to be validatedcertificateChain
- a list ofRemoteCertificate
s representing the certificate chainvalidationTime
-Date
the validation timepolicy
-RemoteDocument
tokenExtractionStrategy
-TokenExtractionStrategy
for 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
RemoteCertificate
s representing the certificate chain
-
setCertificateChain
Sets the certificate chain for the certificate to be validated- Parameters:
certificateChain
- list ofRemoteCertificate
s representing the certificate chain
-
getValidationTime
-
setValidationTime
-
getPolicy
-
setPolicy
Sets the validation policy- Parameters:
policy
-RemoteDocument
-
getTokenExtractionStrategy
Gets the token extraction strategy- Returns:
TokenExtractionStrategy
-
setTokenExtractionStrategy
Sets the token extraction strategy for DiagnosticData- Parameters:
tokenExtractionStrategy
-TokenExtractionStrategy
-