public interface

AlgorithmsProviderEx

xades4j.providers.AlgorithmsProviderEx
Known Indirect Subclasses

Class Overview

Interface for providers of algorithms information for signature production. An instance of a class implementing this interface is supplied to inner components which will query the instance whenever they need information on the algorithms to use (when generating ds:Reference elements, for example).

This allows the customization of the different algorithms used in the signature.

The methods on this classes must not return null.

A default implementation is provided.

Summary

Public Methods
abstract Algorithm getCanonicalizationAlgorithmForSignature()
Gets the canonicalization algorithm to be used in the Signature.
abstract Algorithm getCanonicalizationAlgorithmForTimeStampProperties()
Gets the canonicalization algorithm to be used in the qualifying properties, when needed.
abstract String getDigestAlgorithmForDataObjsReferences()
Gets the digest algorithm to be used in the data object References.
abstract String getDigestAlgorithmForReferenceProperties()
Gets the digest algorithm to be used in the qualifying properties that contain references to certificates, CRLs and so on.
abstract String getDigestAlgorithmForTimeStampProperties()
Gets the digest algorithm to be used in the qualifying properties that contain time-stamps
abstract Algorithm getSignatureAlgorithm(String keyAlgorithmName)
Gets the signature's algorithm for the given algorithm name.

Public Methods

public abstract Algorithm getCanonicalizationAlgorithmForSignature ()

Gets the canonicalization algorithm to be used in the Signature.

Returns
  • the algorithm

public abstract Algorithm getCanonicalizationAlgorithmForTimeStampProperties ()

Gets the canonicalization algorithm to be used in the qualifying properties, when needed.

Returns
  • the algorithm

public abstract String getDigestAlgorithmForDataObjsReferences ()

Gets the digest algorithm to be used in the data object References.

Returns
  • the algorithm

public abstract String getDigestAlgorithmForReferenceProperties ()

Gets the digest algorithm to be used in the qualifying properties that contain references to certificates, CRLs and so on.

Returns
  • the algorithm

public abstract String getDigestAlgorithmForTimeStampProperties ()

Gets the digest algorithm to be used in the qualifying properties that contain time-stamps

Returns
  • the algorithm

public abstract Algorithm getSignatureAlgorithm (String keyAlgorithmName)

Gets the signature's algorithm for the given algorithm name.

Parameters
keyAlgorithmName the signing key's algorithm name as defined in JCA standard algorithm names
Returns
  • the algorithm