xades4j.providers.impl
Class DefaultMessageDigestProvider

java.lang.Object
  extended by xades4j.providers.impl.DefaultMessageDigestProvider
All Implemented Interfaces:
MessageDigestEngineProvider

public class DefaultMessageDigestProvider
extends Object
implements MessageDigestEngineProvider

The default implementation of MessageDigestEngineProvider. It supports the default digest algorithms in the Java platform, namely:

Author:
Luís

Constructor Summary
DefaultMessageDigestProvider()
           
 
Method Summary
 MessageDigest getEngine(String digestAlgorithmURI)
          Gets a MessageDigest engine for the algorithm identified by the given URI.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultMessageDigestProvider

public DefaultMessageDigestProvider()
Method Detail

getEngine

public MessageDigest getEngine(String digestAlgorithmURI)
                        throws UnsupportedAlgorithmException
Description copied from interface: MessageDigestEngineProvider
Gets a MessageDigest engine for the algorithm identified by the given URI. The URIs defined in the XML-DSIG specification are used.

Specified by:
getEngine in interface MessageDigestEngineProvider
Parameters:
digestAlgorithmURI - the URI of the digest algorithm
Returns:
the message digest engine
Throws:
UnsupportedAlgorithmException - if the current provider doesn't support the specified algorithm URI or there is no provider in the platform for the corresponding algorithm name


Copyright © 2012. All Rights Reserved.