public interface KSISignatureComponentFactory
Modifier and Type | Method and Description |
---|---|
AggregationHashChain |
createAggregationHashChain(DataHash inputHash,
Date aggregationTime,
LinkedList<Long> indexes,
LinkedList<AggregationChainLink> links,
HashAlgorithm aggregationAlgorithm)
Creates a new aggregation hash chain
|
AggregationHashChain |
createAggregationHashChain(TLVElement element)
Creates an aggregation hash chain from input TLV element.
|
CalendarAuthenticationRecord |
createCalendarAuthenticationRecord(TLVElement element)
Creates calendar authentication record from input TLV element.
|
CalendarHashChain |
createCalendarHashChain(TLVElement element)
Creates calendar hash chain from input TLV element.
|
AggregationChainLink |
createLeftAggregationChainLink(AggregationChainLink link,
long levelCorrection)
Creates a new left aggregation hash chain link with corresponding data of given link and level.
|
AggregationChainLink |
createLeftAggregationChainLink(byte[] metadata,
long level)
Creates a new left aggregation hash chain link with given metadata bytes and level.
|
AggregationChainLink |
createLeftAggregationChainLink(DataHash siblingHash,
long level)
Creates a new left aggregation hash chain link with given sibling hash and level.
|
AggregationChainLink |
createLeftAggregationChainLink(LinkMetadata identity,
long level)
Creates a new left aggregation hash chain link with given metadata and level.
|
LinkMetadata |
createLinkMetadata(String clientId,
String machineId,
Long sequenceNumber,
Long requestTime)
Creates a link metadata structure.
|
SignaturePublicationRecord |
createPublicationRecord(PublicationData publicationData,
List<String> publicationReferences,
List<String> publicationRepositoryURIs)
Creates a signature publication record element from publication data, publication references and publication repository URI's
|
SignaturePublicationRecord |
createPublicationRecord(TLVElement element)
Creates signature publication record element from input TLV element.
|
RFC3161Record |
createRFC3161Record(TLVElement element)
Creates RFC3161 record element from input TLV element.
|
AggregationChainLink |
createRightAggregationChainLink(AggregationChainLink link,
long levelCorrection)
Creates a new right aggregation hash chain link with corresponding data of given link and level.
|
AggregationChainLink |
createRightAggregationChainLink(DataHash siblingHash,
long level)
Creates a new right aggregation hash chain link with given sibling hash and level.
|
AggregationChainLink |
createRightAggregationChainLink(LinkMetadata identity,
long level)
Creates a new right aggregation hash chain link with given metadata and level.
|
AggregationHashChain createAggregationHashChain(TLVElement element) throws KSIException
element
- instance of TLVElement
. not nullAggregationHashChain
KSIException
AggregationHashChain createAggregationHashChain(DataHash inputHash, Date aggregationTime, LinkedList<Long> indexes, LinkedList<AggregationChainLink> links, HashAlgorithm aggregationAlgorithm) throws KSIException
KSIException
AggregationChainLink createLeftAggregationChainLink(DataHash siblingHash, long level) throws KSIException
KSIException
AggregationChainLink createLeftAggregationChainLink(AggregationChainLink link, long levelCorrection) throws KSIException
KSIException
AggregationChainLink createLeftAggregationChainLink(LinkMetadata identity, long level) throws KSIException
KSIException
AggregationChainLink createLeftAggregationChainLink(byte[] metadata, long level) throws KSIException
KSIException
AggregationChainLink createRightAggregationChainLink(DataHash siblingHash, long level) throws KSIException
KSIException
AggregationChainLink createRightAggregationChainLink(LinkMetadata identity, long level) throws KSIException
KSIException
AggregationChainLink createRightAggregationChainLink(AggregationChainLink link, long levelCorrection) throws KSIException
KSIException
CalendarAuthenticationRecord createCalendarAuthenticationRecord(TLVElement element) throws KSIException
element
- instance of TLVElement
. not nullCalendarAuthenticationRecord
KSIException
- when error occurs (e.g input data is invalid)CalendarHashChain createCalendarHashChain(TLVElement element) throws KSIException
element
- instance of TLVElement
. not nullCalendarHashChain
KSIException
- when error occurs (e.g input data is invalid)RFC3161Record createRFC3161Record(TLVElement element) throws KSIException
element
- instance of TLVElement
. not nullRFC3161Record
KSIException
- when error occurs (e.g input data is invalid)SignaturePublicationRecord createPublicationRecord(TLVElement element) throws KSIException
element
- instance of TLVElement
. not nullSignaturePublicationRecord
KSIException
- when error occurs (e.g input data is invalid)SignaturePublicationRecord createPublicationRecord(PublicationData publicationData, List<String> publicationReferences, List<String> publicationRepositoryURIs) throws KSIException
KSIException
LinkMetadata createLinkMetadata(String clientId, String machineId, Long sequenceNumber, Long requestTime) throws KSIException
KSIException
Copyright © 2024 Guardtime. All rights reserved.