public abstract class org.jcp.xml.dsig.internal.dom.ApacheCanonicalizer extends javax.xml.crypto.dsig.TransformService
minor version: 0
major version: 59
flags: flags: (0x0421) ACC_PUBLIC, ACC_SUPER, ACC_ABSTRACT
this_class: org.jcp.xml.dsig.internal.dom.ApacheCanonicalizer
super_class: javax.xml.crypto.dsig.TransformService
{
private static final com.sun.org.slf4j.internal.Logger LOG;
descriptor: Lcom/sun/org/slf4j/internal/Logger;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
protected com.sun.org.apache.xml.internal.security.c14n.Canonicalizer apacheCanonicalizer;
descriptor: Lcom/sun/org/apache/xml/internal/security/c14n/Canonicalizer;
flags: (0x0004) ACC_PROTECTED
private com.sun.org.apache.xml.internal.security.transforms.Transform apacheTransform;
descriptor: Lcom/sun/org/apache/xml/internal/security/transforms/Transform;
flags: (0x0002) ACC_PRIVATE
protected java.lang.String inclusiveNamespaces;
descriptor: Ljava/lang/String;
flags: (0x0004) ACC_PROTECTED
protected javax.xml.crypto.dsig.spec.C14NMethodParameterSpec params;
descriptor: Ljavax/xml/crypto/dsig/spec/C14NMethodParameterSpec;
flags: (0x0004) ACC_PROTECTED
protected org.w3c.dom.Document ownerDoc;
descriptor: Lorg/w3c/dom/Document;
flags: (0x0004) ACC_PROTECTED
protected org.w3c.dom.Element transformElem;
descriptor: Lorg/w3c/dom/Element;
flags: (0x0004) ACC_PROTECTED
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=1, locals=0, args_size=0
0: invokestatic com.sun.org.apache.xml.internal.security.Init.init:()V
1: ldc Lorg/jcp/xml/dsig/internal/dom/ApacheCanonicalizer;
invokestatic com.sun.org.slf4j.internal.LoggerFactory.getLogger:(Ljava/lang/Class;)Lcom/sun/org/slf4j/internal/Logger;
2: putstatic org.jcp.xml.dsig.internal.dom.ApacheCanonicalizer.LOG:Lcom/sun/org/slf4j/internal/Logger;
3: return
LocalVariableTable:
Start End Slot Name Signature
public void <init>();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokespecial javax.xml.crypto.dsig.TransformService.<init>:()V
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/jcp/xml/dsig/internal/dom/ApacheCanonicalizer;
public final java.security.spec.AlgorithmParameterSpec getParameterSpec();
descriptor: ()Ljava/security/spec/AlgorithmParameterSpec;
flags: (0x0011) ACC_PUBLIC, ACC_FINAL
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.jcp.xml.dsig.internal.dom.ApacheCanonicalizer.params:Ljavax/xml/crypto/dsig/spec/C14NMethodParameterSpec;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/jcp/xml/dsig/internal/dom/ApacheCanonicalizer;
public void init(javax.xml.crypto.XMLStructure, javax.xml.crypto.XMLCryptoContext);
descriptor: (Ljavax/xml/crypto/XMLStructure;Ljavax/xml/crypto/XMLCryptoContext;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 2
ifnull 4
aload 2
instanceof javax.xml.crypto.dom.DOMCryptoContext
ifne 4
1: new java.lang.ClassCastException
dup
2: ldc "context must be of type DOMCryptoContext"
3: invokespecial java.lang.ClassCastException.<init>:(Ljava/lang/String;)V
athrow
4: StackMap locals:
StackMap stack:
aload 1
ifnonnull 6
5: new java.lang.NullPointerException
dup
invokespecial java.lang.NullPointerException.<init>:()V
athrow
6: StackMap locals:
StackMap stack:
aload 1
instanceof javax.xml.crypto.dom.DOMStructure
ifne 8
7: new java.lang.ClassCastException
dup
ldc "parent must be of type DOMStructure"
invokespecial java.lang.ClassCastException.<init>:(Ljava/lang/String;)V
athrow
8: StackMap locals:
StackMap stack:
aload 0
9: aload 1
checkcast javax.xml.crypto.dom.DOMStructure
invokevirtual javax.xml.crypto.dom.DOMStructure.getNode:()Lorg/w3c/dom/Node;
10: checkcast org.w3c.dom.Element
putfield org.jcp.xml.dsig.internal.dom.ApacheCanonicalizer.transformElem:Lorg/w3c/dom/Element;
11: aload 0
aload 0
getfield org.jcp.xml.dsig.internal.dom.ApacheCanonicalizer.transformElem:Lorg/w3c/dom/Element;
invokestatic org.jcp.xml.dsig.internal.dom.DOMUtils.getOwnerDocument:(Lorg/w3c/dom/Node;)Lorg/w3c/dom/Document;
putfield org.jcp.xml.dsig.internal.dom.ApacheCanonicalizer.ownerDoc:Lorg/w3c/dom/Document;
12: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 13 0 this Lorg/jcp/xml/dsig/internal/dom/ApacheCanonicalizer;
0 13 1 parent Ljavax/xml/crypto/XMLStructure;
0 13 2 context Ljavax/xml/crypto/XMLCryptoContext;
Exceptions:
throws java.security.InvalidAlgorithmParameterException
MethodParameters:
Name Flags
parent
context
public void marshalParams(javax.xml.crypto.XMLStructure, javax.xml.crypto.XMLCryptoContext);
descriptor: (Ljavax/xml/crypto/XMLStructure;Ljavax/xml/crypto/XMLCryptoContext;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 2
ifnull 4
aload 2
instanceof javax.xml.crypto.dom.DOMCryptoContext
ifne 4
1: new java.lang.ClassCastException
dup
2: ldc "context must be of type DOMCryptoContext"
3: invokespecial java.lang.ClassCastException.<init>:(Ljava/lang/String;)V
athrow
4: StackMap locals:
StackMap stack:
aload 1
ifnonnull 6
5: new java.lang.NullPointerException
dup
invokespecial java.lang.NullPointerException.<init>:()V
athrow
6: StackMap locals:
StackMap stack:
aload 1
instanceof javax.xml.crypto.dom.DOMStructure
ifne 8
7: new java.lang.ClassCastException
dup
ldc "parent must be of type DOMStructure"
invokespecial java.lang.ClassCastException.<init>:(Ljava/lang/String;)V
athrow
8: StackMap locals:
StackMap stack:
aload 0
9: aload 1
checkcast javax.xml.crypto.dom.DOMStructure
invokevirtual javax.xml.crypto.dom.DOMStructure.getNode:()Lorg/w3c/dom/Node;
10: checkcast org.w3c.dom.Element
putfield org.jcp.xml.dsig.internal.dom.ApacheCanonicalizer.transformElem:Lorg/w3c/dom/Element;
11: aload 0
aload 0
getfield org.jcp.xml.dsig.internal.dom.ApacheCanonicalizer.transformElem:Lorg/w3c/dom/Element;
invokestatic org.jcp.xml.dsig.internal.dom.DOMUtils.getOwnerDocument:(Lorg/w3c/dom/Node;)Lorg/w3c/dom/Document;
putfield org.jcp.xml.dsig.internal.dom.ApacheCanonicalizer.ownerDoc:Lorg/w3c/dom/Document;
12: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 13 0 this Lorg/jcp/xml/dsig/internal/dom/ApacheCanonicalizer;
0 13 1 parent Ljavax/xml/crypto/XMLStructure;
0 13 2 context Ljavax/xml/crypto/XMLCryptoContext;
Exceptions:
throws javax.xml.crypto.MarshalException
MethodParameters:
Name Flags
parent
context
public javax.xml.crypto.Data canonicalize(javax.xml.crypto.Data, javax.xml.crypto.XMLCryptoContext);
descriptor: (Ljavax/xml/crypto/Data;Ljavax/xml/crypto/XMLCryptoContext;)Ljavax/xml/crypto/Data;
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
aload 1
aload 2
aconst_null
invokevirtual org.jcp.xml.dsig.internal.dom.ApacheCanonicalizer.canonicalize:(Ljavax/xml/crypto/Data;Ljavax/xml/crypto/XMLCryptoContext;Ljava/io/OutputStream;)Ljavax/xml/crypto/Data;
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/jcp/xml/dsig/internal/dom/ApacheCanonicalizer;
0 1 1 data Ljavax/xml/crypto/Data;
0 1 2 xc Ljavax/xml/crypto/XMLCryptoContext;
Exceptions:
throws javax.xml.crypto.dsig.TransformException
MethodParameters:
Name Flags
data
xc
public javax.xml.crypto.Data canonicalize(javax.xml.crypto.Data, javax.xml.crypto.XMLCryptoContext, java.io.OutputStream);
descriptor: (Ljavax/xml/crypto/Data;Ljavax/xml/crypto/XMLCryptoContext;Ljava/io/OutputStream;)Ljavax/xml/crypto/Data;
flags: (0x0001) ACC_PUBLIC
Code:
stack=7, locals=6, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 0
getfield org.jcp.xml.dsig.internal.dom.ApacheCanonicalizer.apacheCanonicalizer:Lcom/sun/org/apache/xml/internal/security/c14n/Canonicalizer;
ifnonnull 13
1: aload 0
aload 0
invokevirtual org.jcp.xml.dsig.internal.dom.ApacheCanonicalizer.getAlgorithm:()Ljava/lang/String;
invokestatic com.sun.org.apache.xml.internal.security.c14n.Canonicalizer.getInstance:(Ljava/lang/String;)Lcom/sun/org/apache/xml/internal/security/c14n/Canonicalizer;
putfield org.jcp.xml.dsig.internal.dom.ApacheCanonicalizer.apacheCanonicalizer:Lcom/sun/org/apache/xml/internal/security/c14n/Canonicalizer;
2: aload 2
invokestatic org.jcp.xml.dsig.internal.dom.Utils.secureValidation:(Ljavax/xml/crypto/XMLCryptoContext;)Z
istore 4
start local 4 3: aload 0
getfield org.jcp.xml.dsig.internal.dom.ApacheCanonicalizer.apacheCanonicalizer:Lcom/sun/org/apache/xml/internal/security/c14n/Canonicalizer;
iload 4
invokevirtual com.sun.org.apache.xml.internal.security.c14n.Canonicalizer.setSecureValidation:(Z)V
4: getstatic org.jcp.xml.dsig.internal.dom.ApacheCanonicalizer.LOG:Lcom/sun/org/slf4j/internal/Logger;
ldc "Created canonicalizer for algorithm: {}"
iconst_1
anewarray java.lang.Object
dup
iconst_0
aload 0
invokevirtual org.jcp.xml.dsig.internal.dom.ApacheCanonicalizer.getAlgorithm:()Ljava/lang/String;
aastore
invokevirtual com.sun.org.slf4j.internal.Logger.debug:(Ljava/lang/String;[Ljava/lang/Object;)V
end local 4 5: goto 13
StackMap locals:
StackMap stack: com.sun.org.apache.xml.internal.security.c14n.InvalidCanonicalizerException
6: astore 4
start local 4 7: new javax.xml.crypto.dsig.TransformException
dup
8: new java.lang.StringBuilder
dup
ldc "Couldn't find Canonicalizer for: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 0
invokevirtual org.jcp.xml.dsig.internal.dom.ApacheCanonicalizer.getAlgorithm:()Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
9: ldc ": "
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 4
invokevirtual com.sun.org.apache.xml.internal.security.c14n.InvalidCanonicalizerException.getMessage:()Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
10: invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
11: aload 4
12: invokespecial javax.xml.crypto.dsig.TransformException.<init>:(Ljava/lang/String;Ljava/lang/Throwable;)V
athrow
end local 4 13: StackMap locals:
StackMap stack:
aload 3
ifnull 16
14: aload 0
getfield org.jcp.xml.dsig.internal.dom.ApacheCanonicalizer.apacheCanonicalizer:Lcom/sun/org/apache/xml/internal/security/c14n/Canonicalizer;
aload 3
invokevirtual com.sun.org.apache.xml.internal.security.c14n.Canonicalizer.setWriter:(Ljava/io/OutputStream;)V
15: goto 17
16: StackMap locals:
StackMap stack:
aload 0
getfield org.jcp.xml.dsig.internal.dom.ApacheCanonicalizer.apacheCanonicalizer:Lcom/sun/org/apache/xml/internal/security/c14n/Canonicalizer;
new java.io.ByteArrayOutputStream
dup
invokespecial java.io.ByteArrayOutputStream.<init>:()V
invokevirtual com.sun.org.apache.xml.internal.security.c14n.Canonicalizer.setWriter:(Ljava/io/OutputStream;)V
17: StackMap locals:
StackMap stack:
aconst_null
astore 4
start local 4 18: aload 1
instanceof org.jcp.xml.dsig.internal.dom.ApacheData
ifeq 44
19: aload 1
checkcast org.jcp.xml.dsig.internal.dom.ApacheData
invokeinterface org.jcp.xml.dsig.internal.dom.ApacheData.getXMLSignatureInput:()Lcom/sun/org/apache/xml/internal/security/signature/XMLSignatureInput;
20: astore 5
start local 5 21: aload 5
invokevirtual com.sun.org.apache.xml.internal.security.signature.XMLSignatureInput.isElement:()Z
ifeq 35
22: aload 0
getfield org.jcp.xml.dsig.internal.dom.ApacheCanonicalizer.inclusiveNamespaces:Ljava/lang/String;
ifnull 29
23: new javax.xml.crypto.OctetStreamData
dup
new java.io.ByteArrayInputStream
dup
24: aload 0
getfield org.jcp.xml.dsig.internal.dom.ApacheCanonicalizer.apacheCanonicalizer:Lcom/sun/org/apache/xml/internal/security/c14n/Canonicalizer;
25: aload 5
invokevirtual com.sun.org.apache.xml.internal.security.signature.XMLSignatureInput.getSubNode:()Lorg/w3c/dom/Node;
aload 0
getfield org.jcp.xml.dsig.internal.dom.ApacheCanonicalizer.inclusiveNamespaces:Ljava/lang/String;
26: invokevirtual com.sun.org.apache.xml.internal.security.c14n.Canonicalizer.canonicalizeSubtree:(Lorg/w3c/dom/Node;Ljava/lang/String;)[B
invokespecial java.io.ByteArrayInputStream.<init>:([B)V
27: invokespecial javax.xml.crypto.OctetStreamData.<init>:(Ljava/io/InputStream;)V
28: areturn
29: StackMap locals: java.util.Set com.sun.org.apache.xml.internal.security.signature.XMLSignatureInput
StackMap stack:
new javax.xml.crypto.OctetStreamData
dup
new java.io.ByteArrayInputStream
dup
30: aload 0
getfield org.jcp.xml.dsig.internal.dom.ApacheCanonicalizer.apacheCanonicalizer:Lcom/sun/org/apache/xml/internal/security/c14n/Canonicalizer;
31: aload 5
invokevirtual com.sun.org.apache.xml.internal.security.signature.XMLSignatureInput.getSubNode:()Lorg/w3c/dom/Node;
32: invokevirtual com.sun.org.apache.xml.internal.security.c14n.Canonicalizer.canonicalizeSubtree:(Lorg/w3c/dom/Node;)[B
invokespecial java.io.ByteArrayInputStream.<init>:([B)V
33: invokespecial javax.xml.crypto.OctetStreamData.<init>:(Ljava/io/InputStream;)V
34: areturn
35: StackMap locals:
StackMap stack:
aload 5
invokevirtual com.sun.org.apache.xml.internal.security.signature.XMLSignatureInput.isNodeSet:()Z
ifeq 38
36: aload 5
invokevirtual com.sun.org.apache.xml.internal.security.signature.XMLSignatureInput.getNodeSet:()Ljava/util/Set;
astore 4
37: goto 71
38: StackMap locals:
StackMap stack:
new javax.xml.crypto.OctetStreamData
dup
new java.io.ByteArrayInputStream
dup
39: aload 0
getfield org.jcp.xml.dsig.internal.dom.ApacheCanonicalizer.apacheCanonicalizer:Lcom/sun/org/apache/xml/internal/security/c14n/Canonicalizer;
40: aload 5
invokevirtual com.sun.org.apache.xml.internal.security.signature.XMLSignatureInput.getOctetStream:()Ljava/io/InputStream;
invokestatic org.jcp.xml.dsig.internal.dom.Utils.readBytesFromStream:(Ljava/io/InputStream;)[B
41: invokevirtual com.sun.org.apache.xml.internal.security.c14n.Canonicalizer.canonicalize:([B)[B
invokespecial java.io.ByteArrayInputStream.<init>:([B)V
42: invokespecial javax.xml.crypto.OctetStreamData.<init>:(Ljava/io/InputStream;)V
43: areturn
end local 5 44: StackMap locals:
StackMap stack:
aload 1
instanceof org.jcp.xml.dsig.internal.dom.DOMSubTreeData
ifeq 59
45: aload 1
checkcast org.jcp.xml.dsig.internal.dom.DOMSubTreeData
astore 5
start local 5 46: aload 0
getfield org.jcp.xml.dsig.internal.dom.ApacheCanonicalizer.inclusiveNamespaces:Ljava/lang/String;
ifnull 53
47: new javax.xml.crypto.OctetStreamData
dup
new java.io.ByteArrayInputStream
dup
48: aload 0
getfield org.jcp.xml.dsig.internal.dom.ApacheCanonicalizer.apacheCanonicalizer:Lcom/sun/org/apache/xml/internal/security/c14n/Canonicalizer;
49: aload 5
invokevirtual org.jcp.xml.dsig.internal.dom.DOMSubTreeData.getRoot:()Lorg/w3c/dom/Node;
aload 0
getfield org.jcp.xml.dsig.internal.dom.ApacheCanonicalizer.inclusiveNamespaces:Ljava/lang/String;
50: invokevirtual com.sun.org.apache.xml.internal.security.c14n.Canonicalizer.canonicalizeSubtree:(Lorg/w3c/dom/Node;Ljava/lang/String;)[B
invokespecial java.io.ByteArrayInputStream.<init>:([B)V
51: invokespecial javax.xml.crypto.OctetStreamData.<init>:(Ljava/io/InputStream;)V
52: areturn
53: StackMap locals: org.jcp.xml.dsig.internal.dom.DOMSubTreeData
StackMap stack:
new javax.xml.crypto.OctetStreamData
dup
new java.io.ByteArrayInputStream
dup
54: aload 0
getfield org.jcp.xml.dsig.internal.dom.ApacheCanonicalizer.apacheCanonicalizer:Lcom/sun/org/apache/xml/internal/security/c14n/Canonicalizer;
55: aload 5
invokevirtual org.jcp.xml.dsig.internal.dom.DOMSubTreeData.getRoot:()Lorg/w3c/dom/Node;
56: invokevirtual com.sun.org.apache.xml.internal.security.c14n.Canonicalizer.canonicalizeSubtree:(Lorg/w3c/dom/Node;)[B
invokespecial java.io.ByteArrayInputStream.<init>:([B)V
57: invokespecial javax.xml.crypto.OctetStreamData.<init>:(Ljava/io/InputStream;)V
58: areturn
end local 5 59: StackMap locals:
StackMap stack:
aload 1
instanceof javax.xml.crypto.NodeSetData
ifeq 64
60: aload 1
checkcast javax.xml.crypto.NodeSetData
astore 5
start local 5 61: aload 5
invokeinterface javax.xml.crypto.NodeSetData.iterator:()Ljava/util/Iterator;
invokestatic org.jcp.xml.dsig.internal.dom.Utils.toNodeSet:(Ljava/util/Iterator;)Ljava/util/Set;
astore 4
62: getstatic org.jcp.xml.dsig.internal.dom.ApacheCanonicalizer.LOG:Lcom/sun/org/slf4j/internal/Logger;
ldc "Canonicalizing {} nodes"
iconst_1
anewarray java.lang.Object
dup
iconst_0
aload 4
invokeinterface java.util.Set.size:()I
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
aastore
invokevirtual com.sun.org.slf4j.internal.Logger.debug:(Ljava/lang/String;[Ljava/lang/Object;)V
end local 5 63: goto 71
64: StackMap locals:
StackMap stack:
new javax.xml.crypto.OctetStreamData
dup
new java.io.ByteArrayInputStream
dup
65: aload 0
getfield org.jcp.xml.dsig.internal.dom.ApacheCanonicalizer.apacheCanonicalizer:Lcom/sun/org/apache/xml/internal/security/c14n/Canonicalizer;
66: aload 1
checkcast javax.xml.crypto.OctetStreamData
invokevirtual javax.xml.crypto.OctetStreamData.getOctetStream:()Ljava/io/InputStream;
67: invokestatic org.jcp.xml.dsig.internal.dom.Utils.readBytesFromStream:(Ljava/io/InputStream;)[B
68: invokevirtual com.sun.org.apache.xml.internal.security.c14n.Canonicalizer.canonicalize:([B)[B
invokespecial java.io.ByteArrayInputStream.<init>:([B)V
69: invokespecial javax.xml.crypto.OctetStreamData.<init>:(Ljava/io/InputStream;)V
70: areturn
71: StackMap locals:
StackMap stack:
aload 0
getfield org.jcp.xml.dsig.internal.dom.ApacheCanonicalizer.inclusiveNamespaces:Ljava/lang/String;
ifnull 78
72: new javax.xml.crypto.OctetStreamData
dup
new java.io.ByteArrayInputStream
dup
73: aload 0
getfield org.jcp.xml.dsig.internal.dom.ApacheCanonicalizer.apacheCanonicalizer:Lcom/sun/org/apache/xml/internal/security/c14n/Canonicalizer;
74: aload 4
aload 0
getfield org.jcp.xml.dsig.internal.dom.ApacheCanonicalizer.inclusiveNamespaces:Ljava/lang/String;
75: invokevirtual com.sun.org.apache.xml.internal.security.c14n.Canonicalizer.canonicalizeXPathNodeSet:(Ljava/util/Set;Ljava/lang/String;)[B
invokespecial java.io.ByteArrayInputStream.<init>:([B)V
76: invokespecial javax.xml.crypto.OctetStreamData.<init>:(Ljava/io/InputStream;)V
77: areturn
78: StackMap locals:
StackMap stack:
new javax.xml.crypto.OctetStreamData
dup
new java.io.ByteArrayInputStream
dup
79: aload 0
getfield org.jcp.xml.dsig.internal.dom.ApacheCanonicalizer.apacheCanonicalizer:Lcom/sun/org/apache/xml/internal/security/c14n/Canonicalizer;
aload 4
invokevirtual com.sun.org.apache.xml.internal.security.c14n.Canonicalizer.canonicalizeXPathNodeSet:(Ljava/util/Set;)[B
invokespecial java.io.ByteArrayInputStream.<init>:([B)V
80: invokespecial javax.xml.crypto.OctetStreamData.<init>:(Ljava/io/InputStream;)V
81: areturn
end local 4 82: StackMap locals: org.jcp.xml.dsig.internal.dom.ApacheCanonicalizer javax.xml.crypto.Data javax.xml.crypto.XMLCryptoContext java.io.OutputStream
StackMap stack: java.lang.Exception
astore 4
start local 4 83: new javax.xml.crypto.dsig.TransformException
dup
aload 4
invokespecial javax.xml.crypto.dsig.TransformException.<init>:(Ljava/lang/Throwable;)V
athrow
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 84 0 this Lorg/jcp/xml/dsig/internal/dom/ApacheCanonicalizer;
0 84 1 data Ljavax/xml/crypto/Data;
0 84 2 xc Ljavax/xml/crypto/XMLCryptoContext;
0 84 3 os Ljava/io/OutputStream;
3 5 4 secVal Z
7 13 4 ice Lcom/sun/org/apache/xml/internal/security/c14n/InvalidCanonicalizerException;
18 82 4 nodeSet Ljava/util/Set<Lorg/w3c/dom/Node;>;
21 44 5 in Lcom/sun/org/apache/xml/internal/security/signature/XMLSignatureInput;
46 59 5 subTree Lorg/jcp/xml/dsig/internal/dom/DOMSubTreeData;
61 63 5 nsd Ljavax/xml/crypto/NodeSetData<*>;
83 84 4 e Ljava/lang/Exception;
Exception table:
from to target type
1 5 6 Class com.sun.org.apache.xml.internal.security.c14n.InvalidCanonicalizerException
17 28 82 Class java.lang.Exception
29 34 82 Class java.lang.Exception
35 43 82 Class java.lang.Exception
44 52 82 Class java.lang.Exception
53 58 82 Class java.lang.Exception
59 70 82 Class java.lang.Exception
71 77 82 Class java.lang.Exception
78 81 82 Class java.lang.Exception
Exceptions:
throws javax.xml.crypto.dsig.TransformException
MethodParameters:
Name Flags
data
xc
os
public javax.xml.crypto.Data transform(javax.xml.crypto.Data, javax.xml.crypto.XMLCryptoContext, java.io.OutputStream);
descriptor: (Ljavax/xml/crypto/Data;Ljavax/xml/crypto/XMLCryptoContext;Ljava/io/OutputStream;)Ljavax/xml/crypto/Data;
flags: (0x0001) ACC_PUBLIC
Code:
stack=6, locals=7, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 1
ifnonnull 2
1: new java.lang.NullPointerException
dup
ldc "data must not be null"
invokespecial java.lang.NullPointerException.<init>:(Ljava/lang/String;)V
athrow
2: StackMap locals:
StackMap stack:
aload 3
ifnonnull 4
3: new java.lang.NullPointerException
dup
ldc "output stream must not be null"
invokespecial java.lang.NullPointerException.<init>:(Ljava/lang/String;)V
athrow
4: StackMap locals:
StackMap stack:
aload 0
getfield org.jcp.xml.dsig.internal.dom.ApacheCanonicalizer.ownerDoc:Lorg/w3c/dom/Document;
ifnonnull 6
5: new javax.xml.crypto.dsig.TransformException
dup
ldc "transform must be marshalled"
invokespecial javax.xml.crypto.dsig.TransformException.<init>:(Ljava/lang/String;)V
athrow
6: StackMap locals:
StackMap stack:
aload 0
getfield org.jcp.xml.dsig.internal.dom.ApacheCanonicalizer.apacheTransform:Lcom/sun/org/apache/xml/internal/security/transforms/Transform;
ifnonnull 19
7: aload 0
8: new com.sun.org.apache.xml.internal.security.transforms.Transform
dup
aload 0
getfield org.jcp.xml.dsig.internal.dom.ApacheCanonicalizer.ownerDoc:Lorg/w3c/dom/Document;
aload 0
invokevirtual org.jcp.xml.dsig.internal.dom.ApacheCanonicalizer.getAlgorithm:()Ljava/lang/String;
aload 0
getfield org.jcp.xml.dsig.internal.dom.ApacheCanonicalizer.transformElem:Lorg/w3c/dom/Element;
invokeinterface org.w3c.dom.Element.getChildNodes:()Lorg/w3c/dom/NodeList;
invokespecial com.sun.org.apache.xml.internal.security.transforms.Transform.<init>:(Lorg/w3c/dom/Document;Ljava/lang/String;Lorg/w3c/dom/NodeList;)V
9: putfield org.jcp.xml.dsig.internal.dom.ApacheCanonicalizer.apacheTransform:Lcom/sun/org/apache/xml/internal/security/transforms/Transform;
10: aload 0
getfield org.jcp.xml.dsig.internal.dom.ApacheCanonicalizer.apacheTransform:Lcom/sun/org/apache/xml/internal/security/transforms/Transform;
aload 0
getfield org.jcp.xml.dsig.internal.dom.ApacheCanonicalizer.transformElem:Lorg/w3c/dom/Element;
aload 2
invokeinterface javax.xml.crypto.XMLCryptoContext.getBaseURI:()Ljava/lang/String;
invokevirtual com.sun.org.apache.xml.internal.security.transforms.Transform.setElement:(Lorg/w3c/dom/Element;Ljava/lang/String;)V
11: aload 2
invokestatic org.jcp.xml.dsig.internal.dom.Utils.secureValidation:(Ljavax/xml/crypto/XMLCryptoContext;)Z
istore 4
start local 4 12: aload 0
getfield org.jcp.xml.dsig.internal.dom.ApacheCanonicalizer.apacheTransform:Lcom/sun/org/apache/xml/internal/security/transforms/Transform;
iload 4
invokevirtual com.sun.org.apache.xml.internal.security.transforms.Transform.setSecureValidation:(Z)V
13: getstatic org.jcp.xml.dsig.internal.dom.ApacheCanonicalizer.LOG:Lcom/sun/org/slf4j/internal/Logger;
ldc "Created transform for algorithm: {}"
iconst_1
anewarray java.lang.Object
dup
iconst_0
aload 0
invokevirtual org.jcp.xml.dsig.internal.dom.ApacheCanonicalizer.getAlgorithm:()Ljava/lang/String;
aastore
invokevirtual com.sun.org.slf4j.internal.Logger.debug:(Ljava/lang/String;[Ljava/lang/Object;)V
end local 4 14: goto 19
StackMap locals:
StackMap stack: java.lang.Exception
15: astore 4
start local 4 16: new javax.xml.crypto.dsig.TransformException
dup
17: new java.lang.StringBuilder
dup
ldc "Couldn't find Transform for: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 0
invokevirtual org.jcp.xml.dsig.internal.dom.ApacheCanonicalizer.getAlgorithm:()Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
aload 4
18: invokespecial javax.xml.crypto.dsig.TransformException.<init>:(Ljava/lang/String;Ljava/lang/Throwable;)V
athrow
end local 4 19: StackMap locals:
StackMap stack:
aload 1
instanceof org.jcp.xml.dsig.internal.dom.ApacheData
ifeq 23
20: getstatic org.jcp.xml.dsig.internal.dom.ApacheCanonicalizer.LOG:Lcom/sun/org/slf4j/internal/Logger;
ldc "ApacheData = true"
invokevirtual com.sun.org.slf4j.internal.Logger.debug:(Ljava/lang/String;)V
21: aload 1
checkcast org.jcp.xml.dsig.internal.dom.ApacheData
invokeinterface org.jcp.xml.dsig.internal.dom.ApacheData.getXMLSignatureInput:()Lcom/sun/org/apache/xml/internal/security/signature/XMLSignatureInput;
astore 4
start local 4 22: goto 41
end local 4 StackMap locals:
StackMap stack:
23: aload 1
instanceof javax.xml.crypto.NodeSetData
ifeq 34
24: getstatic org.jcp.xml.dsig.internal.dom.ApacheCanonicalizer.LOG:Lcom/sun/org/slf4j/internal/Logger;
ldc "isNodeSet() = true"
invokevirtual com.sun.org.slf4j.internal.Logger.debug:(Ljava/lang/String;)V
25: aload 1
instanceof org.jcp.xml.dsig.internal.dom.DOMSubTreeData
ifeq 30
26: aload 1
checkcast org.jcp.xml.dsig.internal.dom.DOMSubTreeData
astore 5
start local 5 27: new com.sun.org.apache.xml.internal.security.signature.XMLSignatureInput
dup
aload 5
invokevirtual org.jcp.xml.dsig.internal.dom.DOMSubTreeData.getRoot:()Lorg/w3c/dom/Node;
invokespecial com.sun.org.apache.xml.internal.security.signature.XMLSignatureInput.<init>:(Lorg/w3c/dom/Node;)V
astore 4
start local 4 28: aload 4
aload 5
invokevirtual org.jcp.xml.dsig.internal.dom.DOMSubTreeData.excludeComments:()Z
invokevirtual com.sun.org.apache.xml.internal.security.signature.XMLSignatureInput.setExcludeComments:(Z)V
end local 5 29: goto 41
end local 4 30: StackMap locals:
StackMap stack:
aload 1
checkcast javax.xml.crypto.NodeSetData
invokeinterface javax.xml.crypto.NodeSetData.iterator:()Ljava/util/Iterator;
invokestatic org.jcp.xml.dsig.internal.dom.Utils.toNodeSet:(Ljava/util/Iterator;)Ljava/util/Set;
31: astore 5
start local 5 32: new com.sun.org.apache.xml.internal.security.signature.XMLSignatureInput
dup
aload 5
invokespecial com.sun.org.apache.xml.internal.security.signature.XMLSignatureInput.<init>:(Ljava/util/Set;)V
astore 4
end local 5 start local 4 33: goto 41
end local 4 34: StackMap locals:
StackMap stack:
getstatic org.jcp.xml.dsig.internal.dom.ApacheCanonicalizer.LOG:Lcom/sun/org/slf4j/internal/Logger;
ldc "isNodeSet() = false"
invokevirtual com.sun.org.slf4j.internal.Logger.debug:(Ljava/lang/String;)V
35: new com.sun.org.apache.xml.internal.security.signature.XMLSignatureInput
dup
36: aload 1
checkcast javax.xml.crypto.OctetStreamData
invokevirtual javax.xml.crypto.OctetStreamData.getOctetStream:()Ljava/io/InputStream;
37: invokespecial com.sun.org.apache.xml.internal.security.signature.XMLSignatureInput.<init>:(Ljava/io/InputStream;)V
astore 4
start local 4 38: goto 41
end local 4 StackMap locals:
StackMap stack: java.lang.Exception
39: astore 5
start local 5 40: new javax.xml.crypto.dsig.TransformException
dup
aload 5
invokespecial javax.xml.crypto.dsig.TransformException.<init>:(Ljava/lang/Throwable;)V
athrow
end local 5 start local 4 41: StackMap locals: com.sun.org.apache.xml.internal.security.signature.XMLSignatureInput
StackMap stack:
aload 2
invokestatic org.jcp.xml.dsig.internal.dom.Utils.secureValidation:(Ljavax/xml/crypto/XMLCryptoContext;)Z
istore 5
start local 5 42: aload 4
iload 5
invokevirtual com.sun.org.apache.xml.internal.security.signature.XMLSignatureInput.setSecureValidation:(Z)V
43: aload 0
getfield org.jcp.xml.dsig.internal.dom.ApacheCanonicalizer.apacheTransform:Lcom/sun/org/apache/xml/internal/security/transforms/Transform;
aload 4
aload 3
invokevirtual com.sun.org.apache.xml.internal.security.transforms.Transform.performTransform:(Lcom/sun/org/apache/xml/internal/security/signature/XMLSignatureInput;Ljava/io/OutputStream;)Lcom/sun/org/apache/xml/internal/security/signature/XMLSignatureInput;
astore 4
44: aload 4
invokevirtual com.sun.org.apache.xml.internal.security.signature.XMLSignatureInput.isNodeSet:()Z
ifne 46
aload 4
invokevirtual com.sun.org.apache.xml.internal.security.signature.XMLSignatureInput.isElement:()Z
ifne 46
45: aconst_null
areturn
46: StackMap locals: int
StackMap stack:
aload 4
invokevirtual com.sun.org.apache.xml.internal.security.signature.XMLSignatureInput.isOctetStream:()Z
ifeq 49
47: new org.jcp.xml.dsig.internal.dom.ApacheOctetStreamData
dup
aload 4
invokespecial org.jcp.xml.dsig.internal.dom.ApacheOctetStreamData.<init>:(Lcom/sun/org/apache/xml/internal/security/signature/XMLSignatureInput;)V
48: areturn
49: StackMap locals:
StackMap stack:
new org.jcp.xml.dsig.internal.dom.ApacheNodeSetData
dup
aload 4
invokespecial org.jcp.xml.dsig.internal.dom.ApacheNodeSetData.<init>:(Lcom/sun/org/apache/xml/internal/security/signature/XMLSignatureInput;)V
50: areturn
51: StackMap locals:
StackMap stack: java.lang.Exception
astore 6
start local 6 52: new javax.xml.crypto.dsig.TransformException
dup
aload 6
invokespecial javax.xml.crypto.dsig.TransformException.<init>:(Ljava/lang/Throwable;)V
athrow
end local 6 end local 5 end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 53 0 this Lorg/jcp/xml/dsig/internal/dom/ApacheCanonicalizer;
0 53 1 data Ljavax/xml/crypto/Data;
0 53 2 xc Ljavax/xml/crypto/XMLCryptoContext;
0 53 3 os Ljava/io/OutputStream;
12 14 4 secVal Z
16 19 4 ex Ljava/lang/Exception;
22 23 4 in Lcom/sun/org/apache/xml/internal/security/signature/XMLSignatureInput;
28 30 4 in Lcom/sun/org/apache/xml/internal/security/signature/XMLSignatureInput;
33 34 4 in Lcom/sun/org/apache/xml/internal/security/signature/XMLSignatureInput;
38 39 4 in Lcom/sun/org/apache/xml/internal/security/signature/XMLSignatureInput;
41 53 4 in Lcom/sun/org/apache/xml/internal/security/signature/XMLSignatureInput;
27 29 5 subTree Lorg/jcp/xml/dsig/internal/dom/DOMSubTreeData;
32 33 5 nodeSet Ljava/util/Set<Lorg/w3c/dom/Node;>;
40 41 5 ex Ljava/lang/Exception;
42 53 5 secVal Z
52 53 6 ex Ljava/lang/Exception;
Exception table:
from to target type
7 14 15 Class java.lang.Exception
35 38 39 Class java.lang.Exception
43 45 51 Class java.lang.Exception
46 48 51 Class java.lang.Exception
49 50 51 Class java.lang.Exception
Exceptions:
throws javax.xml.crypto.dsig.TransformException
MethodParameters:
Name Flags
data
xc
os
public final boolean isFeatureSupported(java.lang.String);
descriptor: (Ljava/lang/String;)Z
flags: (0x0011) ACC_PUBLIC, ACC_FINAL
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 1
ifnonnull 2
1: new java.lang.NullPointerException
dup
invokespecial java.lang.NullPointerException.<init>:()V
athrow
2: StackMap locals:
StackMap stack:
iconst_0
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/jcp/xml/dsig/internal/dom/ApacheCanonicalizer;
0 3 1 feature Ljava/lang/String;
MethodParameters:
Name Flags
feature
}
SourceFile: "ApacheCanonicalizer.java"