1 2 18 package com.sun.org.apache.xml.internal.security.transforms; 19 20 21 22 import java.io.IOException ; 23 import java.io.OutputStream ; 24 25 import javax.xml.parsers.ParserConfigurationException ; 26 27 import com.sun.org.apache.xml.internal.security.c14n.CanonicalizationException; 28 import com.sun.org.apache.xml.internal.security.c14n.InvalidCanonicalizerException; 29 import com.sun.org.apache.xml.internal.security.signature.XMLSignatureInput; 30 import org.xml.sax.SAXException ; 31 32 33 39 public abstract class TransformSpi { 40 41 42 static java.util.logging.Logger log = 43 java.util.logging.Logger.getLogger(TransformSpi.class.getName()); 44 45 protected Transform _transformObject = null; 46 protected void setTransform(Transform transform) { 47 this._transformObject = transform; 48 } 49 50 63 protected XMLSignatureInput enginePerformTransform( 64 XMLSignatureInput input, OutputStream os) 65 throws IOException , 66 CanonicalizationException, InvalidCanonicalizerException, 67 TransformationException, ParserConfigurationException , 68 SAXException { 69 return enginePerformTransform(input); 70 } 71 83 protected abstract XMLSignatureInput enginePerformTransform( 84 XMLSignatureInput input) 85 throws IOException , 86 CanonicalizationException, InvalidCanonicalizerException, 87 TransformationException, ParserConfigurationException , 88 SAXException ; 89 90 95 protected abstract String engineGetURI(); 96 } 97 | Popular Tags |