public interface ValidationContext
| Modifier and Type | Method and Description |
|---|---|
void |
addCertificateTokenForVerification(CertificateToken certificateToken)
Adds a new certificate token to the list of tokens to verify.
|
void |
addRevocationTokensForVerification(List<RevocationToken> revocationTokens)
Adds a list of new revocation tokens to the list of tokens to verify.
|
void |
addTimestampTokenForVerification(TimestampToken timestampToken)
Adds a new timestamp token to the list of tokens to verify.
|
Date |
getCurrentTime() |
Set<CertificateToken> |
getProcessedCertificates()
Returns a read only list of all certificates used in the process of the validation of all signatures from the
given document.
|
Set<RevocationToken> |
getProcessedRevocations()
Returns a read only list of all revocations used in the process of the validation of all signatures from the
given document.
|
Set<TimestampToken> |
getProcessedTimestamps()
Returns a read only list of all timestamps processed during the validation of all signatures from the given
document.
|
void |
initialize(CertificateVerifier certificateVerifier) |
void |
setCurrentTime(Date currentTime)
This function sets the validation time.
|
void |
validate()
Carries out the validation process in recursive manner for not yet checked tokens.
|
void setCurrentTime(Date currentTime)
currentTime - Datevoid initialize(CertificateVerifier certificateVerifier)
Date getCurrentTime()
void addRevocationTokensForVerification(List<RevocationToken> revocationTokens)
revocationToken - RevocationToken revocation token to verifyvoid addCertificateTokenForVerification(CertificateToken certificateToken)
certificateToken - CertificateToken certificate token to verifyvoid addTimestampTokenForVerification(TimestampToken timestampToken)
timestampToken - TimestampToken timestamp token to verifyvoid validate()
throws DSSException
DSSExceptionSet<CertificateToken> getProcessedCertificates()
Set<RevocationToken> getProcessedRevocations()
Set<TimestampToken> getProcessedTimestamps()
Copyright © 2018. All rights reserved.