public class io.vertx.ext.auth.mongo.impl.DefaultHashStrategy implements io.vertx.ext.auth.mongo.HashStrategy
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: io.vertx.ext.auth.mongo.impl.DefaultHashStrategy
super_class: java.lang.Object
{
private static final char[] HEX_CHARS;
descriptor: [C
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private static final int WORK_FACTOR;
descriptor: I
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: 10000
private io.vertx.ext.auth.mongo.HashSaltStyle saltStyle;
descriptor: Lio/vertx/ext/auth/mongo/HashSaltStyle;
flags: (0x0002) ACC_PRIVATE
private java.lang.String externalSalt;
descriptor: Ljava/lang/String;
flags: (0x0002) ACC_PRIVATE
private io.vertx.ext.auth.mongo.HashAlgorithm algorithm;
descriptor: Lio/vertx/ext/auth/mongo/HashAlgorithm;
flags: (0x0002) ACC_PRIVATE
private javax.crypto.SecretKeyFactory skf;
descriptor: Ljavax/crypto/SecretKeyFactory;
flags: (0x0002) ACC_PRIVATE
private java.security.MessageDigest md;
descriptor: Ljava/security/MessageDigest;
flags: (0x0002) ACC_PRIVATE
private static volatile int[] $SWITCH_TABLE$io$vertx$ext$auth$mongo$HashSaltStyle;
descriptor: [I
flags: (0x104a) ACC_PRIVATE, ACC_STATIC, ACC_VOLATILE, ACC_SYNTHETIC
private static volatile int[] $SWITCH_TABLE$io$vertx$ext$auth$mongo$HashAlgorithm;
descriptor: [I
flags: (0x104a) ACC_PRIVATE, ACC_STATIC, ACC_VOLATILE, ACC_SYNTHETIC
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=1, locals=0, args_size=0
0: ldc "0123456789ABCDEF"
invokevirtual java.lang.String.toCharArray:()[C
putstatic io.vertx.ext.auth.mongo.impl.DefaultHashStrategy.HEX_CHARS:[C
1: return
LocalVariableTable:
Start End Slot Name Signature
public void <init>();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
getstatic io.vertx.ext.auth.mongo.HashSaltStyle.COLUMN:Lio/vertx/ext/auth/mongo/HashSaltStyle;
putfield io.vertx.ext.auth.mongo.impl.DefaultHashStrategy.saltStyle:Lio/vertx/ext/auth/mongo/HashSaltStyle;
2: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lio/vertx/ext/auth/mongo/impl/DefaultHashStrategy;
public void <init>(java.lang.String);
descriptor: (Ljava/lang/String;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
getstatic io.vertx.ext.auth.mongo.HashSaltStyle.EXTERNAL:Lio/vertx/ext/auth/mongo/HashSaltStyle;
putfield io.vertx.ext.auth.mongo.impl.DefaultHashStrategy.saltStyle:Lio/vertx/ext/auth/mongo/HashSaltStyle;
2: aload 0
aload 1
putfield io.vertx.ext.auth.mongo.impl.DefaultHashStrategy.externalSalt:Ljava/lang/String;
3: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lio/vertx/ext/auth/mongo/impl/DefaultHashStrategy;
0 4 1 externalSalt Ljava/lang/String;
MethodParameters:
Name Flags
externalSalt
private synchronized void initMessageDigest();
descriptor: ()V
flags: (0x0022) ACC_PRIVATE, ACC_SYNCHRONIZED
Code:
stack=4, locals=2, args_size=1
start local 0 0: aload 0
getfield io.vertx.ext.auth.mongo.impl.DefaultHashStrategy.md:Ljava/security/MessageDigest;
ifnonnull 5
1: aload 0
ldc "SHA-512"
invokestatic java.security.MessageDigest.getInstance:(Ljava/lang/String;)Ljava/security/MessageDigest;
putfield io.vertx.ext.auth.mongo.impl.DefaultHashStrategy.md:Ljava/security/MessageDigest;
2: goto 5
StackMap locals:
StackMap stack: java.security.NoSuchAlgorithmException
3: astore 1
start local 1 4: new java.lang.RuntimeException
dup
ldc "PBKDF2 is not available"
aload 1
invokespecial java.lang.RuntimeException.<init>:(Ljava/lang/String;Ljava/lang/Throwable;)V
athrow
end local 1 5: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lio/vertx/ext/auth/mongo/impl/DefaultHashStrategy;
4 5 1 nsae Ljava/security/NoSuchAlgorithmException;
Exception table:
from to target type
0 2 3 Class java.security.NoSuchAlgorithmException
private synchronized void initKeyFactory();
descriptor: ()V
flags: (0x0022) ACC_PRIVATE, ACC_SYNCHRONIZED
Code:
stack=4, locals=2, args_size=1
start local 0 0: aload 0
getfield io.vertx.ext.auth.mongo.impl.DefaultHashStrategy.skf:Ljavax/crypto/SecretKeyFactory;
ifnonnull 5
1: aload 0
ldc "PBKDF2WithHmacSHA512"
invokestatic javax.crypto.SecretKeyFactory.getInstance:(Ljava/lang/String;)Ljavax/crypto/SecretKeyFactory;
putfield io.vertx.ext.auth.mongo.impl.DefaultHashStrategy.skf:Ljavax/crypto/SecretKeyFactory;
2: goto 5
StackMap locals:
StackMap stack: java.security.NoSuchAlgorithmException
3: astore 1
start local 1 4: new java.lang.RuntimeException
dup
ldc "PBKDF2 is not available"
aload 1
invokespecial java.lang.RuntimeException.<init>:(Ljava/lang/String;Ljava/lang/Throwable;)V
athrow
end local 1 5: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lio/vertx/ext/auth/mongo/impl/DefaultHashStrategy;
4 5 1 nsae Ljava/security/NoSuchAlgorithmException;
Exception table:
from to target type
0 2 3 Class java.security.NoSuchAlgorithmException
public java.lang.String computeHash(java.lang.String, io.vertx.ext.auth.User);
descriptor: (Ljava/lang/String;Lio/vertx/ext/auth/User;)Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=4, args_size=3
start local 0 start local 1 start local 2 0: invokestatic io.vertx.ext.auth.mongo.impl.DefaultHashStrategy.$SWITCH_TABLE$io$vertx$ext$auth$mongo$HashSaltStyle:()[I
aload 0
getfield io.vertx.ext.auth.mongo.impl.DefaultHashStrategy.saltStyle:Lio/vertx/ext/auth/mongo/HashSaltStyle;
invokevirtual io.vertx.ext.auth.mongo.HashSaltStyle.ordinal:()I
iaload
tableswitch { // 1 - 3
1: 1
2: 2
3: 2
default: 4
}
1: StackMap locals:
StackMap stack:
aload 1
areturn
2: StackMap locals:
StackMap stack:
aload 0
aload 2
invokevirtual io.vertx.ext.auth.mongo.impl.DefaultHashStrategy.getSalt:(Lio/vertx/ext/auth/User;)Ljava/lang/String;
astore 3
start local 3 3: aload 0
aload 1
aload 3
invokevirtual io.vertx.ext.auth.mongo.impl.DefaultHashStrategy.computeHash:(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
areturn
end local 3 4: StackMap locals:
StackMap stack:
new java.lang.UnsupportedOperationException
dup
new java.lang.StringBuilder
dup
ldc "Not existing, saltstyle "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 0
getfield io.vertx.ext.auth.mongo.impl.DefaultHashStrategy.saltStyle:Lio/vertx/ext/auth/mongo/HashSaltStyle;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokespecial java.lang.UnsupportedOperationException.<init>:(Ljava/lang/String;)V
athrow
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lio/vertx/ext/auth/mongo/impl/DefaultHashStrategy;
0 5 1 password Ljava/lang/String;
0 5 2 user Lio/vertx/ext/auth/User;
3 4 3 salt Ljava/lang/String;
MethodParameters:
Name Flags
password
user
public java.lang.String getStoredPwd(io.vertx.ext.auth.User);
descriptor: (Lio/vertx/ext/auth/User;)Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=3, args_size=2
start local 0 start local 1 0: aload 1
invokeinterface io.vertx.ext.auth.User.principal:()Lio/vertx/core/json/JsonObject;
ldc "__field-password__"
invokevirtual io.vertx.core.json.JsonObject.getString:(Ljava/lang/String;)Ljava/lang/String;
astore 2
start local 2 1: aload 2
ifnull 2
aload 1
invokeinterface io.vertx.ext.auth.User.principal:()Lio/vertx/core/json/JsonObject;
aload 2
invokevirtual io.vertx.core.json.JsonObject.getString:(Ljava/lang/String;)Ljava/lang/String;
goto 3
StackMap locals: java.lang.String
StackMap stack:
2: aconst_null
StackMap locals:
StackMap stack: java.lang.String
3: areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lio/vertx/ext/auth/mongo/impl/DefaultHashStrategy;
0 4 1 user Lio/vertx/ext/auth/User;
1 4 2 fieldPassword Ljava/lang/String;
MethodParameters:
Name Flags
user
public java.lang.String getSalt(io.vertx.ext.auth.User);
descriptor: (Lio/vertx/ext/auth/User;)Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=3, args_size=2
start local 0 start local 1 0: invokestatic io.vertx.ext.auth.mongo.impl.DefaultHashStrategy.$SWITCH_TABLE$io$vertx$ext$auth$mongo$HashSaltStyle:()[I
aload 0
getfield io.vertx.ext.auth.mongo.impl.DefaultHashStrategy.saltStyle:Lio/vertx/ext/auth/mongo/HashSaltStyle;
invokevirtual io.vertx.ext.auth.mongo.HashSaltStyle.ordinal:()I
iaload
tableswitch { // 1 - 3
1: 1
2: 2
3: 6
default: 7
}
1: StackMap locals:
StackMap stack:
aconst_null
areturn
2: StackMap locals:
StackMap stack:
aload 1
invokeinterface io.vertx.ext.auth.User.principal:()Lio/vertx/core/json/JsonObject;
ldc "__field-salt__"
invokevirtual io.vertx.core.json.JsonObject.getString:(Ljava/lang/String;)Ljava/lang/String;
astore 2
start local 2 3: aload 2
ifnull 4
aload 1
invokeinterface io.vertx.ext.auth.User.principal:()Lio/vertx/core/json/JsonObject;
aload 2
invokevirtual io.vertx.core.json.JsonObject.getString:(Ljava/lang/String;)Ljava/lang/String;
goto 5
StackMap locals: java.lang.String
StackMap stack:
4: aconst_null
StackMap locals:
StackMap stack: java.lang.String
5: areturn
end local 2 6: StackMap locals:
StackMap stack:
aload 0
getfield io.vertx.ext.auth.mongo.impl.DefaultHashStrategy.externalSalt:Ljava/lang/String;
areturn
7: StackMap locals:
StackMap stack:
new java.lang.UnsupportedOperationException
dup
new java.lang.StringBuilder
dup
ldc "Not existing, saltstyle "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 0
getfield io.vertx.ext.auth.mongo.impl.DefaultHashStrategy.saltStyle:Lio/vertx/ext/auth/mongo/HashSaltStyle;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokespecial java.lang.UnsupportedOperationException.<init>:(Ljava/lang/String;)V
athrow
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 this Lio/vertx/ext/auth/mongo/impl/DefaultHashStrategy;
0 8 1 user Lio/vertx/ext/auth/User;
3 6 2 fieldSalt Ljava/lang/String;
MethodParameters:
Name Flags
user
public void setSaltStyle(io.vertx.ext.auth.mongo.HashSaltStyle);
descriptor: (Lio/vertx/ext/auth/mongo/HashSaltStyle;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
putfield io.vertx.ext.auth.mongo.impl.DefaultHashStrategy.saltStyle:Lio/vertx/ext/auth/mongo/HashSaltStyle;
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lio/vertx/ext/auth/mongo/impl/DefaultHashStrategy;
0 2 1 saltStyle Lio/vertx/ext/auth/mongo/HashSaltStyle;
MethodParameters:
Name Flags
saltStyle
public io.vertx.ext.auth.mongo.HashSaltStyle getSaltStyle();
descriptor: ()Lio/vertx/ext/auth/mongo/HashSaltStyle;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield io.vertx.ext.auth.mongo.impl.DefaultHashStrategy.saltStyle:Lio/vertx/ext/auth/mongo/HashSaltStyle;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lio/vertx/ext/auth/mongo/impl/DefaultHashStrategy;
public void setAlgorithm(io.vertx.ext.auth.mongo.HashAlgorithm);
descriptor: (Lio/vertx/ext/auth/mongo/HashAlgorithm;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=2, args_size=2
start local 0 start local 1 0: invokestatic io.vertx.ext.auth.mongo.impl.DefaultHashStrategy.$SWITCH_TABLE$io$vertx$ext$auth$mongo$HashAlgorithm:()[I
aload 1
invokevirtual io.vertx.ext.auth.mongo.HashAlgorithm.ordinal:()I
iaload
tableswitch { // 1 - 2
1: 1
2: 4
default: 7
}
1: StackMap locals:
StackMap stack:
aload 0
invokevirtual io.vertx.ext.auth.mongo.impl.DefaultHashStrategy.initMessageDigest:()V
2: aload 0
aload 1
putfield io.vertx.ext.auth.mongo.impl.DefaultHashStrategy.algorithm:Lio/vertx/ext/auth/mongo/HashAlgorithm;
3: goto 8
4: StackMap locals:
StackMap stack:
aload 0
invokevirtual io.vertx.ext.auth.mongo.impl.DefaultHashStrategy.initKeyFactory:()V
5: aload 0
aload 1
putfield io.vertx.ext.auth.mongo.impl.DefaultHashStrategy.algorithm:Lio/vertx/ext/auth/mongo/HashAlgorithm;
6: goto 8
7: StackMap locals:
StackMap stack:
new io.vertx.core.VertxException
dup
new java.lang.StringBuilder
dup
ldc "Algorithm "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 1
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
ldc " not supported"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokespecial io.vertx.core.VertxException.<init>:(Ljava/lang/String;)V
athrow
8: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 this Lio/vertx/ext/auth/mongo/impl/DefaultHashStrategy;
0 9 1 algorithm Lio/vertx/ext/auth/mongo/HashAlgorithm;
MethodParameters:
Name Flags
algorithm
private java.lang.String computeHash(java.lang.String, java.lang.String);
descriptor: (Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
flags: (0x0002) ACC_PRIVATE
Code:
stack=6, locals=5, args_size=3
start local 0 start local 1 start local 2 0: aload 0
getfield io.vertx.ext.auth.mongo.impl.DefaultHashStrategy.algorithm:Lio/vertx/ext/auth/mongo/HashAlgorithm;
ifnonnull 2
1: aload 0
getstatic io.vertx.ext.auth.mongo.HashAlgorithm.SHA512:Lio/vertx/ext/auth/mongo/HashAlgorithm;
invokevirtual io.vertx.ext.auth.mongo.impl.DefaultHashStrategy.setAlgorithm:(Lio/vertx/ext/auth/mongo/HashAlgorithm;)V
2: StackMap locals:
StackMap stack:
invokestatic io.vertx.ext.auth.mongo.impl.DefaultHashStrategy.$SWITCH_TABLE$io$vertx$ext$auth$mongo$HashAlgorithm:()[I
aload 0
getfield io.vertx.ext.auth.mongo.impl.DefaultHashStrategy.algorithm:Lio/vertx/ext/auth/mongo/HashAlgorithm;
invokevirtual io.vertx.ext.auth.mongo.HashAlgorithm.ordinal:()I
iaload
tableswitch { // 1 - 2
1: 3
2: 8
default: 17
}
3: StackMap locals:
StackMap stack:
new java.lang.StringBuilder
dup
aload 2
ifnonnull 4
ldc ""
goto 5
StackMap locals: io.vertx.ext.auth.mongo.impl.DefaultHashStrategy java.lang.String java.lang.String
StackMap stack: new 3 new 3
4: aload 2
StackMap locals: io.vertx.ext.auth.mongo.impl.DefaultHashStrategy java.lang.String java.lang.String
StackMap stack: new 3 new 3 java.lang.String
5: invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
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 3
start local 3 6: aload 0
getfield io.vertx.ext.auth.mongo.impl.DefaultHashStrategy.md:Ljava/security/MessageDigest;
aload 3
getstatic java.nio.charset.StandardCharsets.UTF_8:Ljava/nio/charset/Charset;
invokevirtual java.lang.String.getBytes:(Ljava/nio/charset/Charset;)[B
invokevirtual java.security.MessageDigest.digest:([B)[B
invokestatic io.vertx.ext.auth.mongo.impl.DefaultHashStrategy.bytesToHex:([B)Ljava/lang/String;
7: areturn
end local 3 8: StackMap locals:
StackMap stack:
new javax.crypto.spec.PBEKeySpec
dup
9: aload 1
invokevirtual java.lang.String.toCharArray:()[C
10: aload 2
ifnonnull 11
iconst_0
newarray 8
goto 12
StackMap locals: io.vertx.ext.auth.mongo.impl.DefaultHashStrategy java.lang.String java.lang.String
StackMap stack: new 8 new 8 char[]
11: aload 2
getstatic java.nio.charset.StandardCharsets.UTF_8:Ljava/nio/charset/Charset;
invokevirtual java.lang.String.getBytes:(Ljava/nio/charset/Charset;)[B
12: StackMap locals: io.vertx.ext.auth.mongo.impl.DefaultHashStrategy java.lang.String java.lang.String
StackMap stack: new 8 new 8 char[] byte[]
sipush 10000
13: sipush 512
14: invokespecial javax.crypto.spec.PBEKeySpec.<init>:([C[BII)V
astore 4
start local 4 15: aload 0
getfield io.vertx.ext.auth.mongo.impl.DefaultHashStrategy.skf:Ljavax/crypto/SecretKeyFactory;
aload 4
invokevirtual javax.crypto.SecretKeyFactory.generateSecret:(Ljava/security/spec/KeySpec;)Ljavax/crypto/SecretKey;
invokeinterface javax.crypto.SecretKey.getEncoded:()[B
invokestatic io.vertx.ext.auth.mongo.impl.DefaultHashStrategy.bytesToHex:([B)Ljava/lang/String;
16: areturn
end local 4 17: StackMap locals:
StackMap stack:
new io.vertx.core.VertxException
dup
new java.lang.StringBuilder
dup
ldc "Can't compute hash for algorithm: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 0
getfield io.vertx.ext.auth.mongo.impl.DefaultHashStrategy.algorithm:Lio/vertx/ext/auth/mongo/HashAlgorithm;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokespecial io.vertx.core.VertxException.<init>:(Ljava/lang/String;)V
athrow
18: StackMap locals:
StackMap stack: java.security.spec.InvalidKeySpecException
astore 3
start local 3 19: new io.vertx.core.VertxException
dup
aload 3
invokespecial io.vertx.core.VertxException.<init>:(Ljava/lang/Throwable;)V
athrow
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/mongo/impl/DefaultHashStrategy;
0 20 1 password Ljava/lang/String;
0 20 2 salt Ljava/lang/String;
6 8 3 concat Ljava/lang/String;
15 17 4 spec Ljavax/crypto/spec/PBEKeySpec;
19 20 3 e Ljava/security/spec/InvalidKeySpecException;
Exception table:
from to target type
2 7 18 Class java.security.spec.InvalidKeySpecException
8 16 18 Class java.security.spec.InvalidKeySpecException
17 18 18 Class java.security.spec.InvalidKeySpecException
MethodParameters:
Name Flags
password
salt
public static java.lang.String generateSalt();
descriptor: ()Ljava/lang/String;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=2, locals=2, args_size=0
0: new java.security.SecureRandom
dup
invokespecial java.security.SecureRandom.<init>:()V
astore 0
start local 0 1: bipush 32
newarray 8
astore 1
start local 1 2: aload 0
aload 1
invokevirtual java.util.Random.nextBytes:([B)V
3: aload 1
invokestatic io.vertx.ext.auth.mongo.impl.DefaultHashStrategy.bytesToHex:([B)Ljava/lang/String;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
1 4 0 r Ljava/util/Random;
2 4 1 salt [B
private static java.lang.String bytesToHex(byte[]);
descriptor: ([B)Ljava/lang/String;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=5, locals=4, args_size=1
start local 0 0: aload 0
arraylength
iconst_2
imul
newarray 5
astore 1
start local 1 1: iconst_0
istore 2
start local 2 2: goto 7
3: StackMap locals: char[] int
StackMap stack:
sipush 255
aload 0
iload 2
baload
iand
istore 3
start local 3 4: aload 1
iload 2
iconst_2
imul
getstatic io.vertx.ext.auth.mongo.impl.DefaultHashStrategy.HEX_CHARS:[C
iload 3
iconst_4
iushr
caload
castore
5: aload 1
iconst_1
iload 2
iconst_2
imul
iadd
getstatic io.vertx.ext.auth.mongo.impl.DefaultHashStrategy.HEX_CHARS:[C
bipush 15
iload 3
iand
caload
castore
end local 3 6: iinc 2 1
StackMap locals:
StackMap stack:
7: iload 2
aload 0
arraylength
if_icmplt 3
end local 2 8: new java.lang.String
dup
aload 1
invokespecial java.lang.String.<init>:([C)V
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 bytes [B
1 9 1 chars [C
2 8 2 i I
4 6 3 x I
MethodParameters:
Name Flags
bytes
public void setExternalSalt(java.lang.String);
descriptor: (Ljava/lang/String;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
putfield io.vertx.ext.auth.mongo.impl.DefaultHashStrategy.externalSalt:Ljava/lang/String;
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lio/vertx/ext/auth/mongo/impl/DefaultHashStrategy;
0 2 1 externalSalt Ljava/lang/String;
MethodParameters:
Name Flags
externalSalt
static int[] $SWITCH_TABLE$io$vertx$ext$auth$mongo$HashSaltStyle();
descriptor: ()[I
flags: (0x1008) ACC_STATIC, ACC_SYNTHETIC
Code:
stack=3, locals=1, args_size=0
0: getstatic io.vertx.ext.auth.mongo.impl.DefaultHashStrategy.$SWITCH_TABLE$io$vertx$ext$auth$mongo$HashSaltStyle:[I
dup
ifnull 1
areturn
StackMap locals:
StackMap stack: int[]
1: pop
invokestatic io.vertx.ext.auth.mongo.HashSaltStyle.values:()[Lio/vertx/ext/auth/mongo/HashSaltStyle;
arraylength
newarray 10
astore 0
2: aload 0
getstatic io.vertx.ext.auth.mongo.HashSaltStyle.COLUMN:Lio/vertx/ext/auth/mongo/HashSaltStyle;
invokevirtual io.vertx.ext.auth.mongo.HashSaltStyle.ordinal:()I
iconst_2
iastore
3: goto 5
StackMap locals: int[]
StackMap stack: java.lang.NoSuchFieldError
4: pop
StackMap locals:
StackMap stack:
5: aload 0
getstatic io.vertx.ext.auth.mongo.HashSaltStyle.EXTERNAL:Lio/vertx/ext/auth/mongo/HashSaltStyle;
invokevirtual io.vertx.ext.auth.mongo.HashSaltStyle.ordinal:()I
iconst_3
iastore
6: goto 8
StackMap locals:
StackMap stack: java.lang.NoSuchFieldError
7: pop
StackMap locals:
StackMap stack:
8: aload 0
getstatic io.vertx.ext.auth.mongo.HashSaltStyle.NO_SALT:Lio/vertx/ext/auth/mongo/HashSaltStyle;
invokevirtual io.vertx.ext.auth.mongo.HashSaltStyle.ordinal:()I
iconst_1
iastore
9: goto 11
StackMap locals:
StackMap stack: java.lang.NoSuchFieldError
10: pop
StackMap locals:
StackMap stack:
11: aload 0
dup
putstatic io.vertx.ext.auth.mongo.impl.DefaultHashStrategy.$SWITCH_TABLE$io$vertx$ext$auth$mongo$HashSaltStyle:[I
areturn
LocalVariableTable:
Start End Slot Name Signature
Exception table:
from to target type
2 3 4 Class java.lang.NoSuchFieldError
5 6 7 Class java.lang.NoSuchFieldError
8 9 10 Class java.lang.NoSuchFieldError
static int[] $SWITCH_TABLE$io$vertx$ext$auth$mongo$HashAlgorithm();
descriptor: ()[I
flags: (0x1008) ACC_STATIC, ACC_SYNTHETIC
Code:
stack=3, locals=1, args_size=0
0: getstatic io.vertx.ext.auth.mongo.impl.DefaultHashStrategy.$SWITCH_TABLE$io$vertx$ext$auth$mongo$HashAlgorithm:[I
dup
ifnull 1
areturn
StackMap locals:
StackMap stack: int[]
1: pop
invokestatic io.vertx.ext.auth.mongo.HashAlgorithm.values:()[Lio/vertx/ext/auth/mongo/HashAlgorithm;
arraylength
newarray 10
astore 0
2: aload 0
getstatic io.vertx.ext.auth.mongo.HashAlgorithm.PBKDF2:Lio/vertx/ext/auth/mongo/HashAlgorithm;
invokevirtual io.vertx.ext.auth.mongo.HashAlgorithm.ordinal:()I
iconst_2
iastore
3: goto 5
StackMap locals: int[]
StackMap stack: java.lang.NoSuchFieldError
4: pop
StackMap locals:
StackMap stack:
5: aload 0
getstatic io.vertx.ext.auth.mongo.HashAlgorithm.SHA512:Lio/vertx/ext/auth/mongo/HashAlgorithm;
invokevirtual io.vertx.ext.auth.mongo.HashAlgorithm.ordinal:()I
iconst_1
iastore
6: goto 8
StackMap locals:
StackMap stack: java.lang.NoSuchFieldError
7: pop
StackMap locals:
StackMap stack:
8: aload 0
dup
putstatic io.vertx.ext.auth.mongo.impl.DefaultHashStrategy.$SWITCH_TABLE$io$vertx$ext$auth$mongo$HashAlgorithm:[I
areturn
LocalVariableTable:
Start End Slot Name Signature
Exception table:
from to target type
2 3 4 Class java.lang.NoSuchFieldError
5 6 7 Class java.lang.NoSuchFieldError
}
SourceFile: "DefaultHashStrategy.java"
RuntimeVisibleAnnotations:
java.lang.Deprecated()