public final class io.vertx.ext.auth.HashString
minor version: 0
major version: 59
flags: flags: (0x0031) ACC_PUBLIC, ACC_FINAL, ACC_SUPER
this_class: io.vertx.ext.auth.HashString
super_class: java.lang.Object
{
private java.lang.String id;
descriptor: Ljava/lang/String;
flags: (0x0002) ACC_PRIVATE
private java.util.Map<java.lang.String, java.lang.String> params;
descriptor: Ljava/util/Map;
flags: (0x0002) ACC_PRIVATE
Signature: Ljava/util/Map<Ljava/lang/String;Ljava/lang/String;>;
private java.lang.String salt;
descriptor: Ljava/lang/String;
flags: (0x0002) ACC_PRIVATE
private java.lang.String hash;
descriptor: Ljava/lang/String;
flags: (0x0002) ACC_PRIVATE
public void <init>(java.lang.String, java.util.Map<java.lang.String, java.lang.String>, java.lang.String);
descriptor: (Ljava/lang/String;Ljava/util/Map;Ljava/lang/String;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=4, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
aload 1
putfield io.vertx.ext.auth.HashString.id:Ljava/lang/String;
2: aload 0
aload 2
putfield io.vertx.ext.auth.HashString.params:Ljava/util/Map;
3: aload 0
aload 3
putfield io.vertx.ext.auth.HashString.salt:Ljava/lang/String;
4: return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lio/vertx/ext/auth/HashString;
0 5 1 id Ljava/lang/String;
0 5 2 params Ljava/util/Map<Ljava/lang/String;Ljava/lang/String;>;
0 5 3 salt Ljava/lang/String;
Signature: (Ljava/lang/String;Ljava/util/Map<Ljava/lang/String;Ljava/lang/String;>;Ljava/lang/String;)V
MethodParameters:
Name Flags
id
params
salt
public void <init>(java.lang.String);
descriptor: (Ljava/lang/String;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=8, args_size=2
start local 0 start local 1 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 1
invokevirtual java.lang.String.length:()I
iconst_1
if_icmple 6
aload 1
iconst_0
invokevirtual java.lang.String.charAt:(I)C
bipush 36
if_icmpeq 6
2: aload 1
ldc "\\{"
ldc "\\$\\{"
invokevirtual java.lang.String.replaceAll:(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
astore 1
3: aload 1
ldc "\\}"
ldc "\\}\\$"
invokevirtual java.lang.String.replaceAll:(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
astore 1
4: aload 1
invokevirtual java.lang.String.length:()I
iconst_1
if_icmple 6
aload 1
iconst_0
invokevirtual java.lang.String.charAt:(I)C
bipush 36
if_icmpeq 6
5: new java.lang.StringBuilder
dup
ldc "$$"
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 1
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
astore 1
6: StackMap locals: io.vertx.ext.auth.HashString java.lang.String
StackMap stack:
aload 1
ldc "\\$"
invokevirtual java.lang.String.split:(Ljava/lang/String;)[Ljava/lang/String;
astore 2
start local 2 7: aload 2
arraylength
iconst_2
if_icmpge 9
8: new java.lang.IllegalStateException
dup
new java.lang.StringBuilder
dup
ldc "Not enough segments: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 1
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokespecial java.lang.IllegalStateException.<init>:(Ljava/lang/String;)V
athrow
9: StackMap locals: java.lang.String[]
StackMap stack:
aload 2
arraylength
tableswitch { // 2 - 5
2: 10
3: 11
4: 14
5: 18
default: 18
}
10: StackMap locals:
StackMap stack:
aload 0
aload 2
iconst_1
aaload
putfield io.vertx.ext.auth.HashString.id:Ljava/lang/String;
11: StackMap locals:
StackMap stack:
aload 0
aload 2
iconst_1
aaload
putfield io.vertx.ext.auth.HashString.id:Ljava/lang/String;
12: aload 0
aload 2
iconst_2
aaload
putfield io.vertx.ext.auth.HashString.hash:Ljava/lang/String;
13: goto 29
14: StackMap locals:
StackMap stack:
aload 0
aload 2
iconst_1
aaload
putfield io.vertx.ext.auth.HashString.id:Ljava/lang/String;
15: aload 0
aload 2
iconst_2
aaload
putfield io.vertx.ext.auth.HashString.salt:Ljava/lang/String;
16: aload 0
aload 2
iconst_3
aaload
putfield io.vertx.ext.auth.HashString.hash:Ljava/lang/String;
17: goto 29
18: StackMap locals:
StackMap stack:
aload 0
aload 2
iconst_1
aaload
putfield io.vertx.ext.auth.HashString.id:Ljava/lang/String;
19: aload 0
new java.util.HashMap
dup
invokespecial java.util.HashMap.<init>:()V
putfield io.vertx.ext.auth.HashString.params:Ljava/util/Map;
20: aload 2
iconst_2
aaload
ldc ","
invokevirtual java.lang.String.split:(Ljava/lang/String;)[Ljava/lang/String;
dup
astore 6
arraylength
istore 5
iconst_0
istore 4
goto 26
StackMap locals: io.vertx.ext.auth.HashString java.lang.String java.lang.String[] top int int java.lang.String[]
StackMap stack:
21: aload 6
iload 4
aaload
astore 3
start local 3 22: aload 3
bipush 61
invokevirtual java.lang.String.indexOf:(I)I
istore 7
start local 7 23: iload 7
ifle 25
24: aload 0
getfield io.vertx.ext.auth.HashString.params:Ljava/util/Map;
aload 3
iconst_0
iload 7
invokevirtual java.lang.String.substring:(II)Ljava/lang/String;
aload 3
iload 7
iconst_1
iadd
invokevirtual java.lang.String.substring:(I)Ljava/lang/String;
invokeinterface java.util.Map.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
end local 7 end local 3 25: StackMap locals:
StackMap stack:
iinc 4 1
StackMap locals:
StackMap stack:
26: iload 4
iload 5
if_icmplt 21
27: aload 0
aload 2
iconst_3
aaload
putfield io.vertx.ext.auth.HashString.salt:Ljava/lang/String;
28: aload 0
aload 2
iconst_4
aaload
putfield io.vertx.ext.auth.HashString.hash:Ljava/lang/String;
29: StackMap locals: io.vertx.ext.auth.HashString java.lang.String java.lang.String[]
StackMap stack:
return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 30 0 this Lio/vertx/ext/auth/HashString;
0 30 1 encoded Ljava/lang/String;
7 30 2 parts [Ljava/lang/String;
22 25 3 kv Ljava/lang/String;
23 25 7 eq I
MethodParameters:
Name Flags
encoded
public java.lang.String id();
descriptor: ()Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield io.vertx.ext.auth.HashString.id:Ljava/lang/String;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lio/vertx/ext/auth/HashString;
public java.lang.String param(java.lang.String);
descriptor: (Ljava/lang/String;)Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield io.vertx.ext.auth.HashString.params:Ljava/util/Map;
ifnonnull 2
1: aconst_null
areturn
2: StackMap locals:
StackMap stack:
aload 0
getfield io.vertx.ext.auth.HashString.params:Ljava/util/Map;
aload 1
invokeinterface java.util.Map.get:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast java.lang.String
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lio/vertx/ext/auth/HashString;
0 3 1 param Ljava/lang/String;
MethodParameters:
Name Flags
param
public java.util.Map<java.lang.String, java.lang.String> params();
descriptor: ()Ljava/util/Map;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield io.vertx.ext.auth.HashString.params:Ljava/util/Map;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lio/vertx/ext/auth/HashString;
Signature: ()Ljava/util/Map<Ljava/lang/String;Ljava/lang/String;>;
public java.lang.String salt();
descriptor: ()Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield io.vertx.ext.auth.HashString.salt:Ljava/lang/String;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lio/vertx/ext/auth/HashString;
public java.lang.String hash();
descriptor: ()Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield io.vertx.ext.auth.HashString.hash:Ljava/lang/String;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lio/vertx/ext/auth/HashString;
public static java.lang.String encode(io.vertx.ext.auth.HashingAlgorithm, java.util.Map<java.lang.String, java.lang.String>, java.lang.String, java.lang.String);
descriptor: (Lio/vertx/ext/auth/HashingAlgorithm;Ljava/util/Map;Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=3, locals=9, args_size=4
start local 0 start local 1 start local 2 start local 3 0: new java.lang.StringBuilder
dup
invokespecial java.lang.StringBuilder.<init>:()V
astore 4
start local 4 1: aload 0
invokeinterface io.vertx.ext.auth.HashingAlgorithm.needsSeparator:()Z
ifeq 3
2: aload 4
bipush 36
invokevirtual java.lang.StringBuilder.append:(C)Ljava/lang/StringBuilder;
pop
3: StackMap locals: java.lang.StringBuilder
StackMap stack:
aload 4
aload 0
invokeinterface io.vertx.ext.auth.HashingAlgorithm.id:()Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
pop
4: aload 1
ifnull 19
5: aload 0
invokeinterface io.vertx.ext.auth.HashingAlgorithm.needsSeparator:()Z
ifeq 7
6: aload 4
bipush 36
invokevirtual java.lang.StringBuilder.append:(C)Ljava/lang/StringBuilder;
pop
7: StackMap locals:
StackMap stack:
iconst_0
istore 5
start local 5 8: aload 0
invokeinterface io.vertx.ext.auth.HashingAlgorithm.params:()Ljava/util/Set;
invokeinterface java.util.Set.iterator:()Ljava/util/Iterator;
astore 7
goto 18
StackMap locals: io.vertx.ext.auth.HashingAlgorithm java.util.Map java.lang.String java.lang.String java.lang.StringBuilder int top java.util.Iterator
StackMap stack:
9: aload 7
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast java.lang.String
astore 6
start local 6 10: aload 1
aload 6
invokeinterface java.util.Map.get:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast java.lang.String
astore 8
start local 8 11: aload 8
ifnull 18
12: iload 5
ifeq 14
13: aload 4
bipush 44
invokevirtual java.lang.StringBuilder.append:(C)Ljava/lang/StringBuilder;
pop
14: StackMap locals: io.vertx.ext.auth.HashingAlgorithm java.util.Map java.lang.String java.lang.String java.lang.StringBuilder int java.lang.String java.util.Iterator java.lang.String
StackMap stack:
aload 4
aload 6
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
pop
15: aload 4
bipush 61
invokevirtual java.lang.StringBuilder.append:(C)Ljava/lang/StringBuilder;
pop
16: aload 4
aload 1
aload 6
invokeinterface java.util.Map.get:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast java.lang.String
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
pop
17: iconst_1
istore 5
end local 8 end local 6 18: StackMap locals: io.vertx.ext.auth.HashingAlgorithm java.util.Map java.lang.String java.lang.String java.lang.StringBuilder int top java.util.Iterator
StackMap stack:
aload 7
invokeinterface java.util.Iterator.hasNext:()Z
ifne 9
end local 5 19: StackMap locals: io.vertx.ext.auth.HashingAlgorithm java.util.Map java.lang.String java.lang.String java.lang.StringBuilder
StackMap stack:
aload 2
ifnull 23
20: aload 0
invokeinterface io.vertx.ext.auth.HashingAlgorithm.needsSeparator:()Z
ifeq 22
21: aload 4
bipush 36
invokevirtual java.lang.StringBuilder.append:(C)Ljava/lang/StringBuilder;
pop
22: StackMap locals:
StackMap stack:
aload 4
aload 2
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
pop
23: StackMap locals:
StackMap stack:
aload 3
ifnull 27
24: aload 0
invokeinterface io.vertx.ext.auth.HashingAlgorithm.needsSeparator:()Z
ifeq 26
25: aload 4
bipush 36
invokevirtual java.lang.StringBuilder.append:(C)Ljava/lang/StringBuilder;
pop
26: StackMap locals:
StackMap stack:
aload 4
aload 3
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
pop
27: StackMap locals:
StackMap stack:
aload 4
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
areturn
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 28 0 algorithm Lio/vertx/ext/auth/HashingAlgorithm;
0 28 1 params Ljava/util/Map<Ljava/lang/String;Ljava/lang/String;>;
0 28 2 salt Ljava/lang/String;
0 28 3 hash Ljava/lang/String;
1 28 4 sb Ljava/lang/StringBuilder;
8 19 5 notEmpty Z
10 18 6 key Ljava/lang/String;
11 18 8 value Ljava/lang/String;
Signature: (Lio/vertx/ext/auth/HashingAlgorithm;Ljava/util/Map<Ljava/lang/String;Ljava/lang/String;>;Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
MethodParameters:
Name Flags
algorithm
params
salt
hash
public java.lang.String toString();
descriptor: ()Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: new java.lang.StringBuilder
dup
ldc "id="
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 0
invokevirtual io.vertx.ext.auth.HashString.id:()Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
ldc ",params="
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 0
invokevirtual io.vertx.ext.auth.HashString.params:()Ljava/util/Map;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
ldc ",salt="
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 0
invokevirtual io.vertx.ext.auth.HashString.salt:()Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
ldc ",hash="
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 0
invokevirtual io.vertx.ext.auth.HashString.hash:()Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lio/vertx/ext/auth/HashString;
}
SourceFile: "HashString.java"