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 RemoteCertificate
getCertificate()
Gets the certificate to be validatedList<RemoteCertificate>
getCertificateChain()
Gets the certificate chain for the certificate to be validatedTokenExtractionStrategy
getTokenExtractionStrategy()
Gets the token extraction strategyDate
getValidationTime()
Gets 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
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
-
-
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
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
-