public final class InMemoryKsiSignatureFactory extends Object implements KSISignatureFactory
KSISignatureFactory
interface.KSISignatureFactory
Constructor and Description |
---|
InMemoryKsiSignatureFactory() |
InMemoryKsiSignatureFactory(ContextAwarePolicy policy,
KSISignatureComponentFactory signatureComponentFactory) |
InMemoryKsiSignatureFactory(KSISignatureComponentFactory signatureComponentFactory) |
InMemoryKsiSignatureFactory(Policy policy,
PublicationsFileClientAdapter publicationsFileClientAdapter,
KSIExtenderClient extenderClient,
boolean extendingAllowed,
KSISignatureComponentFactory signatureComponentFactory)
Deprecated.
|
InMemoryKsiSignatureFactory(Policy policy,
PublicationsFileClientAdapter publicationsFileClientAdapter,
KSIExtenderClient extenderClient,
boolean extendingAllowed,
PduFactory pduFactory,
KSISignatureComponentFactory signatureComponentFactory)
Deprecated.
|
InMemoryKsiSignatureFactory(Policy policy,
PublicationsFileClientAdapter publicationsFileClientAdapter,
KSIExtendingService extendingService,
boolean extendingAllowed,
KSISignatureComponentFactory signatureComponentFactory)
Deprecated.
|
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 calendarChain,
CalendarAuthenticationRecord calendarAuthenticationRecord,
PublicationRecord signaturePublicationRecord,
RFC3161Record rfc3161Record)
Creates a signature from given elements.
|
KSISignature |
createSignature(TLVElement element,
DataHash inputHash)
Creates a signature from input TLV element.
|
KSISignature |
createSignature(TLVElement element,
DataHash inputHash,
long level)
Creates a signature from input TLV element.
|
public InMemoryKsiSignatureFactory()
public InMemoryKsiSignatureFactory(KSISignatureComponentFactory signatureComponentFactory)
public InMemoryKsiSignatureFactory(ContextAwarePolicy policy, KSISignatureComponentFactory signatureComponentFactory)
@Deprecated public InMemoryKsiSignatureFactory(Policy policy, PublicationsFileClientAdapter publicationsFileClientAdapter, KSIExtendingService extendingService, boolean extendingAllowed, KSISignatureComponentFactory signatureComponentFactory)
@Deprecated public InMemoryKsiSignatureFactory(Policy policy, PublicationsFileClientAdapter publicationsFileClientAdapter, KSIExtenderClient extenderClient, boolean extendingAllowed, KSISignatureComponentFactory signatureComponentFactory)
@Deprecated public InMemoryKsiSignatureFactory(Policy policy, PublicationsFileClientAdapter publicationsFileClientAdapter, KSIExtenderClient extenderClient, boolean extendingAllowed, PduFactory pduFactory, KSISignatureComponentFactory signatureComponentFactory)
public KSISignature createSignature(InputStream input) throws KSIException
KSISignatureFactory
createSignature
in interface KSISignatureFactory
input
- input stream to be used to createSignature dataKSISignature
KSIException
- when error occurs (e.g input data is invalid)public KSISignature createSignature(TLVElement element, DataHash inputHash) throws KSIException
KSISignatureFactory
createSignature
in interface KSISignatureFactory
element
- instance of TLVElement
. not nullinputHash
- - original input hash. It is used to verify signature if it is present.KSISignature
KSIException
- when error occurs (e.g input data is invalid)public KSISignature createSignature(TLVElement element, DataHash inputHash, long level) throws KSIException
KSISignatureFactory
createSignature
in interface KSISignatureFactory
element
- instance of TLVElement
. not nullinputHash
- - 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)public KSISignature createSignature(List<AggregationHashChain> aggregationHashChains, CalendarHashChain calendarChain, CalendarAuthenticationRecord calendarAuthenticationRecord, PublicationRecord signaturePublicationRecord, RFC3161Record rfc3161Record) throws KSIException
KSISignatureFactory
createSignature
in interface KSISignatureFactory
aggregationHashChains
- list of aggregation hash chain element. not nullcalendarChain
- calendar hash chain element. not null.calendarAuthenticationRecord
- calendar hash chain authentication element.signaturePublicationRecord
- signature publication record.rfc3161Record
- signature RFC3161 recordKSISignature
KSIException
- when error occurs (e.g input data is invalid)public KSISignature createSignature(KSISignature signature, AggregationHashChain aggregationHashChain, DataHash originalInputHash) throws KSIException
KSISignatureFactory
createSignature
in interface KSISignatureFactory
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.