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
KSISignatureComponentFactorycreateAggregationHashChain in interface KSISignatureComponentFactoryelement - instance of TLVElement. not nullAggregationHashChainKSIExceptionpublic AggregationHashChain createAggregationHashChain(DataHash inputHash, Date aggregationTime, LinkedList<Long> indexes, LinkedList<AggregationChainLink> links, HashAlgorithm aggregationAlgorithm) throws KSIException
KSISignatureComponentFactorycreateAggregationHashChain in interface KSISignatureComponentFactoryKSIExceptionpublic CalendarAuthenticationRecord createCalendarAuthenticationRecord(TLVElement element) throws KSIException
KSISignatureComponentFactorycreateCalendarAuthenticationRecord in interface KSISignatureComponentFactoryelement - instance of TLVElement. not nullCalendarAuthenticationRecordKSIException - when error occurs (e.g input data is invalid)public CalendarHashChain createCalendarHashChain(TLVElement element) throws KSIException
KSISignatureComponentFactorycreateCalendarHashChain in interface KSISignatureComponentFactoryelement - instance of TLVElement. not nullCalendarHashChainKSIException - when error occurs (e.g input data is invalid)public RFC3161Record createRFC3161Record(TLVElement element) throws KSIException
KSISignatureComponentFactorycreateRFC3161Record in interface KSISignatureComponentFactoryelement - instance of TLVElement. not nullRFC3161RecordKSIException - when error occurs (e.g input data is invalid)public SignaturePublicationRecord createPublicationRecord(TLVElement element) throws KSIException
KSISignatureComponentFactorycreatePublicationRecord in interface KSISignatureComponentFactoryelement - instance of TLVElement. not nullSignaturePublicationRecordKSIException - when error occurs (e.g input data is invalid)public SignaturePublicationRecord createPublicationRecord(PublicationData publicationData, List<String> publicationReferences, List<String> publicationRepositoryURIs) throws KSIException
KSISignatureComponentFactorycreatePublicationRecord in interface KSISignatureComponentFactoryKSIExceptionpublic AggregationChainLink createLeftAggregationChainLink(DataHash siblingHash, long levelCorrection) throws KSIException
KSISignatureComponentFactorycreateLeftAggregationChainLink in interface KSISignatureComponentFactoryKSIExceptionpublic AggregationChainLink createLeftAggregationChainLink(AggregationChainLink link, long levelCorrection) throws KSIException
KSISignatureComponentFactorycreateLeftAggregationChainLink in interface KSISignatureComponentFactoryKSIExceptionpublic AggregationChainLink createLeftAggregationChainLink(LinkMetadata metadata, long levelCorrection) throws KSIException
KSISignatureComponentFactorycreateLeftAggregationChainLink in interface KSISignatureComponentFactoryKSIExceptionpublic AggregationChainLink createLeftAggregationChainLink(byte[] metadata, long level) throws KSIException
KSISignatureComponentFactorycreateLeftAggregationChainLink in interface KSISignatureComponentFactoryKSIExceptionpublic AggregationChainLink createRightAggregationChainLink(DataHash siblingHash, long levelCorrection) throws KSIException
KSISignatureComponentFactorycreateRightAggregationChainLink in interface KSISignatureComponentFactoryKSIExceptionpublic AggregationChainLink createRightAggregationChainLink(AggregationChainLink link, long levelCorrection) throws KSIException
KSISignatureComponentFactorycreateRightAggregationChainLink in interface KSISignatureComponentFactoryKSIExceptionpublic AggregationChainLink createRightAggregationChainLink(LinkMetadata metadata, long levelCorrection) throws KSIException
KSISignatureComponentFactorycreateRightAggregationChainLink in interface KSISignatureComponentFactoryKSIExceptionpublic LinkMetadata createLinkMetadata(String clientId, String machineId, Long sequenceNumber, Long requestTime) throws KSIException
KSISignatureComponentFactorycreateLinkMetadata in interface KSISignatureComponentFactoryKSIExceptionCopyright © 2024 Guardtime. All rights reserved.