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
final java.lang.String auth;
descriptor: Ljava/lang/String;
flags: (0x0010) ACC_FINAL
public void <init>(boolean, java.lang.String, int, java.lang.String, java.net.PasswordAuthentication, boolean, java.lang.String);
descriptor: (ZLjava/lang/String;ILjava/lang/String;Ljava/net/PasswordAuthentication;ZLjava/lang/String;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=7, locals=8, args_size=8
start local 0 start local 1 start local 2 start local 3 start local 4 start local 5 start local 6 start local 7 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 int 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 7
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
aload 5
iload 6
invokestatic sun.net.www.protocol.http.BasicAuthentication.authValueFrom:(Ljava/net/PasswordAuthentication;Z)Ljava/lang/String;
putfield sun.net.www.protocol.http.BasicAuthentication.auth:Ljava/lang/String;
5: aload 0
aload 5
putfield sun.net.www.protocol.http.BasicAuthentication.pw:Ljava/net/PasswordAuthentication;
6: return
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 7 0 this Lsun/net/www/protocol/http/BasicAuthentication;
0 7 1 isProxy Z
0 7 2 host Ljava/lang/String;
0 7 3 port I
0 7 4 realm Ljava/lang/String;
0 7 5 pw Ljava/net/PasswordAuthentication;
0 7 6 isUTF8 Z
0 7 7 authenticatorKey Ljava/lang/String;
MethodParameters:
Name Flags
isProxy
host
port
realm
pw
isUTF8
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, boolean, java.lang.String);
descriptor: (ZLjava/net/URL;Ljava/lang/String;Ljava/net/PasswordAuthentication;ZLjava/lang/String;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=6, 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.net.URL java.lang.String java.net.PasswordAuthentication int 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 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/net/URL;Ljava/lang/String;Ljava/lang/String;)V
4: aload 0
aload 4
iload 5
invokestatic sun.net.www.protocol.http.BasicAuthentication.authValueFrom:(Ljava/net/PasswordAuthentication;Z)Ljava/lang/String;
putfield sun.net.www.protocol.http.BasicAuthentication.auth:Ljava/lang/String;
5: aload 0
aload 4
putfield sun.net.www.protocol.http.BasicAuthentication.pw:Ljava/net/PasswordAuthentication;
6: 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 7 0 this Lsun/net/www/protocol/http/BasicAuthentication;
0 7 1 isProxy Z
0 7 2 url Ljava/net/URL;
0 7 3 realm Ljava/lang/String;
0 7 4 pw Ljava/net/PasswordAuthentication;
0 7 5 isUTF8 Z
0 7 6 authenticatorKey Ljava/lang/String;
MethodParameters:
Name Flags
isProxy
url
realm
pw
isUTF8
authenticatorKey
private static java.lang.String authValueFrom(java.net.PasswordAuthentication, boolean);
descriptor: (Ljava/net/PasswordAuthentication;Z)Ljava/lang/String;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=7, locals=9, args_size=2
start local 0 start local 1 0: new java.lang.StringBuilder
dup
aload 0
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 2
start local 2 1: aload 0
invokevirtual java.net.PasswordAuthentication.getPassword:()[C
astore 3
start local 3 2: aload 2
invokevirtual java.lang.String.length:()I
aload 3
arraylength
iadd
invokestatic java.nio.CharBuffer.allocate:(I)Ljava/nio/CharBuffer;
astore 4
start local 4 3: aload 4
aload 2
invokevirtual java.nio.CharBuffer.put:(Ljava/lang/String;)Ljava/nio/CharBuffer;
aload 3
invokevirtual java.nio.CharBuffer.put:([C)Ljava/nio/CharBuffer;
invokevirtual java.nio.CharBuffer.flip:()Ljava/nio/CharBuffer;
pop
4: iload 1
ifeq 5
getstatic sun.nio.cs.UTF_8.INSTANCE:Lsun/nio/cs/UTF_8;
goto 6
StackMap locals: java.lang.String char[] java.nio.CharBuffer
StackMap stack:
5: getstatic sun.nio.cs.ISO_8859_1.INSTANCE:Lsun/nio/cs/ISO_8859_1;
StackMap locals:
StackMap stack: java.nio.charset.Charset
6: astore 5
start local 5 7: aload 5
aload 4
invokevirtual java.nio.charset.Charset.encode:(Ljava/nio/CharBuffer;)Ljava/nio/ByteBuffer;
astore 6
start local 6 8: invokestatic java.util.Base64.getEncoder:()Ljava/util/Base64$Encoder;
aload 6
invokevirtual java.util.Base64$Encoder.encode:(Ljava/nio/ByteBuffer;)Ljava/nio/ByteBuffer;
astore 7
start local 7 9: new java.lang.StringBuilder
dup
ldc "Basic "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
new java.lang.String
dup
aload 7
invokevirtual java.nio.ByteBuffer.array:()[B
aload 7
invokevirtual java.nio.ByteBuffer.position:()I
aload 7
invokevirtual java.nio.ByteBuffer.remaining:()I
10: getstatic sun.nio.cs.ISO_8859_1.INSTANCE:Lsun/nio/cs/ISO_8859_1;
invokespecial java.lang.String.<init>:([BIILjava/nio/charset/Charset;)V
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
11: invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
astore 8
start local 8 12: aload 6
invokevirtual java.nio.ByteBuffer.array:()[B
iconst_0
invokestatic java.util.Arrays.fill:([BB)V
13: aload 7
invokevirtual java.nio.ByteBuffer.array:()[B
iconst_0
invokestatic java.util.Arrays.fill:([BB)V
14: aload 4
invokevirtual java.nio.CharBuffer.array:()[C
iconst_0
invokestatic java.util.Arrays.fill:([CC)V
15: aload 8
areturn
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 16 0 pw Ljava/net/PasswordAuthentication;
0 16 1 isUTF8 Z
1 16 2 plain Ljava/lang/String;
2 16 3 password [C
3 16 4 cbuf Ljava/nio/CharBuffer;
7 16 5 charset Ljava/nio/charset/Charset;
8 16 6 buf Ljava/nio/ByteBuffer;
9 16 7 enc Ljava/nio/ByteBuffer;
12 16 8 ret Ljava/lang/String;
MethodParameters:
Name Flags
pw
isUTF8
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