public class InMemoryKsiSignatureComponentFactory extends Object implements KSISignatureComponentFactory
Constructor and Description |
---|
InMemoryKsiSignatureComponentFactory() |
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 levelCorrection)
Creates a new left aggregation hash chain link with given sibling hash and level.
|
AggregationChainLink |
createLeftAggregationChainLink(LinkMetadata metadata,
long levelCorrection)
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 levelCorrection)
Creates a new right aggregation hash chain link with given sibling hash and level.
|
AggregationChainLink |
createRightAggregationChainLink(LinkMetadata metadata,
long levelCorrection)
Creates a new right aggregation hash chain link with given metadata and level.
|
public InMemoryKsiSignatureComponentFactory()
public AggregationHashChain createAggregationHashChain(TLVElement element) throws KSIException
KSISignatureComponentFactory
createAggregationHashChain
in interface KSISignatureComponentFactory
element
- instance of TLVElement
. not nullAggregationHashChain
KSIException
public AggregationHashChain createAggregationHashChain(DataHash inputHash, Date aggregationTime, LinkedList<Long> indexes, LinkedList<AggregationChainLink> links, HashAlgorithm aggregationAlgorithm) throws KSIException
KSISignatureComponentFactory
createAggregationHashChain
in interface KSISignatureComponentFactory
KSIException
public CalendarAuthenticationRecord createCalendarAuthenticationRecord(TLVElement element) throws KSIException
KSISignatureComponentFactory
createCalendarAuthenticationRecord
in interface KSISignatureComponentFactory
element
- instance of TLVElement
. not nullCalendarAuthenticationRecord
KSIException
- when error occurs (e.g input data is invalid)public CalendarHashChain createCalendarHashChain(TLVElement element) throws KSIException
KSISignatureComponentFactory
createCalendarHashChain
in interface KSISignatureComponentFactory
element
- instance of TLVElement
. not nullCalendarHashChain
KSIException
- when error occurs (e.g input data is invalid)public RFC3161Record createRFC3161Record(TLVElement element) throws KSIException
KSISignatureComponentFactory
createRFC3161Record
in interface KSISignatureComponentFactory
element
- instance of TLVElement
. not nullRFC3161Record
KSIException
- when error occurs (e.g input data is invalid)public SignaturePublicationRecord createPublicationRecord(TLVElement element) throws KSIException
KSISignatureComponentFactory
createPublicationRecord
in interface KSISignatureComponentFactory
element
- instance of TLVElement
. not nullSignaturePublicationRecord
KSIException
- when error occurs (e.g input data is invalid)public SignaturePublicationRecord createPublicationRecord(PublicationData publicationData, List<String> publicationReferences, List<String> publicationRepositoryURIs) throws KSIException
KSISignatureComponentFactory
createPublicationRecord
in interface KSISignatureComponentFactory
KSIException
public AggregationChainLink createLeftAggregationChainLink(DataHash siblingHash, long levelCorrection) throws KSIException
KSISignatureComponentFactory
createLeftAggregationChainLink
in interface KSISignatureComponentFactory
KSIException
public AggregationChainLink createLeftAggregationChainLink(AggregationChainLink link, long levelCorrection) throws KSIException
KSISignatureComponentFactory
createLeftAggregationChainLink
in interface KSISignatureComponentFactory
KSIException
public AggregationChainLink createLeftAggregationChainLink(LinkMetadata metadata, long levelCorrection) throws KSIException
KSISignatureComponentFactory
createLeftAggregationChainLink
in interface KSISignatureComponentFactory
KSIException
public AggregationChainLink createLeftAggregationChainLink(byte[] metadata, long level) throws KSIException
KSISignatureComponentFactory
createLeftAggregationChainLink
in interface KSISignatureComponentFactory
KSIException
public AggregationChainLink createRightAggregationChainLink(DataHash siblingHash, long levelCorrection) throws KSIException
KSISignatureComponentFactory
createRightAggregationChainLink
in interface KSISignatureComponentFactory
KSIException
public AggregationChainLink createRightAggregationChainLink(AggregationChainLink link, long levelCorrection) throws KSIException
KSISignatureComponentFactory
createRightAggregationChainLink
in interface KSISignatureComponentFactory
KSIException
public AggregationChainLink createRightAggregationChainLink(LinkMetadata metadata, long levelCorrection) throws KSIException
KSISignatureComponentFactory
createRightAggregationChainLink
in interface KSISignatureComponentFactory
KSIException
public LinkMetadata createLinkMetadata(String clientId, String machineId, Long sequenceNumber, Long requestTime) throws KSIException
KSISignatureComponentFactory
createLinkMetadata
in interface KSISignatureComponentFactory
KSIException
Copyright © 2024 Guardtime. All rights reserved.