public final class org.jcp.xml.dsig.internal.dom.Policy
minor version: 0
major version: 59
flags: flags: (0x0031) ACC_PUBLIC, ACC_FINAL, ACC_SUPER
this_class: org.jcp.xml.dsig.internal.dom.Policy
super_class: java.lang.Object
{
private static java.util.Set<java.net.URI> disallowedAlgs;
descriptor: Ljava/util/Set;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Signature: Ljava/util/Set<Ljava/net/URI;>;
private static int maxTrans;
descriptor: I
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
private static int maxRefs;
descriptor: I
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
private static java.util.Set<java.lang.String> disallowedRefUriSchemes;
descriptor: Ljava/util/Set;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Signature: Ljava/util/Set<Ljava/lang/String;>;
private static java.util.Map<java.lang.String, java.lang.Integer> minKeyMap;
descriptor: Ljava/util/Map;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Signature: Ljava/util/Map<Ljava/lang/String;Ljava/lang/Integer;>;
private static boolean noDuplicateIds;
descriptor: Z
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
private static boolean noRMLoops;
descriptor: Z
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=4, locals=1, args_size=0
0: new java.util.HashSet
dup
invokespecial java.util.HashSet.<init>:()V
putstatic org.jcp.xml.dsig.internal.dom.Policy.disallowedAlgs:Ljava/util/Set;
1: ldc 2147483647
putstatic org.jcp.xml.dsig.internal.dom.Policy.maxTrans:I
2: ldc 2147483647
putstatic org.jcp.xml.dsig.internal.dom.Policy.maxRefs:I
3: new java.util.HashSet
dup
invokespecial java.util.HashSet.<init>:()V
putstatic org.jcp.xml.dsig.internal.dom.Policy.disallowedRefUriSchemes:Ljava/util/Set;
4: new java.util.HashMap
dup
invokespecial java.util.HashMap.<init>:()V
putstatic org.jcp.xml.dsig.internal.dom.Policy.minKeyMap:Ljava/util/Map;
5: iconst_0
putstatic org.jcp.xml.dsig.internal.dom.Policy.noDuplicateIds:Z
6: iconst_0
putstatic org.jcp.xml.dsig.internal.dom.Policy.noRMLoops:Z
7: invokestatic org.jcp.xml.dsig.internal.dom.Policy.initialize:()V
8: goto 13
StackMap locals:
StackMap stack: java.lang.Exception
9: astore 0
start local 0 10: new java.lang.SecurityException
dup
11: ldc "Cannot initialize the secure validation policy"
aload 0
12: invokespecial java.lang.SecurityException.<init>:(Ljava/lang/String;Ljava/lang/Throwable;)V
athrow
end local 0 13: StackMap locals:
StackMap stack:
return
LocalVariableTable:
Start End Slot Name Signature
10 13 0 e Ljava/lang/Exception;
Exception table:
from to target type
7 8 9 Class java.lang.Exception
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/Policy;
private static void initialize();
descriptor: ()V
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=4, locals=11, args_size=0
0: new org.jcp.xml.dsig.internal.dom.Policy$1
dup
invokespecial org.jcp.xml.dsig.internal.dom.Policy$1.<init>:()V
invokestatic java.security.AccessController.doPrivileged:(Ljava/security/PrivilegedAction;)Ljava/lang/Object;
checkcast java.lang.String
1: astore 0
start local 0 2: aload 0
ifnull 3
aload 0
invokevirtual java.lang.String.isEmpty:()Z
ifeq 4
3: StackMap locals: java.lang.String
StackMap stack:
return
4: StackMap locals:
StackMap stack:
aload 0
ldc ","
invokevirtual java.lang.String.split:(Ljava/lang/String;)[Ljava/lang/String;
astore 1
start local 1 5: aload 1
dup
astore 5
arraylength
istore 4
iconst_0
istore 3
goto 56
StackMap locals: java.lang.String java.lang.String[] top int int java.lang.String[]
StackMap stack:
6: aload 5
iload 3
aaload
astore 2
start local 2 7: aload 2
ldc "\\s"
invokevirtual java.lang.String.split:(Ljava/lang/String;)[Ljava/lang/String;
astore 6
start local 6 8: aload 6
iconst_0
aaload
astore 7
start local 7 9: aload 7
dup
astore 8
invokevirtual java.lang.String.hashCode:()I
lookupswitch { // 7
-1464517554: 10
-1401029998: 11
-1186039282: 12
212582156: 13
1395529483: 14
1648673825: 15
1978245499: 16
default: 54
}
StackMap locals: java.lang.String java.lang.String[] java.lang.String int int java.lang.String[] java.lang.String[] java.lang.String java.lang.String
StackMap stack:
10: aload 8
ldc "minKeySize"
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifne 40
goto 54
StackMap locals:
StackMap stack:
11: aload 8
ldc "disallowReferenceUriSchemes"
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifne 29
goto 54
StackMap locals:
StackMap stack:
12: aload 8
ldc "noDuplicateIds"
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifne 46
goto 54
StackMap locals:
StackMap stack:
13: aload 8
ldc "maxReferences"
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifne 25
goto 54
StackMap locals:
StackMap stack:
14: aload 8
ldc "maxTransforms"
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifne 21
goto 54
StackMap locals:
StackMap stack:
15: aload 8
ldc "disallowAlg"
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifne 17
goto 54
StackMap locals:
StackMap stack:
16: aload 8
ldc "noRetrievalMethodLoops"
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifne 50
goto 54
17: StackMap locals:
StackMap stack:
aload 6
arraylength
iconst_2
if_icmpeq 19
18: aload 2
invokestatic org.jcp.xml.dsig.internal.dom.Policy.error:(Ljava/lang/String;)V
19: StackMap locals:
StackMap stack:
getstatic org.jcp.xml.dsig.internal.dom.Policy.disallowedAlgs:Ljava/util/Set;
aload 6
iconst_1
aaload
invokestatic java.net.URI.create:(Ljava/lang/String;)Ljava/net/URI;
invokeinterface java.util.Set.add:(Ljava/lang/Object;)Z
pop
20: goto 55
21: StackMap locals:
StackMap stack:
aload 6
arraylength
iconst_2
if_icmpeq 23
22: aload 2
invokestatic org.jcp.xml.dsig.internal.dom.Policy.error:(Ljava/lang/String;)V
23: StackMap locals:
StackMap stack:
aload 6
iconst_1
aaload
invokestatic sun.security.util.Parsing.parseUnsignedInt:(Ljava/lang/String;)I
putstatic org.jcp.xml.dsig.internal.dom.Policy.maxTrans:I
24: goto 55
25: StackMap locals:
StackMap stack:
aload 6
arraylength
iconst_2
if_icmpeq 27
26: aload 2
invokestatic org.jcp.xml.dsig.internal.dom.Policy.error:(Ljava/lang/String;)V
27: StackMap locals:
StackMap stack:
aload 6
iconst_1
aaload
invokestatic sun.security.util.Parsing.parseUnsignedInt:(Ljava/lang/String;)I
putstatic org.jcp.xml.dsig.internal.dom.Policy.maxRefs:I
28: goto 55
29: StackMap locals:
StackMap stack:
aload 6
arraylength
iconst_1
if_icmpne 31
30: aload 2
invokestatic org.jcp.xml.dsig.internal.dom.Policy.error:(Ljava/lang/String;)V
31: StackMap locals:
StackMap stack:
iconst_1
istore 9
start local 9 32: goto 38
33: StackMap locals: int
StackMap stack:
aload 6
iload 9
aaload
astore 10
start local 10 34: getstatic org.jcp.xml.dsig.internal.dom.Policy.disallowedRefUriSchemes:Ljava/util/Set;
35: aload 10
getstatic java.util.Locale.ROOT:Ljava/util/Locale;
invokevirtual java.lang.String.toLowerCase:(Ljava/util/Locale;)Ljava/lang/String;
36: invokeinterface java.util.Set.add:(Ljava/lang/Object;)Z
pop
end local 10 37: iinc 9 1
StackMap locals:
StackMap stack:
38: iload 9
aload 6
arraylength
if_icmplt 33
end local 9 39: goto 55
40: StackMap locals:
StackMap stack:
aload 6
arraylength
iconst_3
if_icmpeq 42
41: aload 2
invokestatic org.jcp.xml.dsig.internal.dom.Policy.error:(Ljava/lang/String;)V
42: StackMap locals:
StackMap stack:
getstatic org.jcp.xml.dsig.internal.dom.Policy.minKeyMap:Ljava/util/Map;
aload 6
iconst_1
aaload
43: aload 6
iconst_2
aaload
invokestatic sun.security.util.Parsing.parseUnsignedInt:(Ljava/lang/String;)I
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
44: invokeinterface java.util.Map.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
45: goto 55
46: StackMap locals:
StackMap stack:
aload 6
arraylength
iconst_1
if_icmpeq 48
47: aload 2
invokestatic org.jcp.xml.dsig.internal.dom.Policy.error:(Ljava/lang/String;)V
48: StackMap locals:
StackMap stack:
iconst_1
putstatic org.jcp.xml.dsig.internal.dom.Policy.noDuplicateIds:Z
49: goto 55
50: StackMap locals:
StackMap stack:
aload 6
arraylength
iconst_1
if_icmpeq 52
51: aload 2
invokestatic org.jcp.xml.dsig.internal.dom.Policy.error:(Ljava/lang/String;)V
52: StackMap locals:
StackMap stack:
iconst_1
putstatic org.jcp.xml.dsig.internal.dom.Policy.noRMLoops:Z
53: goto 55
54: StackMap locals:
StackMap stack:
aload 2
invokestatic org.jcp.xml.dsig.internal.dom.Policy.error:(Ljava/lang/String;)V
end local 7 end local 6 end local 2 55: StackMap locals: java.lang.String java.lang.String[] top int int java.lang.String[]
StackMap stack:
iinc 3 1
StackMap locals:
StackMap stack:
56: iload 3
iload 4
if_icmplt 6
57: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
2 58 0 prop Ljava/lang/String;
5 58 1 entries [Ljava/lang/String;
7 55 2 entry Ljava/lang/String;
8 55 6 tokens [Ljava/lang/String;
9 55 7 type Ljava/lang/String;
32 39 9 i I
34 37 10 scheme Ljava/lang/String;
public static boolean restrictAlg(java.lang.String);
descriptor: (Ljava/lang/String;)Z
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=3, locals=2, args_size=1
start local 0 0: new java.net.URI
dup
aload 0
invokespecial java.net.URI.<init>:(Ljava/lang/String;)V
astore 1
start local 1 1: getstatic org.jcp.xml.dsig.internal.dom.Policy.disallowedAlgs:Ljava/util/Set;
aload 1
invokeinterface java.util.Set.contains:(Ljava/lang/Object;)Z
2: ireturn
end local 1 3: StackMap locals:
StackMap stack: java.net.URISyntaxException
pop
4: iconst_0
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 alg Ljava/lang/String;
1 3 1 uri Ljava/net/URI;
Exception table:
from to target type
0 2 3 Class java.net.URISyntaxException
MethodParameters:
Name Flags
alg
public static boolean restrictNumTransforms(int);
descriptor: (I)Z
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: iload 0
getstatic org.jcp.xml.dsig.internal.dom.Policy.maxTrans:I
if_icmple 1
iconst_1
ireturn
StackMap locals:
StackMap stack:
1: iconst_0
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 numTrans I
MethodParameters:
Name Flags
numTrans
public static boolean restrictNumReferences(int);
descriptor: (I)Z
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: iload 0
getstatic org.jcp.xml.dsig.internal.dom.Policy.maxRefs:I
if_icmple 1
iconst_1
ireturn
StackMap locals:
StackMap stack:
1: iconst_0
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 numRefs I
MethodParameters:
Name Flags
numRefs
public static boolean restrictReferenceUriScheme(java.lang.String);
descriptor: (Ljava/lang/String;)Z
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=3, locals=2, args_size=1
start local 0 0: aload 0
ifnull 6
1: aload 0
invokestatic java.net.URI.create:(Ljava/lang/String;)Ljava/net/URI;
invokevirtual java.net.URI.getScheme:()Ljava/lang/String;
astore 1
start local 1 2: aload 1
ifnull 6
3: getstatic org.jcp.xml.dsig.internal.dom.Policy.disallowedRefUriSchemes:Ljava/util/Set;
4: aload 1
getstatic java.util.Locale.ROOT:Ljava/util/Locale;
invokevirtual java.lang.String.toLowerCase:(Ljava/util/Locale;)Ljava/lang/String;
5: invokeinterface java.util.Set.contains:(Ljava/lang/Object;)Z
ireturn
end local 1 6: StackMap locals:
StackMap stack:
iconst_0
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 uri Ljava/lang/String;
2 6 1 scheme Ljava/lang/String;
MethodParameters:
Name Flags
uri
public static boolean restrictKey(java.lang.String, int);
descriptor: (Ljava/lang/String;I)Z
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=2, locals=3, args_size=2
start local 0 start local 1 0: getstatic org.jcp.xml.dsig.internal.dom.Policy.minKeyMap:Ljava/util/Map;
aload 0
invokeinterface java.util.Map.get:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast java.lang.Integer
astore 2
start local 2 1: aload 2
ifnonnull 4
2: iload 1
ifge 3
iconst_1
ireturn
StackMap locals: java.lang.Integer
StackMap stack:
3: iconst_0
ireturn
4: StackMap locals:
StackMap stack:
iload 1
aload 2
invokevirtual java.lang.Integer.intValue:()I
if_icmpge 5
iconst_1
ireturn
StackMap locals:
StackMap stack:
5: iconst_0
ireturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 type Ljava/lang/String;
0 6 1 size I
1 6 2 typeMin Ljava/lang/Integer;
MethodParameters:
Name Flags
type
size
public static boolean restrictDuplicateIds();
descriptor: ()Z
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=1, locals=0, args_size=0
0: getstatic org.jcp.xml.dsig.internal.dom.Policy.noDuplicateIds:Z
ireturn
LocalVariableTable:
Start End Slot Name Signature
public static boolean restrictRetrievalMethodLoops();
descriptor: ()Z
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=1, locals=0, args_size=0
0: getstatic org.jcp.xml.dsig.internal.dom.Policy.noRMLoops:Z
ireturn
LocalVariableTable:
Start End Slot Name Signature
public static java.util.Set<java.net.URI> disabledAlgs();
descriptor: ()Ljava/util/Set;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=1, locals=0, args_size=0
0: getstatic org.jcp.xml.dsig.internal.dom.Policy.disallowedAlgs:Ljava/util/Set;
invokestatic java.util.Collections.unmodifiableSet:(Ljava/util/Set;)Ljava/util/Set;
areturn
LocalVariableTable:
Start End Slot Name Signature
Signature: ()Ljava/util/Set<Ljava/net/URI;>;
public static int maxTransforms();
descriptor: ()I
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=1, locals=0, args_size=0
0: getstatic org.jcp.xml.dsig.internal.dom.Policy.maxTrans:I
ireturn
LocalVariableTable:
Start End Slot Name Signature
public static int maxReferences();
descriptor: ()I
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=1, locals=0, args_size=0
0: getstatic org.jcp.xml.dsig.internal.dom.Policy.maxRefs:I
ireturn
LocalVariableTable:
Start End Slot Name Signature
public static java.util.Set<java.lang.String> disabledReferenceUriSchemes();
descriptor: ()Ljava/util/Set;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=1, locals=0, args_size=0
0: getstatic org.jcp.xml.dsig.internal.dom.Policy.disallowedRefUriSchemes:Ljava/util/Set;
invokestatic java.util.Collections.unmodifiableSet:(Ljava/util/Set;)Ljava/util/Set;
areturn
LocalVariableTable:
Start End Slot Name Signature
Signature: ()Ljava/util/Set<Ljava/lang/String;>;
public static int minKeySize(java.lang.String);
descriptor: (Ljava/lang/String;)I
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=2, locals=2, args_size=1
start local 0 0: getstatic org.jcp.xml.dsig.internal.dom.Policy.minKeyMap:Ljava/util/Map;
aload 0
invokeinterface java.util.Map.get:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast java.lang.Integer
astore 1
start local 1 1: aload 1
ifnonnull 3
2: iconst_0
ireturn
3: StackMap locals: java.lang.Integer
StackMap stack:
aload 1
invokevirtual java.lang.Integer.intValue:()I
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 type Ljava/lang/String;
1 4 1 typeMin Ljava/lang/Integer;
MethodParameters:
Name Flags
type
private static void error(java.lang.String);
descriptor: (Ljava/lang/String;)V
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=5, locals=1, args_size=1
start local 0 0: new java.lang.IllegalArgumentException
dup
1: new java.lang.StringBuilder
dup
ldc "Invalid jdk.xml.dsig.secureValidationPolicy entry: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 0
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
2: invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 entry Ljava/lang/String;
MethodParameters:
Name Flags
entry
}
SourceFile: "Policy.java"
NestMembers:
org.jcp.xml.dsig.internal.dom.Policy$1
InnerClasses:
org.jcp.xml.dsig.internal.dom.Policy$1