public interface VerificationContext
Modifier and Type | Method and Description |
---|---|
AggregationHashChain[] |
getAggregationHashChains()
Helper method.
|
CalendarAuthenticationRecord |
getCalendarAuthenticationRecord()
Helper method.
|
CalendarHashChain |
getCalendarHashChain()
Helper method.
|
Certificate |
getCertificate(byte[] certificateId)
This method is used to get certificate from
PublicationsFile . |
DataHash |
getDocumentHash()
Returns the document hash provided by the user or calculated from the input data.
|
CalendarHashChain |
getExtendedCalendarHashChain()
Returns extended calendar hash chain.
|
CalendarHashChain |
getExtendedCalendarHashChain(Date publicationTime)
Returns extended signature calendar hash chain
|
Long |
getInputHashLevel()
Returns the input hash level provided by the user.
|
AggregationHashChain |
getLastAggregationHashChain()
Helper method.
|
PublicationRecord |
getPublicationRecord()
Helper method.
|
PublicationsFile |
getPublicationsFile()
Returns instance of KSI publications file
|
RFC3161Record |
getRfc3161Record()
Helper method.
|
KSISignature |
getSignature()
Returns signature to be verified.
|
PublicationData |
getUserProvidedPublication()
Returns user provided publication.
|
boolean |
isExtendingAllowed()
True when extending is allowed when using
UserProvidedPublicationBasedVerificationPolicy
or PublicationsFileBasedVerificationPolicy |
void |
setKsiSignatureComponentFactory(KSISignatureComponentFactory signatureComponentFactory)
Sets the KSISignatureComponentFactory used in verification process
|
void |
setPduFactory(PduFactory pduFactory)
Deprecated.
Deprecated since 4.10. Has no effect since PduFactory is defined in the KSIExtendingService level.
|
KSISignature getSignature()
CalendarHashChain getExtendedCalendarHashChain(Date publicationTime) throws KSIException
publicationTime
- publication time to extendKSIException
- when extending failsCalendarHashChain getExtendedCalendarHashChain() throws KSIException
KSIException
- when extending fails.PublicationData getUserProvidedPublication()
DataHash getDocumentHash()
Long getInputHashLevel()
boolean isExtendingAllowed()
UserProvidedPublicationBasedVerificationPolicy
or PublicationsFileBasedVerificationPolicy
PublicationsFile getPublicationsFile()
Certificate getCertificate(byte[] certificateId)
PublicationsFile
.certificateId
- certificate idCertificate
or nullAggregationHashChain[] getAggregationHashChains()
KSISignature.getAggregationHashChains()
CalendarHashChain getCalendarHashChain()
KSISignature.getCalendarHashChain()
AggregationHashChain getLastAggregationHashChain()
CalendarAuthenticationRecord getCalendarAuthenticationRecord()
KSISignature.getCalendarAuthenticationRecord()
RFC3161Record getRfc3161Record()
KSISignature.getRfc3161Record()
PublicationRecord getPublicationRecord()
KSISignature.getPublicationRecord()
@Deprecated void setPduFactory(PduFactory pduFactory)
void setKsiSignatureComponentFactory(KSISignatureComponentFactory signatureComponentFactory)
Copyright © 2024 Guardtime. All rights reserved.