org.digidoc4j.ddoc.factory.CanonicalizationFactory Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of ddoc4j Show documentation
Show all versions of ddoc4j Show documentation
DDoc4J is Java Library for validating DDOC documents. It's not recommended to use it directly but rather through DigiDoc4J's API.
The newest version!
package org.digidoc4j.ddoc.factory;
import org.digidoc4j.ddoc.DigiDocException;
/**
* Interface for canonicalization functions
* @author Veiko Sinivee
* @version 1.0
*/
public interface CanonicalizationFactory {
/**
* initializes the implementation class
*/
void init() throws DigiDocException;
/**
* Canonicalizes XML fragment using the
* xml-c14n-20010315 algorithm
* @param data input data
* @param uri canonicalization algorithm
* @returns canonicalized XML
* @throws DigiDocException for all errors
*/
byte[] canonicalize(byte[] data, String uri) throws DigiDocException;
}