Package | Description |
---|---|
com.guardtime.ksi |
KSI API interface
|
com.guardtime.ksi.blocksigner |
Classes and interfaces to create multiple signatures with one signing request
|
com.guardtime.ksi.hashing |
Classes to create and represent data hashes
|
com.guardtime.ksi.pdu |
PDU (Protocol Data Unit) interfaces
|
com.guardtime.ksi.pdu.v2 |
PDU v2 implementation
|
com.guardtime.ksi.service.client |
Classes and interfaces to sign and extend, basic version
|
com.guardtime.ksi.tlv |
Classes and interfaces to decode and encode TLV elements
|
com.guardtime.ksi.tree |
Classes and interfaces to build a hash tree
|
com.guardtime.ksi.unisignature |
Interfaces to decode and encode KSI signatures
|
com.guardtime.ksi.unisignature.inmemory |
Classes to decode and encode in-memory KSI signatures
|
Modifier and Type | Method and Description |
---|---|
KSIBuilder |
KSIBuilder.setDefaultSigningHashAlgorithm(HashAlgorithm defaultHashAlgorithm)
Sets the default signing algorithm to be used to create new KSI signatures.
|
SignerBuilder |
SignerBuilder.setDefaultSigningHashAlgorithm(HashAlgorithm defaultHashAlgorithm)
Sets the default signing hash algorithm to be used to create new KSI signatures.
|
Modifier and Type | Method and Description |
---|---|
KsiBlockSignerBuilder |
KsiBlockSignerBuilder.setDefaultHashAlgorithm(HashAlgorithm algorithm)
Deprecated.
Use
KsiBlockSignerBuilder.setTreeBuilder(TreeBuilder) instead. |
Constructor and Description |
---|
KsiBlockSigner(KSISigningClient signingClient,
HashAlgorithm algorithm)
Deprecated.
Use
KsiBlockSignerBuilder instead. |
KsiBlockSigner(KSISigningClient signingClient,
KSISignatureFactory signatureFactory,
HashAlgorithm algorithm)
Deprecated.
Use
KsiBlockSignerBuilder instead. |
KsiBlockSigner(KSISigningService signingService,
HashAlgorithm algorithm)
Deprecated.
Use
KsiBlockSignerBuilder instead. |
KsiBlockSigner(KSISigningService signingService,
KSISignatureFactory signatureFactory,
HashAlgorithm algorithm)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
HashAlgorithm |
DataHash.getAlgorithm()
Gets the HashAlgorithm used to compute this DataHash.
|
static HashAlgorithm |
HashAlgorithm.getById(int id)
Gets the hash algorithm by ID.
|
static HashAlgorithm |
HashAlgorithm.getByName(String name)
Gets the hash algorithm by name.
|
static HashAlgorithm |
HashAlgorithm.valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static HashAlgorithm[] |
HashAlgorithm.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
Modifier and Type | Method and Description |
---|---|
static List<HashAlgorithm> |
HashAlgorithm.getImplementedHashAlgorithms()
Returns the list of implemented algorithms.
|
Constructor and Description |
---|
DataHash(HashAlgorithm algorithm,
byte[] value)
Constructor which initializes the DataHash.
|
DataHasher(HashAlgorithm algorithm)
Creates new data hasher for specified algorithm.
|
DataHasher(HashAlgorithm algorithm,
boolean checkExpiration)
Creates new data hasher for specified algorithm.
|
Modifier and Type | Method and Description |
---|---|
HashAlgorithm |
AggregatorConfiguration.getAggregationAlgorithm() |
Modifier and Type | Method and Description |
---|---|
HashAlgorithm |
AggregatorConfigurationPayload.getAggregationAlgorithm() |
Modifier and Type | Method and Description |
---|---|
HashAlgorithm |
ServiceCredentials.getHmacAlgorithm()
Gets the algorithm for verifying the HMAC of incoming messages.
|
HashAlgorithm |
KSIServiceCredentials.getHmacAlgorithm() |
Constructor and Description |
---|
KSIServiceCredentials(String loginId,
byte[] loginKey,
HashAlgorithm hmacAlgorithm)
Creates service credentials.
|
KSIServiceCredentials(String loginId,
String loginKey,
HashAlgorithm hmacAlgorithm)
Creates service credentials.
|
Modifier and Type | Method and Description |
---|---|
HashAlgorithm |
TLVElement.getDecodedHashAlgorithm()
Gets HashAlgorithm form TLV element.
|
Modifier and Type | Method and Description |
---|---|
static TLVElement |
TLVElement.create(int type,
HashAlgorithm value)
Creates TLV element with
HashAlgorithm content. |
void |
TLVElement.setHashAlgorithmContent(HashAlgorithm hashAlgorithm) |
Modifier and Type | Field and Description |
---|---|
static HashAlgorithm |
Util.DEFAULT_AGGREGATION_ALGORITHM |
Modifier and Type | Method and Description |
---|---|
static DataHash |
Util.hash(HashAlgorithm hashAlgorithm,
byte[] left,
byte[] right,
long level)
Calculates a data hash using the following formula: H(left||right||Util.encodeUnsignedLong(level)) where
H is a cryptographic hash function defined by
hashAlgorithm . |
Constructor and Description |
---|
BlindingMaskLinkingHashTreeBuilder(HashAlgorithm algorithm,
byte[] initializationVector,
DataHash previousBlockHash)
Creates an instance of
BlindingMaskLinkingHashTreeBuilder . |
BlindingMaskLinkingHashTreeBuilder(HashAlgorithm algorithm,
byte[] initializationVector,
DataHash previousBlockHash,
TreeBuilder<ImprintNode> treeBuilder)
Creates an instance of
BlindingMaskLinkingHashTreeBuilder . |
CanonicalHashTreeBuilder(HashAlgorithm algorithm) |
HashTreeBuilder(HashAlgorithm algorithm)
Creates a new hash tree builder with given hash algorithm.
|
Modifier and Type | Method and Description |
---|---|
HashAlgorithm |
AggregationHashChain.getAggregationAlgorithm()
Returns hash function algorithm used to compute the output hash values of the link structures
|
HashAlgorithm |
RFC3161Record.getSignedAttributesAlgorithm()
Returns the hash algorithm of the RFC3161 record signed attributes
|
HashAlgorithm |
RFC3161Record.getTstInfoAlgorithm()
Returns the TSTInfo structure hash algorithm of the RFC3161 record
|
Modifier and Type | Method and Description |
---|---|
ChainResult |
AggregationChainLink.calculateChainStep(byte[] lastStepImprint,
long length,
HashAlgorithm algorithm) |
AggregationHashChain |
KSISignatureComponentFactory.createAggregationHashChain(DataHash inputHash,
Date aggregationTime,
LinkedList<Long> indexes,
LinkedList<AggregationChainLink> links,
HashAlgorithm aggregationAlgorithm)
Creates a new aggregation hash chain
|
DataHash |
RFC3161Record.getOutputHash(HashAlgorithm hashAlgorithm)
Returns the RFC3161 record output data hash
|
Modifier and Type | Method and Description |
---|---|
AggregationHashChain |
InMemoryKsiSignatureComponentFactory.createAggregationHashChain(DataHash inputHash,
Date aggregationTime,
LinkedList<Long> indexes,
LinkedList<AggregationChainLink> links,
HashAlgorithm aggregationAlgorithm) |
Copyright © 2024 Guardtime. All rights reserved.