Package eu.europa.esig.dss.tsl.dto
Class ValidationCacheDTO
java.lang.Object
eu.europa.esig.dss.tsl.dto.AbstractCacheDTO
eu.europa.esig.dss.tsl.dto.ValidationCacheDTO
- All Implemented Interfaces:
InfoRecord
,ValidationInfoRecord
,Serializable
The validation record DTO
- See Also:
-
Constructor Summary
ConstructorDescriptionDefault constructorValidationCacheDTO
(AbstractCacheDTO cacheDTO) Copies the cache DTO -
Method Summary
Modifier and TypeMethodDescriptionGets validation IndicationGets a list of signing candidatesGets the signing certificateGets the (claimed) signing timeGets validation SubIndicationboolean
Gets if the validation result is indeterminateboolean
Gets if the signature is invalidboolean
isValid()
Gets if the signature is validvoid
setIndication
(Indication indication) Sets the validation Indicationvoid
setPotentialSigners
(List<CertificateToken> potentialSigners) Sets a list of signing candidatesvoid
setSigningCertificate
(CertificateToken signingCertificate) Sets the signing certificate tokenvoid
setSigningTime
(Date signingTime) Sets the claimed signing timevoid
setSubIndication
(SubIndication subIndication) Sets the validation SubIndicationMethods inherited from class eu.europa.esig.dss.tsl.dto.AbstractCacheDTO
getCacheState, getExceptionFirstOccurrenceTime, getExceptionLastOccurrenceTime, getExceptionMessage, getExceptionStackTrace, getLastStateTransitionTime, getLastSuccessSynchronizationTime, getStatusName, isDesynchronized, isError, isRefreshNeeded, isResultExist, isSynchronized, isToBeDeleted, setCacheState, setExceptionFirstOccurrenceTime, setExceptionLastOccurrenceTime, setExceptionMessage, setExceptionStackTrace, setLastStateTransitionTime, setLastSuccessSynchronizationTime, setResultExist
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface eu.europa.esig.dss.model.tsl.InfoRecord
getExceptionFirstOccurrenceTime, getExceptionLastOccurrenceTime, getExceptionMessage, getExceptionStackTrace, getLastStateTransitionTime, getLastSuccessSynchronizationTime, getStatusName, isDesynchronized, isError, isRefreshNeeded, isResultExist, isSynchronized, isToBeDeleted
-
Constructor Details
-
ValidationCacheDTO
public ValidationCacheDTO()Default constructor -
ValidationCacheDTO
Copies the cache DTO- Parameters:
cacheDTO
-AbstractCacheDTO
-
-
Method Details
-
getIndication
Description copied from interface:ValidationInfoRecord
Gets validation Indication- Specified by:
getIndication
in interfaceValidationInfoRecord
- Returns:
Indication
-
setIndication
Sets the validation Indication- Parameters:
indication
-Indication
-
getSubIndication
Description copied from interface:ValidationInfoRecord
Gets validation SubIndication- Specified by:
getSubIndication
in interfaceValidationInfoRecord
- Returns:
SubIndication
-
setSubIndication
Sets the validation SubIndication- Parameters:
subIndication
-SubIndication
-
getSigningTime
Description copied from interface:ValidationInfoRecord
Gets the (claimed) signing time- Specified by:
getSigningTime
in interfaceValidationInfoRecord
- Returns:
Date
-
setSigningTime
-
getSigningCertificate
Description copied from interface:ValidationInfoRecord
Gets the signing certificate- Specified by:
getSigningCertificate
in interfaceValidationInfoRecord
- Returns:
CertificateToken
-
setSigningCertificate
Sets the signing certificate token- Parameters:
signingCertificate
-CertificateToken
-
getPotentialSigners
Description copied from interface:ValidationInfoRecord
Gets a list of signing candidates- Specified by:
getPotentialSigners
in interfaceValidationInfoRecord
- Returns:
- a list of
CertificateToken
s
-
setPotentialSigners
Sets a list of signing candidates- Parameters:
potentialSigners
- a list ofCertificateToken
s
-
isValid
public boolean isValid()Description copied from interface:ValidationInfoRecord
Gets if the signature is valid- Specified by:
isValid
in interfaceValidationInfoRecord
- Returns:
- TRUE if the validation succeeded, FALSE otherwise
-
isIndeterminate
public boolean isIndeterminate()Description copied from interface:ValidationInfoRecord
Gets if the validation result is indeterminate- Specified by:
isIndeterminate
in interfaceValidationInfoRecord
- Returns:
- TRUE if the validation result is indeterminate, FALSE otherwise
-
isInvalid
public boolean isInvalid()Description copied from interface:ValidationInfoRecord
Gets if the signature is invalid- Specified by:
isInvalid
in interfaceValidationInfoRecord
- Returns:
- TRUE if the validation failed, FALSE otherwise
-