xades4j.providers
Interface MessageDigestEngineProvider

All Known Implementing Classes:
DefaultMessageDigestProvider

public interface MessageDigestEngineProvider

Interface for providers of message digest engines. A default implementation is provided.

Author:
Luís
See Also:
DefaultMessageDigestProvider

Method Summary
 MessageDigest getEngine(String digestAlgorithmURI)
          Gets a MessageDigest engine for the algorithm identified by the given URI.
 

Method Detail

getEngine

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

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.