xades4j.providers.impl
Class DefaultAlgorithmsProvider

java.lang.Object
  extended by xades4j.providers.impl.DefaultAlgorithmsProvider
All Implemented Interfaces:
AlgorithmsProvider

public class DefaultAlgorithmsProvider
extends Object
implements AlgorithmsProvider

The default implementation of AlgorithmsProvider. The defaults are:

Author:
Luís

Constructor Summary
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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultAlgorithmsProvider

public DefaultAlgorithmsProvider()
Method Detail

getSignatureAlgorithm

public String getSignatureAlgorithm(String keyAlgorithmName)
                             throws UnsupportedAlgorithmException
Description copied from interface: AlgorithmsProvider
Gets the signature's algorithm for the given algorithm name.

Specified by:
getSignatureAlgorithm in interface AlgorithmsProvider
Parameters:
keyAlgorithmName - the signing key's algorithm name as defined in JCA standard algorithm names
Returns:
the algorithm URI
Throws:
UnsupportedAlgorithmException

getCanonicalizationAlgorithmForSignature

public String getCanonicalizationAlgorithmForSignature()
Description copied from interface: AlgorithmsProvider
Gets the canonicalization algorithm to be used in the Signature.

Specified by:
getCanonicalizationAlgorithmForSignature in interface AlgorithmsProvider
Returns:
the algorithm URI

getCanonicalizationAlgorithmForTimeStampProperties

public String getCanonicalizationAlgorithmForTimeStampProperties()
Description copied from interface: AlgorithmsProvider
Gets the canonicalization algorithm to be used in the qualifying properties, when needed.

Specified by:
getCanonicalizationAlgorithmForTimeStampProperties in interface AlgorithmsProvider
Returns:
the algorithm URI

getDigestAlgorithmForDataObjsReferences

public String getDigestAlgorithmForDataObjsReferences()
Description copied from interface: AlgorithmsProvider
Gets the digest algorithm to be used in the data object References.

Specified by:
getDigestAlgorithmForDataObjsReferences in interface AlgorithmsProvider
Returns:
the algorithm URI

getDigestAlgorithmForReferenceProperties

public String getDigestAlgorithmForReferenceProperties()
Description copied from interface: AlgorithmsProvider
Gets the digest algorithm to be used in the qualifying properties that contain references to certificates, CRLs and so on.

Specified by:
getDigestAlgorithmForReferenceProperties in interface AlgorithmsProvider
Returns:
the algorithm URI

getDigestAlgorithmForTimeStampProperties

public String getDigestAlgorithmForTimeStampProperties()
Description copied from interface: AlgorithmsProvider
Gets the digest algorithm to be used in the qualifying properties that contain time-stamps

Specified by:
getDigestAlgorithmForTimeStampProperties in interface AlgorithmsProvider
Returns:
the algorithm URI


Copyright © 2012. All Rights Reserved.