public final class org.jcp.xml.dsig.internal.dom.Utils
minor version: 0
major version: 59
flags: flags: (0x0031) ACC_PUBLIC, ACC_FINAL, ACC_SUPER
this_class: org.jcp.xml.dsig.internal.dom.Utils
super_class: java.lang.Object
{
private void <init>();
descriptor: ()V
flags: (0x0002) ACC_PRIVATE
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokespecial java.lang.Object.<init>:()V
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/jcp/xml/dsig/internal/dom/Utils;
public static byte[] readBytesFromStream(java.io.InputStream);
descriptor: (Ljava/io/InputStream;)[B
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=4, locals=4, args_size=1
start local 0 0: new java.io.ByteArrayOutputStream
dup
invokespecial java.io.ByteArrayOutputStream.<init>:()V
astore 1
start local 1 1: sipush 1024
newarray 8
astore 2
start local 2 2: StackMap locals: java.io.ByteArrayOutputStream byte[]
StackMap stack:
aload 0
aload 2
invokevirtual java.io.InputStream.read:([B)I
istore 3
start local 3 3: iload 3
iconst_m1
if_icmpne 5
4: goto 7
5: StackMap locals: int
StackMap stack:
aload 1
aload 2
iconst_0
iload 3
invokevirtual java.io.ByteArrayOutputStream.write:([BII)V
6: iload 3
sipush 1024
if_icmpge 2
end local 3 7: StackMap locals:
StackMap stack:
aload 1
invokevirtual java.io.ByteArrayOutputStream.toByteArray:()[B
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 is Ljava/io/InputStream;
1 8 1 baos Ljava/io/ByteArrayOutputStream;
2 8 2 buf [B
3 7 3 read I
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
is
static java.util.Set<org.w3c.dom.Node> toNodeSet(java.util.Iterator<?>);
descriptor: (Ljava/util/Iterator;)Ljava/util/Set;
flags: (0x0008) ACC_STATIC
Code:
stack=3, locals=6, args_size=1
start local 0 0: new java.util.HashSet
dup
invokespecial java.util.HashSet.<init>:()V
astore 1
start local 1 1: goto 12
2: StackMap locals: java.util.Set
StackMap stack:
aload 0
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast org.w3c.dom.Node
astore 2
start local 2 3: aload 1
aload 2
invokeinterface java.util.Set.add:(Ljava/lang/Object;)Z
pop
4: aload 2
invokeinterface org.w3c.dom.Node.getNodeType:()S
iconst_1
if_icmpne 12
5: aload 2
invokeinterface org.w3c.dom.Node.getAttributes:()Lorg/w3c/dom/NamedNodeMap;
astore 3
start local 3 6: iconst_0
istore 4
start local 4 7: aload 3
invokeinterface org.w3c.dom.NamedNodeMap.getLength:()I
istore 5
start local 5 8: goto 11
9: StackMap locals: java.util.Iterator java.util.Set org.w3c.dom.Node org.w3c.dom.NamedNodeMap int int
StackMap stack:
aload 1
aload 3
iload 4
invokeinterface org.w3c.dom.NamedNodeMap.item:(I)Lorg/w3c/dom/Node;
invokeinterface java.util.Set.add:(Ljava/lang/Object;)Z
pop
10: iinc 4 1
StackMap locals:
StackMap stack:
11: iload 4
iload 5
if_icmplt 9
end local 5 end local 4 end local 3 end local 2 12: StackMap locals: java.util.Iterator java.util.Set
StackMap stack:
aload 0
invokeinterface java.util.Iterator.hasNext:()Z
ifne 2
13: aload 1
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 14 0 i Ljava/util/Iterator<*>;
1 14 1 nodeSet Ljava/util/Set<Lorg/w3c/dom/Node;>;
3 12 2 n Lorg/w3c/dom/Node;
6 12 3 nnm Lorg/w3c/dom/NamedNodeMap;
7 12 4 j I
8 12 5 length I
Signature: (Ljava/util/Iterator<*>;)Ljava/util/Set<Lorg/w3c/dom/Node;>;
MethodParameters:
Name Flags
i
public static java.lang.String parseIdFromSameDocumentURI(java.lang.String);
descriptor: (Ljava/lang/String;)Ljava/lang/String;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=4, locals=4, args_size=1
start local 0 0: aload 0
invokevirtual java.lang.String.length:()I
ifne 2
1: aconst_null
areturn
2: StackMap locals:
StackMap stack:
aload 0
iconst_1
invokevirtual java.lang.String.substring:(I)Ljava/lang/String;
astore 1
start local 1 3: aload 1
ifnull 7
aload 1
ldc "xpointer(id("
invokevirtual java.lang.String.startsWith:(Ljava/lang/String;)Z
ifeq 7
4: aload 1
bipush 39
invokevirtual java.lang.String.indexOf:(I)I
istore 2
start local 2 5: aload 1
bipush 39
iload 2
iconst_1
iadd
invokevirtual java.lang.String.indexOf:(II)I
istore 3
start local 3 6: aload 1
iload 2
iconst_1
iadd
iload 3
invokevirtual java.lang.String.substring:(II)Ljava/lang/String;
astore 1
end local 3 end local 2 7: StackMap locals: java.lang.String
StackMap stack:
aload 1
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 uri Ljava/lang/String;
3 8 1 id Ljava/lang/String;
5 7 2 i1 I
6 7 3 i2 I
MethodParameters:
Name Flags
uri
public static boolean sameDocumentURI(java.lang.String);
descriptor: (Ljava/lang/String;)Z
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
ifnull 2
aload 0
invokevirtual java.lang.String.length:()I
ifeq 1
aload 0
iconst_0
invokevirtual java.lang.String.charAt:(I)C
bipush 35
if_icmpne 2
StackMap locals:
StackMap stack:
1: iconst_1
ireturn
StackMap locals:
StackMap stack:
2: iconst_0
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 uri Ljava/lang/String;
MethodParameters:
Name Flags
uri
static boolean secureValidation(javax.xml.crypto.XMLCryptoContext);
descriptor: (Ljavax/xml/crypto/XMLCryptoContext;)Z
flags: (0x0008) ACC_STATIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
ifnonnull 2
1: iconst_0
ireturn
2: StackMap locals:
StackMap stack:
aload 0
ldc "org.jcp.xml.dsig.secureValidation"
invokestatic org.jcp.xml.dsig.internal.dom.Utils.getBoolean:(Ljavax/xml/crypto/XMLCryptoContext;Ljava/lang/String;)Z
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 xc Ljavax/xml/crypto/XMLCryptoContext;
MethodParameters:
Name Flags
xc
private static boolean getBoolean(javax.xml.crypto.XMLCryptoContext, java.lang.String);
descriptor: (Ljavax/xml/crypto/XMLCryptoContext;Ljava/lang/String;)Z
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=2, locals=3, args_size=2
start local 0 start local 1 0: aload 0
aload 1
invokeinterface javax.xml.crypto.XMLCryptoContext.getProperty:(Ljava/lang/String;)Ljava/lang/Object;
checkcast java.lang.Boolean
astore 2
start local 2 1: aload 2
ifnull 2
aload 2
invokevirtual java.lang.Boolean.booleanValue:()Z
ifeq 2
iconst_1
ireturn
StackMap locals: java.lang.Boolean
StackMap stack:
2: iconst_0
ireturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 xc Ljavax/xml/crypto/XMLCryptoContext;
0 3 1 name Ljava/lang/String;
1 3 2 value Ljava/lang/Boolean;
MethodParameters:
Name Flags
xc
name
}
SourceFile: "Utils.java"