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, java.lang.String);
descriptor: (ZLjava/lang/String;ILjava/lang/String;Ljava/net/PasswordAuthentication;Ljava/lang/String;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=7, locals=12, args_size=7
start local 0 start local 1 start local 2 start local 3 start local 4 start local 5 start local 6 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 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
3: aload 6
invokestatic java.util.Objects.requireNonNull:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast java.lang.String
invokespecial sun.net.www.protocol.http.AuthenticationInfo.<init>:(CLsun/net/www/protocol/http/AuthScheme;Ljava/lang/String;ILjava/lang/String;Ljava/lang/String;)V
4: 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 7
start local 7 5: aconst_null
astore 8
start local 8 6: aload 7
ldc "ISO-8859-1"
invokevirtual java.lang.String.getBytes:(Ljava/lang/String;)[B
astore 8
7: goto 10
StackMap locals: sun.net.www.protocol.http.BasicAuthentication int java.lang.String int java.lang.String java.net.PasswordAuthentication java.lang.String java.lang.String byte[]
StackMap stack: java.io.UnsupportedEncodingException
8: pop
9: getstatic sun.net.www.protocol.http.BasicAuthentication.$assertionsDisabled:Z
ifne 10
new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
10: StackMap locals:
StackMap stack:
aload 5
invokevirtual java.net.PasswordAuthentication.getPassword:()[C
astore 9
start local 9 11: aload 9
arraylength
newarray 8
astore 10
start local 10 12: iconst_0
istore 11
start local 11 13: goto 16
14: StackMap locals: char[] byte[] int
StackMap stack:
aload 10
iload 11
aload 9
iload 11
caload
i2b
bastore
15: iinc 11 1
StackMap locals:
StackMap stack:
16: iload 11
aload 9
arraylength
if_icmplt 14
end local 11 17: aload 8
arraylength
aload 10
arraylength
iadd
newarray 8
astore 11
start local 11 18: aload 8
iconst_0
aload 11
iconst_0
aload 8
arraylength
invokestatic java.lang.System.arraycopy:(Ljava/lang/Object;ILjava/lang/Object;II)V
19: aload 10
iconst_0
aload 11
aload 8
arraylength
20: aload 10
arraylength
21: invokestatic java.lang.System.arraycopy:(Ljava/lang/Object;ILjava/lang/Object;II)V
22: 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 11
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;
23: aload 0
aload 5
putfield sun.net.www.protocol.http.BasicAuthentication.pw:Ljava/net/PasswordAuthentication;
24: return
end local 11 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 25 0 this Lsun/net/www/protocol/http/BasicAuthentication;
0 25 1 isProxy Z
0 25 2 host Ljava/lang/String;
0 25 3 port I
0 25 4 realm Ljava/lang/String;
0 25 5 pw Ljava/net/PasswordAuthentication;
0 25 6 authenticatorKey Ljava/lang/String;
5 25 7 plain Ljava/lang/String;
6 25 8 nameBytes [B
11 25 9 passwd [C
12 25 10 passwdBytes [B
13 17 11 i I
18 25 11 concat [B
Exception table:
from to target type
6 7 8 Class java.io.UnsupportedEncodingException
MethodParameters:
Name Flags
isProxy
host
port
realm
pw
authenticatorKey
public void <init>(boolean, java.lang.String, int, java.lang.String, java.lang.String, java.lang.String);
descriptor: (ZLjava/lang/String;ILjava/lang/String;Ljava/lang/String;Ljava/lang/String;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=7, locals=7, args_size=7
start local 0 start local 1 start local 2 start local 3 start local 4 start local 5 start local 6 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 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
3: aload 6
invokestatic java.util.Objects.requireNonNull:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast java.lang.String
invokespecial sun.net.www.protocol.http.AuthenticationInfo.<init>:(CLsun/net/www/protocol/http/AuthScheme;Ljava/lang/String;ILjava/lang/String;Ljava/lang/String;)V
4: 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;
5: return
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 6 0 this Lsun/net/www/protocol/http/BasicAuthentication;
0 6 1 isProxy Z
0 6 2 host Ljava/lang/String;
0 6 3 port I
0 6 4 realm Ljava/lang/String;
0 6 5 auth Ljava/lang/String;
0 6 6 authenticatorKey Ljava/lang/String;
MethodParameters:
Name Flags
isProxy
host
port
realm
auth
authenticatorKey
public void <init>(boolean, java.net.URL, java.lang.String, java.net.PasswordAuthentication, java.lang.String);
descriptor: (ZLjava/net/URL;Ljava/lang/String;Ljava/net/PasswordAuthentication;Ljava/lang/String;)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.net.URL java.lang.String java.net.PasswordAuthentication 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
3: aload 5
invokestatic java.util.Objects.requireNonNull:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast java.lang.String
invokespecial sun.net.www.protocol.http.AuthenticationInfo.<init>:(CLsun/net/www/protocol/http/AuthScheme;Ljava/net/URL;Ljava/lang/String;Ljava/lang/String;)V
4: 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 6
start local 6 5: aconst_null
astore 7
start local 7 6: aload 6
ldc "ISO-8859-1"
invokevirtual java.lang.String.getBytes:(Ljava/lang/String;)[B
astore 7
7: goto 10
StackMap locals: sun.net.www.protocol.http.BasicAuthentication int java.net.URL java.lang.String java.net.PasswordAuthentication java.lang.String java.lang.String byte[]
StackMap stack: java.io.UnsupportedEncodingException
8: pop
9: getstatic sun.net.www.protocol.http.BasicAuthentication.$assertionsDisabled:Z
ifne 10
new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
10: StackMap locals:
StackMap stack:
aload 4
invokevirtual java.net.PasswordAuthentication.getPassword:()[C
astore 8
start local 8 11: aload 8
arraylength
newarray 8
astore 9
start local 9 12: iconst_0
istore 10
start local 10 13: goto 16
14: StackMap locals: char[] byte[] int
StackMap stack:
aload 9
iload 10
aload 8
iload 10
caload
i2b
bastore
15: iinc 10 1
StackMap locals:
StackMap stack:
16: iload 10
aload 8
arraylength
if_icmplt 14
end local 10 17: aload 7
arraylength
aload 9
arraylength
iadd
newarray 8
astore 10
start local 10 18: aload 7
iconst_0
aload 10
iconst_0
aload 7
arraylength
invokestatic java.lang.System.arraycopy:(Ljava/lang/Object;ILjava/lang/Object;II)V
19: aload 9
iconst_0
aload 10
aload 7
arraylength
20: aload 9
arraylength
21: invokestatic java.lang.System.arraycopy:(Ljava/lang/Object;ILjava/lang/Object;II)V
22: 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;
23: aload 0
aload 4
putfield sun.net.www.protocol.http.BasicAuthentication.pw:Ljava/net/PasswordAuthentication;
24: 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 25 0 this Lsun/net/www/protocol/http/BasicAuthentication;
0 25 1 isProxy Z
0 25 2 url Ljava/net/URL;
0 25 3 realm Ljava/lang/String;
0 25 4 pw Ljava/net/PasswordAuthentication;
0 25 5 authenticatorKey Ljava/lang/String;
5 25 6 plain Ljava/lang/String;
6 25 7 nameBytes [B
11 25 8 passwd [C
12 25 9 passwdBytes [B
13 17 10 i I
18 25 10 concat [B
Exception table:
from to target type
6 7 8 Class java.io.UnsupportedEncodingException
MethodParameters:
Name Flags
isProxy
url
realm
pw
authenticatorKey
public void <init>(boolean, java.net.URL, java.lang.String, java.lang.String, java.lang.String);
descriptor: (ZLjava/net/URL;Ljava/lang/String;Ljava/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.net.URL java.lang.String 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
3: aload 5
invokestatic java.util.Objects.requireNonNull:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast java.lang.String
invokespecial sun.net.www.protocol.http.AuthenticationInfo.<init>:(CLsun/net/www/protocol/http/AuthScheme;Ljava/net/URL;Ljava/lang/String;Ljava/lang/String;)V
4: 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;
5: 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 6 0 this Lsun/net/www/protocol/http/BasicAuthentication;
0 6 1 isProxy Z
0 6 2 url Ljava/net/URL;
0 6 3 realm Ljava/lang/String;
0 6 4 auth Ljava/lang/String;
0 6 5 authenticatorKey Ljava/lang/String;
MethodParameters:
Name Flags
isProxy
url
realm
auth
authenticatorKey
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