class sun.net.www.protocol.http.BasicAuthentication extends sun.net.www.protocol.http.AuthenticationInfo
minor version: 0
major version: 59
flags: flags: (0x0020) ACC_SUPER
this_class: sun.net.www.protocol.http.BasicAuthentication
super_class: sun.net.www.protocol.http.AuthenticationInfo
{
private static final long serialVersionUID;
descriptor: J
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: 100
java.lang.String auth;
descriptor: Ljava/lang/String;
flags: (0x0000)
static final boolean $assertionsDisabled;
descriptor: Z
flags: (0x1018) ACC_STATIC, ACC_FINAL, ACC_SYNTHETIC
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=1, locals=0, args_size=0
0: ldc Lsun/net/www/protocol/http/BasicAuthentication;
invokevirtual java.lang.Class.desiredAssertionStatus:()Z
ifne 1
iconst_1
goto 2
StackMap locals:
StackMap stack:
1: iconst_0
StackMap locals:
StackMap stack: int
2: putstatic sun.net.www.protocol.http.BasicAuthentication.$assertionsDisabled:Z
3: return
LocalVariableTable:
Start End Slot Name Signature
public void <init>(boolean, java.lang.String, int, java.lang.String, java.net.PasswordAuthentication);
descriptor: (ZLjava/lang/String;ILjava/lang/String;Ljava/net/PasswordAuthentication;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=6, locals=11, args_size=6
start local 0 start local 1 start local 2 start local 3 start local 4 start local 5 0: aload 0
iload 1
ifeq 1
bipush 112
goto 2
StackMap locals:
StackMap stack: uninitialized-this
1: bipush 115
2: StackMap locals: uninitialized-this int java.lang.String int java.lang.String java.net.PasswordAuthentication
StackMap stack: uninitialized-this int
getstatic sun.net.www.protocol.http.AuthScheme.BASIC:Lsun/net/www/protocol/http/AuthScheme;
aload 2
iload 3
aload 4
invokespecial sun.net.www.protocol.http.AuthenticationInfo.<init>:(CLsun/net/www/protocol/http/AuthScheme;Ljava/lang/String;ILjava/lang/String;)V
3: new java.lang.StringBuilder
dup
aload 5
invokevirtual java.net.PasswordAuthentication.getUserName:()Ljava/lang/String;
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
ldc ":"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
astore 6
start local 6 4: aconst_null
astore 7
start local 7 5: aload 6
ldc "ISO-8859-1"
invokevirtual java.lang.String.getBytes:(Ljava/lang/String;)[B
astore 7
6: goto 9
StackMap locals: sun.net.www.protocol.http.BasicAuthentication int java.lang.String int java.lang.String java.net.PasswordAuthentication java.lang.String byte[]
StackMap stack: java.io.UnsupportedEncodingException
7: pop
8: getstatic sun.net.www.protocol.http.BasicAuthentication.$assertionsDisabled:Z
ifne 9
new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
9: StackMap locals:
StackMap stack:
aload 5
invokevirtual java.net.PasswordAuthentication.getPassword:()[C
astore 8
start local 8 10: aload 8
arraylength
newarray 8
astore 9
start local 9 11: iconst_0
istore 10
start local 10 12: goto 15
13: StackMap locals: char[] byte[] int
StackMap stack:
aload 9
iload 10
aload 8
iload 10
caload
i2b
bastore
14: iinc 10 1
StackMap locals:
StackMap stack:
15: iload 10
aload 8
arraylength
if_icmplt 13
end local 10 16: aload 7
arraylength
aload 9
arraylength
iadd
newarray 8
astore 10
start local 10 17: aload 7
iconst_0
aload 10
iconst_0
aload 7
arraylength
invokestatic java.lang.System.arraycopy:(Ljava/lang/Object;ILjava/lang/Object;II)V
18: aload 9
iconst_0
aload 10
aload 7
arraylength
19: aload 9
arraylength
20: invokestatic java.lang.System.arraycopy:(Ljava/lang/Object;ILjava/lang/Object;II)V
21: aload 0
new java.lang.StringBuilder
dup
ldc "Basic "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
invokestatic java.util.Base64.getEncoder:()Ljava/util/Base64$Encoder;
aload 10
invokevirtual java.util.Base64$Encoder.encodeToString:([B)Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
putfield sun.net.www.protocol.http.BasicAuthentication.auth:Ljava/lang/String;
22: aload 0
aload 5
putfield sun.net.www.protocol.http.BasicAuthentication.pw:Ljava/net/PasswordAuthentication;
23: return
end local 10 end local 9 end local 8 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 24 0 this Lsun/net/www/protocol/http/BasicAuthentication;
0 24 1 isProxy Z
0 24 2 host Ljava/lang/String;
0 24 3 port I
0 24 4 realm Ljava/lang/String;
0 24 5 pw Ljava/net/PasswordAuthentication;
4 24 6 plain Ljava/lang/String;
5 24 7 nameBytes [B
10 24 8 passwd [C
11 24 9 passwdBytes [B
12 16 10 i I
17 24 10 concat [B
Exception table:
from to target type
5 6 7 Class java.io.UnsupportedEncodingException
MethodParameters:
Name Flags
isProxy
host
port
realm
pw
public void <init>(boolean, java.lang.String, int, java.lang.String, java.lang.String);
descriptor: (ZLjava/lang/String;ILjava/lang/String;Ljava/lang/String;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=6, locals=6, args_size=6
start local 0 start local 1 start local 2 start local 3 start local 4 start local 5 0: aload 0
iload 1
ifeq 1
bipush 112
goto 2
StackMap locals:
StackMap stack: uninitialized-this
1: bipush 115
2: StackMap locals: uninitialized-this int java.lang.String int java.lang.String java.lang.String
StackMap stack: uninitialized-this int
getstatic sun.net.www.protocol.http.AuthScheme.BASIC:Lsun/net/www/protocol/http/AuthScheme;
aload 2
iload 3
aload 4
invokespecial sun.net.www.protocol.http.AuthenticationInfo.<init>:(CLsun/net/www/protocol/http/AuthScheme;Ljava/lang/String;ILjava/lang/String;)V
3: aload 0
new java.lang.StringBuilder
dup
ldc "Basic "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 5
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
putfield sun.net.www.protocol.http.BasicAuthentication.auth:Ljava/lang/String;
4: return
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 Lsun/net/www/protocol/http/BasicAuthentication;
0 5 1 isProxy Z
0 5 2 host Ljava/lang/String;
0 5 3 port I
0 5 4 realm Ljava/lang/String;
0 5 5 auth Ljava/lang/String;
MethodParameters:
Name Flags
isProxy
host
port
realm
auth
public void <init>(boolean, java.net.URL, java.lang.String, java.net.PasswordAuthentication);
descriptor: (ZLjava/net/URL;Ljava/lang/String;Ljava/net/PasswordAuthentication;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=10, args_size=5
start local 0 start local 1 start local 2 start local 3 start local 4 0: aload 0
iload 1
ifeq 1
bipush 112
goto 2
StackMap locals:
StackMap stack: uninitialized-this
1: bipush 115
2: StackMap locals: uninitialized-this int java.net.URL java.lang.String java.net.PasswordAuthentication
StackMap stack: uninitialized-this int
getstatic sun.net.www.protocol.http.AuthScheme.BASIC:Lsun/net/www/protocol/http/AuthScheme;
aload 2
aload 3
invokespecial sun.net.www.protocol.http.AuthenticationInfo.<init>:(CLsun/net/www/protocol/http/AuthScheme;Ljava/net/URL;Ljava/lang/String;)V
3: new java.lang.StringBuilder
dup
aload 4
invokevirtual java.net.PasswordAuthentication.getUserName:()Ljava/lang/String;
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
ldc ":"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
astore 5
start local 5 4: aconst_null
astore 6
start local 6 5: aload 5
ldc "ISO-8859-1"
invokevirtual java.lang.String.getBytes:(Ljava/lang/String;)[B
astore 6
6: goto 9
StackMap locals: sun.net.www.protocol.http.BasicAuthentication int java.net.URL java.lang.String java.net.PasswordAuthentication java.lang.String byte[]
StackMap stack: java.io.UnsupportedEncodingException
7: pop
8: getstatic sun.net.www.protocol.http.BasicAuthentication.$assertionsDisabled:Z
ifne 9
new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
9: StackMap locals:
StackMap stack:
aload 4
invokevirtual java.net.PasswordAuthentication.getPassword:()[C
astore 7
start local 7 10: aload 7
arraylength
newarray 8
astore 8
start local 8 11: iconst_0
istore 9
start local 9 12: goto 15
13: StackMap locals: char[] byte[] int
StackMap stack:
aload 8
iload 9
aload 7
iload 9
caload
i2b
bastore
14: iinc 9 1
StackMap locals:
StackMap stack:
15: iload 9
aload 7
arraylength
if_icmplt 13
end local 9 16: aload 6
arraylength
aload 8
arraylength
iadd
newarray 8
astore 9
start local 9 17: aload 6
iconst_0
aload 9
iconst_0
aload 6
arraylength
invokestatic java.lang.System.arraycopy:(Ljava/lang/Object;ILjava/lang/Object;II)V
18: aload 8
iconst_0
aload 9
aload 6
arraylength
19: aload 8
arraylength
20: invokestatic java.lang.System.arraycopy:(Ljava/lang/Object;ILjava/lang/Object;II)V
21: aload 0
new java.lang.StringBuilder
dup
ldc "Basic "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
invokestatic java.util.Base64.getEncoder:()Ljava/util/Base64$Encoder;
aload 9
invokevirtual java.util.Base64$Encoder.encodeToString:([B)Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
putfield sun.net.www.protocol.http.BasicAuthentication.auth:Ljava/lang/String;
22: aload 0
aload 4
putfield sun.net.www.protocol.http.BasicAuthentication.pw:Ljava/net/PasswordAuthentication;
23: return
end local 9 end local 8 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 24 0 this Lsun/net/www/protocol/http/BasicAuthentication;
0 24 1 isProxy Z
0 24 2 url Ljava/net/URL;
0 24 3 realm Ljava/lang/String;
0 24 4 pw Ljava/net/PasswordAuthentication;
4 24 5 plain Ljava/lang/String;
5 24 6 nameBytes [B
10 24 7 passwd [C
11 24 8 passwdBytes [B
12 16 9 i I
17 24 9 concat [B
Exception table:
from to target type
5 6 7 Class java.io.UnsupportedEncodingException
MethodParameters:
Name Flags
isProxy
url
realm
pw
public void <init>(boolean, java.net.URL, java.lang.String, java.lang.String);
descriptor: (ZLjava/net/URL;Ljava/lang/String;Ljava/lang/String;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=5, args_size=5
start local 0 start local 1 start local 2 start local 3 start local 4 0: aload 0
iload 1
ifeq 1
bipush 112
goto 2
StackMap locals:
StackMap stack: uninitialized-this
1: bipush 115
2: StackMap locals: uninitialized-this int java.net.URL java.lang.String java.lang.String
StackMap stack: uninitialized-this int
getstatic sun.net.www.protocol.http.AuthScheme.BASIC:Lsun/net/www/protocol/http/AuthScheme;
aload 2
aload 3
invokespecial sun.net.www.protocol.http.AuthenticationInfo.<init>:(CLsun/net/www/protocol/http/AuthScheme;Ljava/net/URL;Ljava/lang/String;)V
3: aload 0
new java.lang.StringBuilder
dup
ldc "Basic "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 4
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
putfield sun.net.www.protocol.http.BasicAuthentication.auth:Ljava/lang/String;
4: return
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 Lsun/net/www/protocol/http/BasicAuthentication;
0 5 1 isProxy Z
0 5 2 url Ljava/net/URL;
0 5 3 realm Ljava/lang/String;
0 5 4 auth Ljava/lang/String;
MethodParameters:
Name Flags
isProxy
url
realm
auth
public boolean supportsPreemptiveAuthorization();
descriptor: ()Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: iconst_1
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lsun/net/www/protocol/http/BasicAuthentication;
public boolean (sun.net.www.protocol.http.HttpURLConnection, sun.net.www.HeaderParser, java.lang.String);
descriptor: (Lsun/net/www/protocol/http/HttpURLConnection;Lsun/net/www/HeaderParser;Ljava/lang/String;)Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=4, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 1
aload 0
invokevirtual sun.net.www.protocol.http.BasicAuthentication.getHeaderName:()Ljava/lang/String;
aload 0
aconst_null
aconst_null
invokevirtual sun.net.www.protocol.http.BasicAuthentication.getHeaderValue:(Ljava/net/URL;Ljava/lang/String;)Ljava/lang/String;
invokevirtual sun.net.www.protocol.http.HttpURLConnection.setAuthenticationProperty:(Ljava/lang/String;Ljava/lang/String;)V
1: iconst_1
ireturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lsun/net/www/protocol/http/BasicAuthentication;
0 2 1 conn Lsun/net/www/protocol/http/HttpURLConnection;
0 2 2 p Lsun/net/www/HeaderParser;
0 2 3 raw Ljava/lang/String;
MethodParameters:
Name Flags
conn
p
raw
public java.lang.String (java.net.URL, java.lang.String);
descriptor: (Ljava/net/URL;Ljava/lang/String;)Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
getfield sun.net.www.protocol.http.BasicAuthentication.auth:Ljava/lang/String;
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lsun/net/www/protocol/http/BasicAuthentication;
0 1 1 url Ljava/net/URL;
0 1 2 method Ljava/lang/String;
MethodParameters:
Name Flags
url
method
public boolean isAuthorizationStale(java.lang.String);
descriptor: (Ljava/lang/String;)Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=2, args_size=2
start local 0 start local 1 0: iconst_0
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lsun/net/www/protocol/http/BasicAuthentication;
0 1 1 header Ljava/lang/String;
MethodParameters:
Name Flags
header
static java.lang.String getRootPath(java.lang.String, java.lang.String);
descriptor: (Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
flags: (0x0008) ACC_STATIC
Code:
stack=6, locals=4, args_size=2
start local 0 start local 1 0: iconst_0
istore 2
start local 2 1: new java.net.URI
dup
aload 0
invokespecial java.net.URI.<init>:(Ljava/lang/String;)V
invokevirtual java.net.URI.normalize:()Ljava/net/URI;
invokevirtual java.net.URI.getPath:()Ljava/lang/String;
astore 0
2: new java.net.URI
dup
aload 1
invokespecial java.net.URI.<init>:(Ljava/lang/String;)V
invokevirtual java.net.URI.normalize:()Ljava/net/URI;
invokevirtual java.net.URI.getPath:()Ljava/lang/String;
astore 1
3: goto 10
StackMap locals: java.lang.String java.lang.String int
StackMap stack: java.net.URISyntaxException
4: pop
5: goto 10
6: StackMap locals:
StackMap stack:
aload 1
bipush 47
iload 2
iconst_1
iadd
invokevirtual java.lang.String.indexOf:(II)I
istore 3
start local 3 7: iload 3
iconst_m1
if_icmpeq 9
aload 1
iconst_0
aload 0
iconst_0
iload 3
iconst_1
iadd
invokevirtual java.lang.String.regionMatches:(ILjava/lang/String;II)Z
ifeq 9
8: iload 3
istore 2
goto 10
9: StackMap locals: int
StackMap stack:
aload 1
iconst_0
iload 2
iconst_1
iadd
invokevirtual java.lang.String.substring:(II)Ljava/lang/String;
areturn
end local 3 10: StackMap locals:
StackMap stack:
iload 2
aload 1
invokevirtual java.lang.String.length:()I
if_icmplt 6
11: aload 0
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 12 0 npath Ljava/lang/String;
0 12 1 opath Ljava/lang/String;
1 12 2 index I
7 10 3 toindex I
Exception table:
from to target type
1 3 4 Class java.net.URISyntaxException
MethodParameters:
Name Flags
npath
opath
}
SourceFile: "BasicAuthentication.java"
InnerClasses:
public Encoder = java.util.Base64$Encoder of java.util.Base64