xades4j.providers
Interface AlgorithmsProvider

All Known Implementing Classes:
DefaultAlgorithmsProvider

public interface AlgorithmsProvider

Interface for providers of the algorithms used in the signature generation. An instance of a class implementing this interface is supplied to the signer which will query the instance whenever he needs an algorithm information (when generating ds:Reference elements, for instance).

The methods on this classes must not return null.

This allows the customization of the different algotihms used in the signature. A default implementation is provided.

Author:
Luís
See Also:
DefaultAlgorithmsProvider

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

Method Detail

getSignatureAlgorithm

String getSignatureAlgorithm(String keyAlgorithmName)
                             throws UnsupportedAlgorithmException
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 URI
Throws:
UnsupportedAlgorithmException

getCanonicalizationAlgorithmForSignature

String getCanonicalizationAlgorithmForSignature()
Gets the canonicalization algorithm to be used in the Signature.

Returns:
the algorithm URI

getCanonicalizationAlgorithmForTimeStampProperties

String getCanonicalizationAlgorithmForTimeStampProperties()
Gets the canonicalization algorithm to be used in the qualifying properties, when needed.

Returns:
the algorithm URI

getDigestAlgorithmForDataObjsReferences

String getDigestAlgorithmForDataObjsReferences()
Gets the digest algorithm to be used in the data object References.

Returns:
the algorithm URI

getDigestAlgorithmForReferenceProperties

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 URI

getDigestAlgorithmForTimeStampProperties

String getDigestAlgorithmForTimeStampProperties()
Gets the digest algorithm to be used in the qualifying properties that contain time-stamps

Returns:
the algorithm URI


Copyright © 2012. All Rights Reserved.