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
ConstructorsConstructorDescriptionDefault 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 SubIndicationbooleanGets if the validation result is indeterminatebooleanGets if the signature is invalidbooleanisValid()Gets if the signature is validvoidsetIndication(Indication indication) Sets the validation IndicationvoidsetPotentialSigners(List<CertificateToken> potentialSigners) Sets a list of signing candidatesvoidsetSigningCertificate(CertificateToken signingCertificate) Sets the signing certificate tokenvoidsetSigningTime(Date signingTime) Sets the claimed signing timevoidsetSubIndication(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, setResultExistMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface eu.europa.esig.dss.spi.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:ValidationInfoRecordGets validation Indication- Specified by:
getIndicationin interfaceValidationInfoRecord- Returns:
Indication
-
setIndication
Sets the validation Indication- Parameters:
indication-Indication
-
getSubIndication
Description copied from interface:ValidationInfoRecordGets validation SubIndication- Specified by:
getSubIndicationin interfaceValidationInfoRecord- Returns:
SubIndication
-
setSubIndication
Sets the validation SubIndication- Parameters:
subIndication-SubIndication
-
getSigningTime
Description copied from interface:ValidationInfoRecordGets the (claimed) signing time- Specified by:
getSigningTimein interfaceValidationInfoRecord- Returns:
Date
-
setSigningTime
Sets the claimed signing time- Parameters:
signingTime-Date
-
getSigningCertificate
Description copied from interface:ValidationInfoRecordGets the signing certificate- Specified by:
getSigningCertificatein interfaceValidationInfoRecord- Returns:
CertificateToken
-
setSigningCertificate
Sets the signing certificate token- Parameters:
signingCertificate-CertificateToken
-
getPotentialSigners
Description copied from interface:ValidationInfoRecordGets a list of signing candidates- Specified by:
getPotentialSignersin interfaceValidationInfoRecord- Returns:
- a list of
CertificateTokens
-
setPotentialSigners
Sets a list of signing candidates- Parameters:
potentialSigners- a list ofCertificateTokens
-
isValid
public boolean isValid()Description copied from interface:ValidationInfoRecordGets if the signature is valid- Specified by:
isValidin interfaceValidationInfoRecord- Returns:
- TRUE if the validation succeeded, FALSE otherwise
-
isIndeterminate
public boolean isIndeterminate()Description copied from interface:ValidationInfoRecordGets if the validation result is indeterminate- Specified by:
isIndeterminatein interfaceValidationInfoRecord- Returns:
- TRUE if the validation result is indeterminate, FALSE otherwise
-
isInvalid
public boolean isInvalid()Description copied from interface:ValidationInfoRecordGets if the signature is invalid- Specified by:
isInvalidin interfaceValidationInfoRecord- Returns:
- TRUE if the validation failed, FALSE otherwise
-