public interface KSISignatureFactory
KSISignature
.Modifier and Type | Method and Description |
---|---|
KSISignature |
createSignature(InputStream input)
Creates a signature from input stream.
|
KSISignature |
createSignature(KSISignature signature,
AggregationHashChain aggregationHashChain,
DataHash originalInputHash)
Creates a signature by prepending lower aggregation hash chain to a signature.
|
KSISignature |
createSignature(List<AggregationHashChain> aggregationHashChains,
CalendarHashChain calendarHashChain,
CalendarAuthenticationRecord authenticationRecord,
PublicationRecord publicationRecord,
RFC3161Record rfc3161Record)
Creates a signature from given elements.
|
KSISignature |
createSignature(TLVElement element,
DataHash originalInputHash)
Creates a signature from input TLV element.
|
KSISignature |
createSignature(TLVElement element,
DataHash originalInputHash,
long level)
Creates a signature from input TLV element.
|
KSISignature createSignature(InputStream input) throws KSIException
input
- input stream to be used to createSignature dataKSISignature
KSIException
- when error occurs (e.g input data is invalid)KSISignature createSignature(TLVElement element, DataHash originalInputHash) throws KSIException
element
- instance of TLVElement
. not nulloriginalInputHash
- - original input hash. It is used to verify signature if it is present.KSISignature
KSIException
- when error occurs (e.g input data is invalid)KSISignature createSignature(TLVElement element, DataHash originalInputHash, long level) throws KSIException
element
- instance of TLVElement
. not nulloriginalInputHash
- - original input hash. It is used to verify signature if it is present.level
- - local aggregation tree heightKSISignature
KSIException
- when error occurs (e.g input data is invalid)KSISignature createSignature(List<AggregationHashChain> aggregationHashChains, CalendarHashChain calendarHashChain, CalendarAuthenticationRecord authenticationRecord, PublicationRecord publicationRecord, RFC3161Record rfc3161Record) throws KSIException
aggregationHashChains
- list of aggregation hash chain element. not nullcalendarHashChain
- calendar hash chain element. not null.authenticationRecord
- calendar hash chain authentication element.publicationRecord
- signature publication record.rfc3161Record
- signature RFC3161 recordKSISignature
KSIException
- when error occurs (e.g input data is invalid)KSISignature createSignature(KSISignature signature, AggregationHashChain aggregationHashChain, DataHash originalInputHash) throws KSIException
signature
- instance of KSISignature
to be prepended, not nullaggregationHashChain
- instance of lower AggregationHashChain
to prepend, not nulloriginalInputHash
- original input hash. It is used to verify signature if it is present.KSISignature
KSIException
- when error occurs (e.g input data is invalid)Copyright © 2024 Guardtime. All rights reserved.