Class DOMExcC14NMethod

  • All Implemented Interfaces:
    javax.xml.crypto.AlgorithmMethod, javax.xml.crypto.dsig.Transform, javax.xml.crypto.XMLStructure

    public final class DOMExcC14NMethod
    extends ApacheCanonicalizer
    DOM-based implementation of CanonicalizationMethod for Exclusive Canonical XML algorithm (with or without comments). Uses Apache XML-Sec Canonicalizer.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.List<java.lang.String> getParameterSpecPrefixList​(javax.xml.crypto.dsig.spec.ExcC14NParameterSpec paramSpec)  
      java.lang.String getParamsNSURI()  
      void init​(javax.xml.crypto.dsig.spec.TransformParameterSpec params)  
      void init​(javax.xml.crypto.XMLStructure parent, javax.xml.crypto.XMLCryptoContext context)  
      void marshalParams​(javax.xml.crypto.XMLStructure parent, javax.xml.crypto.XMLCryptoContext context)  
      javax.xml.crypto.Data transform​(javax.xml.crypto.Data data, javax.xml.crypto.XMLCryptoContext xc)  
      private void unmarshalParams​(org.w3c.dom.Element paramsElem)  
      • Methods inherited from class javax.xml.crypto.dsig.TransformService

        getAlgorithm, getInstance, getInstance, getInstance, getMechanismType, getProvider
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • DOMExcC14NMethod

        public DOMExcC14NMethod()
    • Method Detail

      • init

        public void init​(javax.xml.crypto.dsig.spec.TransformParameterSpec params)
                  throws java.security.InvalidAlgorithmParameterException
        Specified by:
        init in class javax.xml.crypto.dsig.TransformService
        Throws:
        java.security.InvalidAlgorithmParameterException
      • init

        public void init​(javax.xml.crypto.XMLStructure parent,
                         javax.xml.crypto.XMLCryptoContext context)
                  throws java.security.InvalidAlgorithmParameterException
        Overrides:
        init in class ApacheCanonicalizer
        Throws:
        java.security.InvalidAlgorithmParameterException
      • unmarshalParams

        private void unmarshalParams​(org.w3c.dom.Element paramsElem)
      • getParameterSpecPrefixList

        public java.util.List<java.lang.String> getParameterSpecPrefixList​(javax.xml.crypto.dsig.spec.ExcC14NParameterSpec paramSpec)
      • marshalParams

        public void marshalParams​(javax.xml.crypto.XMLStructure parent,
                                  javax.xml.crypto.XMLCryptoContext context)
                           throws javax.xml.crypto.MarshalException
        Overrides:
        marshalParams in class ApacheCanonicalizer
        Throws:
        javax.xml.crypto.MarshalException
      • getParamsNSURI

        public java.lang.String getParamsNSURI()
      • transform

        public javax.xml.crypto.Data transform​(javax.xml.crypto.Data data,
                                               javax.xml.crypto.XMLCryptoContext xc)
                                        throws javax.xml.crypto.dsig.TransformException
        Throws:
        javax.xml.crypto.dsig.TransformException