public class org.eclipse.jetty.util.security.Password extends org.eclipse.jetty.util.security.Credential
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: org.eclipse.jetty.util.security.Password
super_class: org.eclipse.jetty.util.security.Credential
{
private static final org.slf4j.Logger LOG;
descriptor: Lorg/slf4j/Logger;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private static final long serialVersionUID;
descriptor: J
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: 5062906681431569445
public static final java.lang.String __OBFUSCATE;
descriptor: Ljava/lang/String;
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
ConstantValue: "OBF:"
private java.lang.String _pw;
descriptor: Ljava/lang/String;
flags: (0x0002) ACC_PRIVATE
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=1, locals=0, args_size=0
0: ldc Lorg/eclipse/jetty/util/security/Password;
invokestatic org.slf4j.LoggerFactory.getLogger:(Ljava/lang/Class;)Lorg/slf4j/Logger;
putstatic org.eclipse.jetty.util.security.Password.LOG:Lorg/slf4j/Logger;
1: return
LocalVariableTable:
Start End Slot Name Signature
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 org.eclipse.jetty.util.security.Credential.<init>:()V
1: aload 0
aload 1
putfield org.eclipse.jetty.util.security.Password._pw:Ljava/lang/String;
2: goto 4
3: StackMap locals: org.eclipse.jetty.util.security.Password java.lang.String
StackMap stack:
aload 0
aload 0
getfield org.eclipse.jetty.util.security.Password._pw:Ljava/lang/String;
invokestatic org.eclipse.jetty.util.security.Password.deobfuscate:(Ljava/lang/String;)Ljava/lang/String;
putfield org.eclipse.jetty.util.security.Password._pw:Ljava/lang/String;
4: StackMap locals:
StackMap stack:
aload 0
getfield org.eclipse.jetty.util.security.Password._pw:Ljava/lang/String;
ifnull 5
aload 0
getfield org.eclipse.jetty.util.security.Password._pw:Ljava/lang/String;
ldc "OBF:"
invokevirtual java.lang.String.startsWith:(Ljava/lang/String;)Z
ifne 3
5: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lorg/eclipse/jetty/util/security/Password;
0 6 1 password Ljava/lang/String;
MethodParameters:
Name Flags
password
public java.lang.String toString();
descriptor: ()Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.eclipse.jetty.util.security.Password._pw:Ljava/lang/String;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/eclipse/jetty/util/security/Password;
public java.lang.String toStarString();
descriptor: ()Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: ldc "*****************************************************"
iconst_0
aload 0
getfield org.eclipse.jetty.util.security.Password._pw:Ljava/lang/String;
invokevirtual java.lang.String.length:()I
invokevirtual java.lang.String.substring:(II)Ljava/lang/String;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/eclipse/jetty/util/security/Password;
public boolean check(java.lang.Object);
descriptor: (Ljava/lang/Object;)Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
if_acmpne 2
1: iconst_1
ireturn
2: StackMap locals:
StackMap stack:
aload 1
instanceof org.eclipse.jetty.util.security.Password
ifeq 4
3: aload 1
aload 0
getfield org.eclipse.jetty.util.security.Password._pw:Ljava/lang/String;
invokevirtual java.lang.Object.equals:(Ljava/lang/Object;)Z
ireturn
4: StackMap locals:
StackMap stack:
aload 1
instanceof java.lang.String
ifeq 6
5: aload 0
getfield org.eclipse.jetty.util.security.Password._pw:Ljava/lang/String;
aload 1
checkcast java.lang.String
invokestatic org.eclipse.jetty.util.security.Password.stringEquals:(Ljava/lang/String;Ljava/lang/String;)Z
ireturn
6: StackMap locals:
StackMap stack:
aload 1
instanceof char[]
ifeq 8
7: aload 0
getfield org.eclipse.jetty.util.security.Password._pw:Ljava/lang/String;
new java.lang.String
dup
aload 1
checkcast char[]
invokespecial java.lang.String.<init>:([C)V
invokestatic org.eclipse.jetty.util.security.Password.stringEquals:(Ljava/lang/String;Ljava/lang/String;)Z
ireturn
8: StackMap locals:
StackMap stack:
aload 1
instanceof org.eclipse.jetty.util.security.Credential
ifeq 10
9: aload 1
checkcast org.eclipse.jetty.util.security.Credential
aload 0
getfield org.eclipse.jetty.util.security.Password._pw:Ljava/lang/String;
invokevirtual org.eclipse.jetty.util.security.Credential.check:(Ljava/lang/Object;)Z
ireturn
10: StackMap locals:
StackMap stack:
iconst_0
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 11 0 this Lorg/eclipse/jetty/util/security/Password;
0 11 1 credentials Ljava/lang/Object;
MethodParameters:
Name Flags
credentials
public boolean equals(java.lang.Object);
descriptor: (Ljava/lang/Object;)Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
if_acmpne 2
1: iconst_1
ireturn
2: StackMap locals:
StackMap stack:
aload 1
ifnonnull 4
3: iconst_0
ireturn
4: StackMap locals:
StackMap stack:
aload 1
instanceof org.eclipse.jetty.util.security.Password
ifeq 6
5: aload 0
getfield org.eclipse.jetty.util.security.Password._pw:Ljava/lang/String;
aload 1
checkcast org.eclipse.jetty.util.security.Password
getfield org.eclipse.jetty.util.security.Password._pw:Ljava/lang/String;
invokestatic org.eclipse.jetty.util.security.Password.stringEquals:(Ljava/lang/String;Ljava/lang/String;)Z
ireturn
6: StackMap locals:
StackMap stack:
aload 1
instanceof java.lang.String
ifeq 8
7: aload 0
getfield org.eclipse.jetty.util.security.Password._pw:Ljava/lang/String;
aload 1
checkcast java.lang.String
invokestatic org.eclipse.jetty.util.security.Password.stringEquals:(Ljava/lang/String;Ljava/lang/String;)Z
ireturn
8: StackMap locals:
StackMap stack:
iconst_0
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 this Lorg/eclipse/jetty/util/security/Password;
0 9 1 o Ljava/lang/Object;
MethodParameters:
Name Flags
o
public int hashCode();
descriptor: ()I
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.eclipse.jetty.util.security.Password._pw:Ljava/lang/String;
ifnonnull 1
aload 0
invokespecial java.lang.Object.hashCode:()I
goto 2
StackMap locals:
StackMap stack:
1: aload 0
getfield org.eclipse.jetty.util.security.Password._pw:Ljava/lang/String;
invokevirtual java.lang.String.hashCode:()I
StackMap locals:
StackMap stack: int
2: ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/eclipse/jetty/util/security/Password;
public static java.lang.String obfuscate(java.lang.String);
descriptor: (Ljava/lang/String;)Ljava/lang/String;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=5, locals=12, args_size=1
start local 0 0: new java.lang.StringBuilder
dup
invokespecial java.lang.StringBuilder.<init>:()V
astore 1
start local 1 1: aload 0
getstatic java.nio.charset.StandardCharsets.UTF_8:Ljava/nio/charset/Charset;
invokevirtual java.lang.String.getBytes:(Ljava/nio/charset/Charset;)[B
astore 2
start local 2 2: aload 1
ldc "OBF:"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
pop
3: iconst_0
istore 3
start local 3 4: goto 24
5: StackMap locals: java.lang.StringBuilder byte[] int
StackMap stack:
aload 2
iload 3
baload
istore 4
start local 4 6: aload 2
aload 2
arraylength
iload 3
iconst_1
iadd
isub
baload
istore 5
start local 5 7: iload 4
iflt 8
iload 5
ifge 13
8: StackMap locals: int int
StackMap stack:
sipush 255
iload 4
iand
sipush 256
imul
sipush 255
iload 5
iand
iadd
istore 6
start local 6 9: iload 6
bipush 36
invokestatic java.lang.Integer.toString:(II)Ljava/lang/String;
getstatic java.util.Locale.ENGLISH:Ljava/util/Locale;
invokevirtual java.lang.String.toLowerCase:(Ljava/util/Locale;)Ljava/lang/String;
astore 7
start local 7 10: aload 1
ldc "U0000"
iconst_0
iconst_5
aload 7
invokevirtual java.lang.String.length:()I
isub
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/CharSequence;II)Ljava/lang/StringBuilder;
pop
11: aload 1
aload 7
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
pop
end local 7 end local 6 12: goto 23
13: StackMap locals:
StackMap stack:
bipush 127
iload 4
iadd
iload 5
iadd
istore 6
start local 6 14: bipush 127
iload 4
iadd
iload 5
isub
istore 7
start local 7 15: iload 6
sipush 256
imul
iload 7
iadd
istore 8
start local 8 16: iload 8
bipush 36
invokestatic java.lang.Integer.toString:(II)Ljava/lang/String;
getstatic java.util.Locale.ENGLISH:Ljava/util/Locale;
invokevirtual java.lang.String.toLowerCase:(Ljava/util/Locale;)Ljava/lang/String;
astore 9
start local 9 17: aload 9
bipush 36
invokestatic java.lang.Integer.parseInt:(Ljava/lang/String;I)I
pop
18: iload 8
sipush 256
idiv
istore 10
start local 10 19: iload 8
sipush 256
irem
istore 11
start local 11 20: iload 10
iload 11
iadd
sipush 254
isub
iconst_2
idiv
pop
21: aload 1
ldc "000"
iconst_0
iconst_4
aload 9
invokevirtual java.lang.String.length:()I
isub
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/CharSequence;II)Ljava/lang/StringBuilder;
pop
22: aload 1
aload 9
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
pop
end local 11 end local 10 end local 9 end local 8 end local 7 end local 6 end local 5 end local 4 23: StackMap locals:
StackMap stack:
iinc 3 1
StackMap locals:
StackMap stack:
24: iload 3
aload 2
arraylength
if_icmplt 5
end local 3 25: aload 1
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 26 0 s Ljava/lang/String;
1 26 1 buf Ljava/lang/StringBuilder;
2 26 2 b [B
4 25 3 i I
6 23 4 b1 B
7 23 5 b2 B
9 12 6 i0 I
10 12 7 x Ljava/lang/String;
14 23 6 i1 I
15 23 7 i2 I
16 23 8 i0 I
17 23 9 x Ljava/lang/String;
19 23 10 j1 I
20 23 11 j2 I
MethodParameters:
Name Flags
s
public static java.lang.String deobfuscate(java.lang.String);
descriptor: (Ljava/lang/String;)Ljava/lang/String;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=6, locals=9, args_size=1
start local 0 0: aload 0
ldc "OBF:"
invokevirtual java.lang.String.startsWith:(Ljava/lang/String;)Z
ifeq 2
1: aload 0
iconst_4
invokevirtual java.lang.String.substring:(I)Ljava/lang/String;
astore 0
2: StackMap locals:
StackMap stack:
aload 0
invokevirtual java.lang.String.length:()I
iconst_2
idiv
newarray 8
astore 1
start local 1 3: iconst_0
istore 2
start local 2 4: iconst_0
istore 3
start local 3 5: goto 20
6: StackMap locals: byte[] int int
StackMap stack:
aload 0
iload 3
invokevirtual java.lang.String.charAt:(I)C
bipush 85
if_icmpne 13
7: iinc 3 1
8: aload 0
iload 3
iload 3
iconst_4
iadd
invokevirtual java.lang.String.substring:(II)Ljava/lang/String;
astore 4
start local 4 9: aload 4
bipush 36
invokestatic java.lang.Integer.parseInt:(Ljava/lang/String;I)I
istore 5
start local 5 10: iload 5
bipush 8
ishr
i2b
istore 6
start local 6 11: aload 1
iload 2
iinc 2 1
iload 6
bastore
end local 6 end local 5 end local 4 12: goto 19
13: StackMap locals:
StackMap stack:
aload 0
iload 3
iload 3
iconst_4
iadd
invokevirtual java.lang.String.substring:(II)Ljava/lang/String;
astore 4
start local 4 14: aload 4
bipush 36
invokestatic java.lang.Integer.parseInt:(Ljava/lang/String;I)I
istore 5
start local 5 15: iload 5
sipush 256
idiv
istore 6
start local 6 16: iload 5
sipush 256
irem
istore 7
start local 7 17: iload 6
iload 7
iadd
sipush 254
isub
iconst_2
idiv
i2b
istore 8
start local 8 18: aload 1
iload 2
iinc 2 1
iload 8
bastore
end local 8 end local 7 end local 6 end local 5 end local 4 19: StackMap locals:
StackMap stack:
iinc 3 4
StackMap locals:
StackMap stack:
20: iload 3
aload 0
invokevirtual java.lang.String.length:()I
if_icmplt 6
end local 3 21: new java.lang.String
dup
aload 1
iconst_0
iload 2
getstatic java.nio.charset.StandardCharsets.UTF_8:Ljava/nio/charset/Charset;
invokespecial java.lang.String.<init>:([BIILjava/nio/charset/Charset;)V
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 22 0 s Ljava/lang/String;
3 22 1 b [B
4 22 2 l I
5 21 3 i I
9 12 4 x Ljava/lang/String;
10 12 5 i0 I
11 12 6 bx B
14 19 4 x Ljava/lang/String;
15 19 5 i0 I
16 19 6 i1 I
17 19 7 i2 I
18 19 8 bx B
MethodParameters:
Name Flags
s
public static org.eclipse.jetty.util.security.Password getPassword(java.lang.String, java.lang.String, java.lang.String);
descriptor: (Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)Lorg/eclipse/jetty/util/security/Password;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=5, locals=6, args_size=3
start local 0 start local 1 start local 2 0: aload 0
aload 1
invokestatic java.lang.System.getProperty:(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
astore 3
start local 3 1: aload 3
ifnull 2
aload 3
invokevirtual java.lang.String.length:()I
ifne 15
2: StackMap locals: java.lang.String
StackMap stack:
getstatic java.lang.System.out:Ljava/io/PrintStream;
new java.lang.StringBuilder
dup
aload 0
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 2
ifnull 3
aload 2
invokevirtual java.lang.String.length:()I
ifle 3
ldc " [dft]"
goto 4
StackMap locals: java.lang.String java.lang.String java.lang.String java.lang.String
StackMap stack: java.io.PrintStream java.lang.StringBuilder
3: ldc ""
StackMap locals: java.lang.String java.lang.String java.lang.String java.lang.String
StackMap stack: java.io.PrintStream java.lang.StringBuilder java.lang.String
4: invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
ldc " : "
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokevirtual java.io.PrintStream.print:(Ljava/lang/String;)V
5: getstatic java.lang.System.out:Ljava/io/PrintStream;
invokevirtual java.io.PrintStream.flush:()V
6: sipush 512
newarray 8
astore 4
start local 4 7: getstatic java.lang.System.in:Ljava/io/InputStream;
aload 4
invokevirtual java.io.InputStream.read:([B)I
istore 5
start local 5 8: iload 5
ifle 13
9: new java.lang.String
dup
aload 4
iconst_0
iload 5
invokespecial java.lang.String.<init>:([BII)V
invokevirtual java.lang.String.trim:()Ljava/lang/String;
astore 3
end local 5 end local 4 10: goto 13
11: StackMap locals:
StackMap stack: java.io.IOException
astore 4
start local 4 12: getstatic org.eclipse.jetty.util.security.Password.LOG:Lorg/slf4j/Logger;
ldc "EXCEPTION"
aload 4
invokeinterface org.slf4j.Logger.warn:(Ljava/lang/String;Ljava/lang/Throwable;)V
end local 4 13: StackMap locals:
StackMap stack:
aload 3
ifnull 14
aload 3
invokevirtual java.lang.String.length:()I
ifne 15
14: StackMap locals:
StackMap stack:
aload 2
astore 3
15: StackMap locals:
StackMap stack:
new org.eclipse.jetty.util.security.Password
dup
aload 3
invokespecial org.eclipse.jetty.util.security.Password.<init>:(Ljava/lang/String;)V
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 16 0 realm Ljava/lang/String;
0 16 1 dft Ljava/lang/String;
0 16 2 promptDft Ljava/lang/String;
1 16 3 passwd Ljava/lang/String;
7 10 4 buf [B
8 10 5 len I
12 13 4 e Ljava/io/IOException;
Exception table:
from to target type
2 10 11 Class java.io.IOException
MethodParameters:
Name Flags
realm
dft
promptDft
public static void main(java.lang.String[]);
descriptor: ([Ljava/lang/String;)V
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=4, locals=3, args_size=1
start local 0 0: aload 0
arraylength
iconst_1
if_icmpeq 4
aload 0
arraylength
iconst_2
if_icmpeq 4
1: getstatic java.lang.System.err:Ljava/io/PrintStream;
new java.lang.StringBuilder
dup
ldc "Usage - java "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
ldc Lorg/eclipse/jetty/util/security/Password;
invokevirtual java.lang.Class.getName:()Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
ldc " [<user>] <password>"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokevirtual java.io.PrintStream.println:(Ljava/lang/String;)V
2: getstatic java.lang.System.err:Ljava/io/PrintStream;
ldc "If the password is ?, the user will be prompted for the password"
invokevirtual java.io.PrintStream.println:(Ljava/lang/String;)V
3: iconst_1
invokestatic java.lang.System.exit:(I)V
4: StackMap locals:
StackMap stack:
aload 0
aload 0
arraylength
iconst_1
if_icmpne 5
iconst_0
goto 6
StackMap locals:
StackMap stack: java.lang.String[]
5: iconst_1
StackMap locals: java.lang.String[]
StackMap stack: java.lang.String[] int
6: aaload
astore 1
start local 1 7: new org.eclipse.jetty.util.security.Password
dup
aload 1
invokespecial org.eclipse.jetty.util.security.Password.<init>:(Ljava/lang/String;)V
astore 2
start local 2 8: getstatic java.lang.System.err:Ljava/io/PrintStream;
aload 2
invokevirtual org.eclipse.jetty.util.security.Password.toString:()Ljava/lang/String;
invokevirtual java.io.PrintStream.println:(Ljava/lang/String;)V
9: getstatic java.lang.System.err:Ljava/io/PrintStream;
aload 2
invokevirtual org.eclipse.jetty.util.security.Password.toString:()Ljava/lang/String;
invokestatic org.eclipse.jetty.util.security.Password.obfuscate:(Ljava/lang/String;)Ljava/lang/String;
invokevirtual java.io.PrintStream.println:(Ljava/lang/String;)V
10: getstatic java.lang.System.err:Ljava/io/PrintStream;
aload 1
invokestatic org.eclipse.jetty.util.security.Credential$MD5.digest:(Ljava/lang/String;)Ljava/lang/String;
invokevirtual java.io.PrintStream.println:(Ljava/lang/String;)V
11: aload 0
arraylength
iconst_2
if_icmpne 13
12: getstatic java.lang.System.err:Ljava/io/PrintStream;
aload 0
iconst_0
aaload
aload 2
invokevirtual org.eclipse.jetty.util.security.Password.toString:()Ljava/lang/String;
invokestatic org.eclipse.jetty.util.security.Credential$Crypt.crypt:(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
invokevirtual java.io.PrintStream.println:(Ljava/lang/String;)V
13: StackMap locals: java.lang.String org.eclipse.jetty.util.security.Password
StackMap stack:
return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 14 0 arg [Ljava/lang/String;
7 14 1 p Ljava/lang/String;
8 14 2 pw Lorg/eclipse/jetty/util/security/Password;
MethodParameters:
Name Flags
arg
}
SourceFile: "Password.java"
InnerClasses:
public Crypt = org.eclipse.jetty.util.security.Credential$Crypt of org.eclipse.jetty.util.security.Credential
public MD5 = org.eclipse.jetty.util.security.Credential$MD5 of org.eclipse.jetty.util.security.Credential