public interface PublicationsFile
KSI trust store provides trusted certificates and publications for verifying KSI signatures. It provides methods for getting trusted certificates for verifying authentication records and a list of publications for verifying calendar hash chains.
PublicationsFile
Modifier and Type | Method and Description |
---|---|
Certificate |
findCertificateById(byte[] certificateId)
Finds and returns certificate form trust store by certificate ID.
|
PublicationRecord |
getLatestPublication()
This method is used to get the newest publication from publications file.
|
String |
getName() |
PublicationRecord |
getPublicationRecord(Date publicationTime)
This method is used to get the "closest" publication after the input time.
|
List<PublicationRecord> |
getPublicationRecords()
Returns the list of the publications records in publications file.
|
Certificate findCertificateById(byte[] certificateId) throws CertificateNotFoundException
certificateId
- certificate id to search forCertificate
CertificateNotFoundException
- if certificate with given id wasn't foundPublicationRecord getPublicationRecord(Date publicationTime)
publicationTime
- time to be used to find the closest publicationPublicationRecord
if the closest publication exists. null otherwise.List<PublicationRecord> getPublicationRecords()
PublicationRecord getLatestPublication() throws KSIException
KSIException
- when error occursString getName()
Copyright © 2024 Guardtime. All rights reserved.