public class io.vertx.ext.auth.impl.HashingStrategyImpl implements io.vertx.ext.auth.HashingStrategy
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: io.vertx.ext.auth.impl.HashingStrategyImpl
super_class: java.lang.Object
{
private static final io.vertx.core.logging.Logger LOG;
descriptor: Lio/vertx/core/logging/Logger;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private final java.util.Map<java.lang.String, io.vertx.ext.auth.HashingAlgorithm> algorithms;
descriptor: Ljava/util/Map;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
Signature: Ljava/util/Map<Ljava/lang/String;Lio/vertx/ext/auth/HashingAlgorithm;>;
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=1, locals=0, args_size=0
0: ldc Lio/vertx/ext/auth/impl/HashingStrategyImpl;
invokestatic io.vertx.core.logging.LoggerFactory.getLogger:(Ljava/lang/Class;)Lio/vertx/core/logging/Logger;
putstatic io.vertx.ext.auth.impl.HashingStrategyImpl.LOG:Lio/vertx/core/logging/Logger;
return
LocalVariableTable:
Start End Slot Name Signature
public void <init>();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
new java.util.HashMap
dup
invokespecial java.util.HashMap.<init>:()V
putfield io.vertx.ext.auth.impl.HashingStrategyImpl.algorithms:Ljava/util/Map;
2: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lio/vertx/ext/auth/impl/HashingStrategyImpl;
public void add(io.vertx.ext.auth.HashingAlgorithm);
descriptor: (Lio/vertx/ext/auth/HashingAlgorithm;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield io.vertx.ext.auth.impl.HashingStrategyImpl.algorithms:Ljava/util/Map;
aload 1
invokeinterface io.vertx.ext.auth.HashingAlgorithm.id:()Ljava/lang/String;
aload 1
invokeinterface java.util.Map.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lio/vertx/ext/auth/impl/HashingStrategyImpl;
0 2 1 algorithm Lio/vertx/ext/auth/HashingAlgorithm;
MethodParameters:
Name Flags
algorithm
public java.lang.String hash(java.lang.String, java.util.Map<java.lang.String, java.lang.String>, java.lang.String, java.lang.String);
descriptor: (Ljava/lang/String;Ljava/util/Map;Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=6, locals=7, args_size=5
start local 0 start local 1 start local 2 start local 3 start local 4 0: aload 0
getfield io.vertx.ext.auth.impl.HashingStrategyImpl.algorithms:Ljava/util/Map;
aload 1
invokeinterface java.util.Map.get:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast io.vertx.ext.auth.HashingAlgorithm
astore 5
start local 5 1: aload 5
ifnonnull 3
2: new java.lang.RuntimeException
dup
new java.lang.StringBuilder
dup
aload 1
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
ldc " algorithm is not available."
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokespecial java.lang.RuntimeException.<init>:(Ljava/lang/String;)V
athrow
3: StackMap locals: io.vertx.ext.auth.HashingAlgorithm
StackMap stack:
aload 5
new io.vertx.ext.auth.HashString
dup
aload 1
aload 2
aload 3
invokespecial io.vertx.ext.auth.HashString.<init>:(Ljava/lang/String;Ljava/util/Map;Ljava/lang/String;)V
aload 4
invokeinterface io.vertx.ext.auth.HashingAlgorithm.hash:(Lio/vertx/ext/auth/HashString;Ljava/lang/String;)Ljava/lang/String;
astore 6
start local 6 4: aload 5
aload 2
aload 3
aload 6
invokestatic io.vertx.ext.auth.HashString.encode:(Lio/vertx/ext/auth/HashingAlgorithm;Ljava/util/Map;Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
areturn
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 5 0 this Lio/vertx/ext/auth/impl/HashingStrategyImpl;
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;
0 5 4 password Ljava/lang/String;
1 5 5 algorithm Lio/vertx/ext/auth/HashingAlgorithm;
4 5 6 hash Ljava/lang/String;
Signature: (Ljava/lang/String;Ljava/util/Map<Ljava/lang/String;Ljava/lang/String;>;Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
MethodParameters:
Name Flags
id
params
salt
password
public boolean verify(java.lang.String, java.lang.String);
descriptor: (Ljava/lang/String;Ljava/lang/String;)Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=9, args_size=3
start local 0 start local 1 start local 2 0: aload 1
ifnull 1
aload 2
ifnonnull 2
1: StackMap locals:
StackMap stack:
iconst_0
ireturn
2: StackMap locals:
StackMap stack:
new io.vertx.ext.auth.HashString
dup
aload 1
invokespecial io.vertx.ext.auth.HashString.<init>:(Ljava/lang/String;)V
astore 3
start local 3 3: aload 0
getfield io.vertx.ext.auth.impl.HashingStrategyImpl.algorithms:Ljava/util/Map;
aload 3
invokevirtual io.vertx.ext.auth.HashString.id:()Ljava/lang/String;
invokeinterface java.util.Map.get:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast io.vertx.ext.auth.HashingAlgorithm
astore 4
start local 4 4: aload 4
ifnonnull 8
5: getstatic io.vertx.ext.auth.impl.HashingStrategyImpl.LOG:Lio/vertx/core/logging/Logger;
invokevirtual io.vertx.core.logging.Logger.isDebugEnabled:()Z
ifeq 7
6: getstatic io.vertx.ext.auth.impl.HashingStrategyImpl.LOG:Lio/vertx/core/logging/Logger;
new java.lang.StringBuilder
dup
ldc "No hash strategy for algorithm: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 3
invokevirtual io.vertx.ext.auth.HashString.id:()Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokevirtual io.vertx.core.logging.Logger.debug:(Ljava/lang/Object;)V
7: StackMap locals: io.vertx.ext.auth.HashString io.vertx.ext.auth.HashingAlgorithm
StackMap stack:
iconst_0
ireturn
8: StackMap locals:
StackMap stack:
aload 3
invokevirtual io.vertx.ext.auth.HashString.hash:()Ljava/lang/String;
ifnonnull 10
9: iconst_0
ireturn
10: StackMap locals:
StackMap stack:
aload 3
invokevirtual io.vertx.ext.auth.HashString.hash:()Ljava/lang/String;
astore 5
start local 5 11: aload 4
aload 3
aload 2
invokeinterface io.vertx.ext.auth.HashingAlgorithm.hash:(Lio/vertx/ext/auth/HashString;Ljava/lang/String;)Ljava/lang/String;
astore 6
start local 6 12: aload 5
invokevirtual java.lang.String.length:()I
aload 6
invokevirtual java.lang.String.length:()I
ixor
istore 7
start local 7 13: iconst_0
istore 8
start local 8 14: goto 17
15: StackMap locals: io.vertx.ext.auth.impl.HashingStrategyImpl java.lang.String java.lang.String io.vertx.ext.auth.HashString io.vertx.ext.auth.HashingAlgorithm java.lang.String java.lang.String int int
StackMap stack:
iload 7
aload 5
iload 8
invokevirtual java.lang.String.charAt:(I)C
aload 6
iload 8
invokevirtual java.lang.String.charAt:(I)C
ixor
ior
istore 7
16: iinc 8 1
StackMap locals:
StackMap stack:
17: iload 8
aload 5
invokevirtual java.lang.String.length:()I
if_icmpge 18
iload 8
aload 6
invokevirtual java.lang.String.length:()I
if_icmplt 15
end local 8 18: StackMap locals:
StackMap stack:
iload 7
ifne 19
iconst_1
ireturn
StackMap locals:
StackMap stack:
19: iconst_0
ireturn
end local 7 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 20 0 this Lio/vertx/ext/auth/impl/HashingStrategyImpl;
0 20 1 hash Ljava/lang/String;
0 20 2 password Ljava/lang/String;
3 20 3 hashString Lio/vertx/ext/auth/HashString;
4 20 4 algorithm Lio/vertx/ext/auth/HashingAlgorithm;
11 20 5 hasha Ljava/lang/String;
12 20 6 hashb Ljava/lang/String;
13 20 7 diff I
14 18 8 i I
MethodParameters:
Name Flags
hash
password
public io.vertx.ext.auth.HashingAlgorithm get(java.lang.String);
descriptor: (Ljava/lang/String;)Lio/vertx/ext/auth/HashingAlgorithm;
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.impl.HashingStrategyImpl.algorithms:Ljava/util/Map;
aload 1
invokeinterface java.util.Map.get:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast io.vertx.ext.auth.HashingAlgorithm
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lio/vertx/ext/auth/impl/HashingStrategyImpl;
0 1 1 id Ljava/lang/String;
MethodParameters:
Name Flags
id
public io.vertx.ext.auth.HashingStrategy put(java.lang.String, io.vertx.ext.auth.HashingAlgorithm);
descriptor: (Ljava/lang/String;Lio/vertx/ext/auth/HashingAlgorithm;)Lio/vertx/ext/auth/HashingStrategy;
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
getfield io.vertx.ext.auth.impl.HashingStrategyImpl.algorithms:Ljava/util/Map;
aload 1
invokeinterface java.util.Map.containsKey:(Ljava/lang/Object;)Z
ifeq 2
1: getstatic io.vertx.ext.auth.impl.HashingStrategyImpl.LOG:Lio/vertx/core/logging/Logger;
new java.lang.StringBuilder
dup
ldc "Existing algorithm: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 1
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
ldc " will be replaced!"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokevirtual io.vertx.core.logging.Logger.warn:(Ljava/lang/Object;)V
2: StackMap locals:
StackMap stack:
aload 0
getfield io.vertx.ext.auth.impl.HashingStrategyImpl.algorithms:Ljava/util/Map;
aload 1
aload 2
invokeinterface java.util.Map.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
3: aload 0
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lio/vertx/ext/auth/impl/HashingStrategyImpl;
0 4 1 id Ljava/lang/String;
0 4 2 algorithm Lio/vertx/ext/auth/HashingAlgorithm;
MethodParameters:
Name Flags
id
algorithm
}
SourceFile: "HashingStrategyImpl.java"