public final class CryptoUtilXML
extends java.lang.Object
Utility class contains encryption and hash functions for digital signature.
Project:Library for the integration with the services of @Firma, eVisor and TS@.
| Modifier and Type | Method and Description |
|---|---|
static org.bouncycastle.asn1.tsp.MessageImprint |
generateMessageImprintFromXMLAlgorithm(java.lang.String hashAlgXML,
byte[] data)
Method that obtains the MessageImprint from the digest method algorithm URI.
|
static java.lang.String |
translateAlgorithmIdentifier(org.bouncycastle.asn1.x509.AlgorithmIdentifier algorithmIdentifier)
Method that translates a
AlgorithmIdentifier object to a digest algorithm string. |
static java.lang.String |
translateDigestAlgorithmToXMLURI(java.lang.String alg)
Method that translates a
URI object to a algorithm string. |
static java.lang.String |
translateXmlDigestAlgorithm(java.lang.String digestAlg)
Method that translates a
AlgorithmIdentifier object to a digest algorithm string. |
public static java.lang.String translateAlgorithmIdentifier(org.bouncycastle.asn1.x509.AlgorithmIdentifier algorithmIdentifier)
AlgorithmIdentifier object to a digest algorithm string.algorithmIdentifier - Parameter that represents the OID of the digest algorithm.public static java.lang.String translateXmlDigestAlgorithm(java.lang.String digestAlg)
AlgorithmIdentifier object to a digest algorithm string.digestAlg - Parameter that represents the digest method algorithm URI.public static org.bouncycastle.asn1.tsp.MessageImprint generateMessageImprintFromXMLAlgorithm(java.lang.String hashAlgXML,
byte[] data)
hashAlgXML - Parameter that represents the digest method algorithm URI.data - Parameter that represents the hashed message.public static java.lang.String translateDigestAlgorithmToXMLURI(java.lang.String alg)
URI object to a algorithm string.alg - Parameter that represents the method algorithm.