xades4j.providers.impl
Class DefaultMessageDigestProvider
java.lang.Object
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:
http://www.w3.org/2000/09/xmldsig#sha1 - SHA-1
http://www.w3.org/2001/04/xmlenc#sha256 - SHA-256
http://www.w3.org/2001/04/xmldsig-more#sha384 - SHA-384
http://www.w3.org/2001/04/xmlenc#sha512 - SHA-512
- Author:
- Luís
|
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 |
DefaultMessageDigestProvider
public DefaultMessageDigestProvider()
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.