class sun.net.www.protocol.http.NegotiateAuthentication 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.NegotiateAuthentication
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
private final sun.net.www.protocol.http.HttpCallerInfo hci;
descriptor: Lsun/net/www/protocol/http/HttpCallerInfo;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
static java.util.HashMap<java.lang.String, java.lang.Boolean> supported;
descriptor: Ljava/util/HashMap;
flags: (0x0008) ACC_STATIC
Signature: Ljava/util/HashMap<Ljava/lang/String;Ljava/lang/Boolean;>;
static java.lang.ThreadLocal<java.util.HashMap<java.lang.String, sun.net.www.protocol.http.Negotiator>> cache;
descriptor: Ljava/lang/ThreadLocal;
flags: (0x0008) ACC_STATIC
Signature: Ljava/lang/ThreadLocal<Ljava/util/HashMap<Ljava/lang/String;Lsun/net/www/protocol/http/Negotiator;>;>;
private static final boolean cacheSPNEGO;
descriptor: Z
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private sun.net.www.protocol.http.Negotiator negotiator;
descriptor: Lsun/net/www/protocol/http/Negotiator;
flags: (0x0002) ACC_PRIVATE
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=4, locals=1, args_size=0
0: aconst_null
putstatic sun.net.www.protocol.http.NegotiateAuthentication.supported:Ljava/util/HashMap;
1: aconst_null
putstatic sun.net.www.protocol.http.NegotiateAuthentication.cache:Ljava/lang/ThreadLocal;
2: new sun.security.action.GetPropertyAction
dup
ldc "jdk.spnego.cache"
ldc "true"
invokespecial sun.security.action.GetPropertyAction.<init>:(Ljava/lang/String;Ljava/lang/String;)V
3: invokestatic java.security.AccessController.doPrivileged:(Ljava/security/PrivilegedAction;)Ljava/lang/Object;
checkcast java.lang.String
astore 0
start local 0 4: aload 0
invokestatic java.lang.Boolean.parseBoolean:(Ljava/lang/String;)Z
putstatic sun.net.www.protocol.http.NegotiateAuthentication.cacheSPNEGO:Z
end local 0 5: return
LocalVariableTable:
Start End Slot Name Signature
4 5 0 spnegoCacheProp Ljava/lang/String;
public void <init>(sun.net.www.protocol.http.HttpCallerInfo);
descriptor: (Lsun/net/www/protocol/http/HttpCallerInfo;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getstatic java.net.Authenticator$RequestorType.PROXY:Ljava/net/Authenticator$RequestorType;
aload 1
getfield sun.net.www.protocol.http.HttpCallerInfo.authType:Ljava/net/Authenticator$RequestorType;
if_acmpne 1
bipush 112
goto 2
StackMap locals:
StackMap stack: uninitialized-this
1: bipush 115
2: StackMap locals: uninitialized-this sun.net.www.protocol.http.HttpCallerInfo
StackMap stack: uninitialized-this int
aload 1
getfield sun.net.www.protocol.http.HttpCallerInfo.scheme:Ljava/lang/String;
ldc "Negotiate"
invokevirtual java.lang.String.equalsIgnoreCase:(Ljava/lang/String;)Z
ifeq 3
getstatic sun.net.www.protocol.http.AuthScheme.NEGOTIATE:Lsun/net/www/protocol/http/AuthScheme;
goto 4
StackMap locals: uninitialized-this sun.net.www.protocol.http.HttpCallerInfo
StackMap stack: uninitialized-this int
3: getstatic sun.net.www.protocol.http.AuthScheme.KERBEROS:Lsun/net/www/protocol/http/AuthScheme;
4: StackMap locals: uninitialized-this sun.net.www.protocol.http.HttpCallerInfo
StackMap stack: uninitialized-this int sun.net.www.protocol.http.AuthScheme
aload 1
getfield sun.net.www.protocol.http.HttpCallerInfo.url:Ljava/net/URL;
5: ldc ""
invokespecial sun.net.www.protocol.http.AuthenticationInfo.<init>:(CLsun/net/www/protocol/http/AuthScheme;Ljava/net/URL;Ljava/lang/String;)V
6: aload 0
aconst_null
putfield sun.net.www.protocol.http.NegotiateAuthentication.negotiator:Lsun/net/www/protocol/http/Negotiator;
7: aload 0
aload 1
putfield sun.net.www.protocol.http.NegotiateAuthentication.hci:Lsun/net/www/protocol/http/HttpCallerInfo;
8: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 this Lsun/net/www/protocol/http/NegotiateAuthentication;
0 9 1 hci Lsun/net/www/protocol/http/HttpCallerInfo;
MethodParameters:
Name Flags
hci
boolean supportsPreemptiveAuthorization();
descriptor: ()Z
flags: (0x0000)
Code:
stack=1, locals=1, args_size=1
start local 0 0: iconst_0
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lsun/net/www/protocol/http/NegotiateAuthentication;
public static synchronized boolean isSupported(sun.net.www.protocol.http.HttpCallerInfo);
descriptor: (Lsun/net/www/protocol/http/HttpCallerInfo;)Z
flags: (0x0029) ACC_PUBLIC, ACC_STATIC, ACC_SYNCHRONIZED
Code:
stack=3, locals=3, args_size=1
start local 0 0: getstatic sun.net.www.protocol.http.NegotiateAuthentication.supported:Ljava/util/HashMap;
ifnonnull 2
1: new java.util.HashMap
dup
invokespecial java.util.HashMap.<init>:()V
putstatic sun.net.www.protocol.http.NegotiateAuthentication.supported:Ljava/util/HashMap;
2: StackMap locals:
StackMap stack:
aload 0
getfield sun.net.www.protocol.http.HttpCallerInfo.host:Ljava/lang/String;
astore 1
start local 1 3: aload 1
invokevirtual java.lang.String.toLowerCase:()Ljava/lang/String;
astore 1
4: getstatic sun.net.www.protocol.http.NegotiateAuthentication.supported:Ljava/util/HashMap;
aload 1
invokevirtual java.util.HashMap.containsKey:(Ljava/lang/Object;)Z
ifeq 6
5: getstatic sun.net.www.protocol.http.NegotiateAuthentication.supported:Ljava/util/HashMap;
aload 1
invokevirtual java.util.HashMap.get:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast java.lang.Boolean
invokevirtual java.lang.Boolean.booleanValue:()Z
ireturn
6: StackMap locals: java.lang.String
StackMap stack:
aload 0
invokestatic sun.net.www.protocol.http.Negotiator.getSupported:(Lsun/net/www/protocol/http/HttpCallerInfo;)Lsun/net/www/protocol/http/Negotiator;
astore 2
start local 2 7: getstatic sun.net.www.protocol.http.NegotiateAuthentication.supported:Ljava/util/HashMap;
aload 1
iconst_1
invokestatic java.lang.Boolean.valueOf:(Z)Ljava/lang/Boolean;
invokevirtual java.util.HashMap.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
8: getstatic sun.net.www.protocol.http.NegotiateAuthentication.cache:Ljava/lang/ThreadLocal;
ifnonnull 10
9: new sun.net.www.protocol.http.NegotiateAuthentication$1
dup
invokespecial sun.net.www.protocol.http.NegotiateAuthentication$1.<init>:()V
putstatic sun.net.www.protocol.http.NegotiateAuthentication.cache:Ljava/lang/ThreadLocal;
10: StackMap locals: sun.net.www.protocol.http.Negotiator
StackMap stack:
getstatic sun.net.www.protocol.http.NegotiateAuthentication.cache:Ljava/lang/ThreadLocal;
invokevirtual java.lang.ThreadLocal.get:()Ljava/lang/Object;
checkcast java.util.HashMap
aload 1
aload 2
invokevirtual java.util.HashMap.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
11: iconst_1
ireturn
end local 2 12: StackMap locals: sun.net.www.protocol.http.HttpCallerInfo java.lang.String
StackMap stack: java.lang.Exception
pop
13: getstatic sun.net.www.protocol.http.NegotiateAuthentication.supported:Ljava/util/HashMap;
aload 1
iconst_0
invokestatic java.lang.Boolean.valueOf:(Z)Ljava/lang/Boolean;
invokevirtual java.util.HashMap.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
14: iconst_0
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 15 0 hci Lsun/net/www/protocol/http/HttpCallerInfo;
3 15 1 hostname Ljava/lang/String;
7 12 2 neg Lsun/net/www/protocol/http/Negotiator;
Exception table:
from to target type
6 11 12 Class java.lang.Exception
MethodParameters:
Name Flags
hci
java.lang.String ();
descriptor: ()Ljava/lang/String;
flags: (0x0000)
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
getfield sun.net.www.protocol.http.NegotiateAuthentication.type:C
bipush 115
if_icmpne 2
1: ldc "Authorization"
areturn
2: StackMap locals:
StackMap stack:
ldc "Proxy-Authorization"
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lsun/net/www/protocol/http/NegotiateAuthentication;
private static synchronized java.util.HashMap<java.lang.String, sun.net.www.protocol.http.Negotiator> getCache();
descriptor: ()Ljava/util/HashMap;
flags: (0x002a) ACC_PRIVATE, ACC_STATIC, ACC_SYNCHRONIZED
Code:
stack=1, locals=0, args_size=0
0: getstatic sun.net.www.protocol.http.NegotiateAuthentication.cache:Ljava/lang/ThreadLocal;
ifnonnull 1
aconst_null
areturn
1: StackMap locals:
StackMap stack:
getstatic sun.net.www.protocol.http.NegotiateAuthentication.cache:Ljava/lang/ThreadLocal;
invokevirtual java.lang.ThreadLocal.get:()Ljava/lang/Object;
checkcast java.util.HashMap
areturn
LocalVariableTable:
Start End Slot Name Signature
Signature: ()Ljava/util/HashMap<Ljava/lang/String;Lsun/net/www/protocol/http/Negotiator;>;
protected boolean useAuthCache();
descriptor: ()Z
flags: (0x0004) ACC_PROTECTED
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokespecial sun.net.www.protocol.http.AuthenticationInfo.useAuthCache:()Z
ifeq 1
getstatic sun.net.www.protocol.http.NegotiateAuthentication.cacheSPNEGO:Z
ifeq 1
iconst_1
ireturn
StackMap locals:
StackMap stack:
1: iconst_0
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lsun/net/www/protocol/http/NegotiateAuthentication;
java.lang.String (java.net.URL, java.lang.String);
descriptor: (Ljava/net/URL;Ljava/lang/String;)Ljava/lang/String;
flags: (0x0000)
Code:
stack=3, locals=3, args_size=3
start local 0 start local 1 start local 2 0: new java.lang.RuntimeException
dup
ldc "getHeaderValue not supported"
invokespecial java.lang.RuntimeException.<init>:(Ljava/lang/String;)V
athrow
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lsun/net/www/protocol/http/NegotiateAuthentication;
0 1 1 url Ljava/net/URL;
0 1 2 method Ljava/lang/String;
MethodParameters:
Name Flags
url
method
boolean isAuthorizationStale(java.lang.String);
descriptor: (Ljava/lang/String;)Z
flags: (0x0000)
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/NegotiateAuthentication;
0 1 1 header Ljava/lang/String;
MethodParameters:
Name Flags
header
synchronized 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: (0x0020) ACC_SYNCHRONIZED
Code:
stack=4, locals=7, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aconst_null
astore 5
start local 5 1: aload 3
ldc "\\s+"
invokevirtual java.lang.String.split:(Ljava/lang/String;)[Ljava/lang/String;
astore 6
start local 6 2: aload 6
arraylength
iconst_1
if_icmple 4
3: new sun.misc.BASE64Decoder
dup
invokespecial sun.misc.BASE64Decoder.<init>:()V
aload 6
iconst_1
aaload
invokevirtual sun.misc.BASE64Decoder.decodeBuffer:(Ljava/lang/String;)[B
astore 5
4: StackMap locals: sun.net.www.protocol.http.NegotiateAuthentication sun.net.www.protocol.http.HttpURLConnection sun.net.www.HeaderParser java.lang.String top byte[] java.lang.String[]
StackMap stack:
new java.lang.StringBuilder
dup
aload 0
getfield sun.net.www.protocol.http.NegotiateAuthentication.hci:Lsun/net/www/protocol/http/HttpCallerInfo;
getfield sun.net.www.protocol.http.HttpCallerInfo.scheme: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;
new sun.net.www.protocol.http.NegotiateAuthentication$B64Encoder
dup
aload 0
invokespecial sun.net.www.protocol.http.NegotiateAuthentication$B64Encoder.<init>:(Lsun/net/www/protocol/http/NegotiateAuthentication;)V
5: aload 5
ifnonnull 6
aload 0
invokevirtual sun.net.www.protocol.http.NegotiateAuthentication.firstToken:()[B
goto 7
StackMap locals: sun.net.www.protocol.http.NegotiateAuthentication sun.net.www.protocol.http.HttpURLConnection sun.net.www.HeaderParser java.lang.String top byte[] java.lang.String[]
StackMap stack: java.lang.StringBuilder sun.net.www.protocol.http.NegotiateAuthentication$B64Encoder
6: aload 0
aload 5
invokevirtual sun.net.www.protocol.http.NegotiateAuthentication.nextToken:([B)[B
7: StackMap locals: sun.net.www.protocol.http.NegotiateAuthentication sun.net.www.protocol.http.HttpURLConnection sun.net.www.HeaderParser java.lang.String top byte[] java.lang.String[]
StackMap stack: java.lang.StringBuilder sun.net.www.protocol.http.NegotiateAuthentication$B64Encoder byte[]
invokevirtual sun.net.www.protocol.http.NegotiateAuthentication$B64Encoder.encode:([B)Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
astore 4
start local 4 8: aload 1
aload 0
invokevirtual sun.net.www.protocol.http.NegotiateAuthentication.getHeaderName:()Ljava/lang/String;
aload 4
invokevirtual sun.net.www.protocol.http.HttpURLConnection.setAuthenticationProperty:(Ljava/lang/String;Ljava/lang/String;)V
9: iconst_1
ireturn
end local 6 end local 5 end local 4 10: StackMap locals: sun.net.www.protocol.http.NegotiateAuthentication sun.net.www.protocol.http.HttpURLConnection sun.net.www.HeaderParser java.lang.String
StackMap stack: java.io.IOException
pop
11: iconst_0
ireturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 12 0 this Lsun/net/www/protocol/http/NegotiateAuthentication;
0 12 1 conn Lsun/net/www/protocol/http/HttpURLConnection;
0 12 2 p Lsun/net/www/HeaderParser;
0 12 3 raw Ljava/lang/String;
8 10 4 response Ljava/lang/String;
1 10 5 incoming [B
2 10 6 parts [Ljava/lang/String;
Exception table:
from to target type
0 9 10 Class java.io.IOException
MethodParameters:
Name Flags
conn
p
raw
private byte[] firstToken();
descriptor: ()[B
flags: (0x0002) ACC_PRIVATE
Code:
stack=3, locals=4, args_size=1
start local 0 0: aload 0
aconst_null
putfield sun.net.www.protocol.http.NegotiateAuthentication.negotiator:Lsun/net/www/protocol/http/Negotiator;
1: invokestatic sun.net.www.protocol.http.NegotiateAuthentication.getCache:()Ljava/util/HashMap;
astore 1
start local 1 2: aload 1
ifnull 6
3: aload 0
aload 1
aload 0
invokevirtual sun.net.www.protocol.http.NegotiateAuthentication.getHost:()Ljava/lang/String;
invokevirtual java.util.HashMap.get:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast sun.net.www.protocol.http.Negotiator
putfield sun.net.www.protocol.http.NegotiateAuthentication.negotiator:Lsun/net/www/protocol/http/Negotiator;
4: aload 0
getfield sun.net.www.protocol.http.NegotiateAuthentication.negotiator:Lsun/net/www/protocol/http/Negotiator;
ifnull 6
5: aload 1
aload 0
invokevirtual sun.net.www.protocol.http.NegotiateAuthentication.getHost:()Ljava/lang/String;
invokevirtual java.util.HashMap.remove:(Ljava/lang/Object;)Ljava/lang/Object;
pop
6: StackMap locals: java.util.HashMap
StackMap stack:
aload 0
getfield sun.net.www.protocol.http.NegotiateAuthentication.negotiator:Lsun/net/www/protocol/http/Negotiator;
ifnonnull 13
7: aload 0
aload 0
getfield sun.net.www.protocol.http.NegotiateAuthentication.hci:Lsun/net/www/protocol/http/HttpCallerInfo;
invokestatic sun.net.www.protocol.http.Negotiator.getSupported:(Lsun/net/www/protocol/http/HttpCallerInfo;)Lsun/net/www/protocol/http/Negotiator;
putfield sun.net.www.protocol.http.NegotiateAuthentication.negotiator:Lsun/net/www/protocol/http/Negotiator;
8: goto 13
StackMap locals:
StackMap stack: java.lang.Exception
9: astore 2
start local 2 10: new java.io.IOException
dup
ldc "Cannot initialize Negotiator"
invokespecial java.io.IOException.<init>:(Ljava/lang/String;)V
astore 3
start local 3 11: aload 3
aload 2
invokevirtual java.io.IOException.initCause:(Ljava/lang/Throwable;)Ljava/lang/Throwable;
pop
12: aload 3
athrow
end local 3 end local 2 13: StackMap locals:
StackMap stack:
aload 0
getfield sun.net.www.protocol.http.NegotiateAuthentication.negotiator:Lsun/net/www/protocol/http/Negotiator;
invokevirtual sun.net.www.protocol.http.Negotiator.firstToken:()[B
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 14 0 this Lsun/net/www/protocol/http/NegotiateAuthentication;
2 14 1 cachedMap Ljava/util/HashMap<Ljava/lang/String;Lsun/net/www/protocol/http/Negotiator;>;
10 13 2 e Ljava/lang/Exception;
11 13 3 ioe Ljava/io/IOException;
Exception table:
from to target type
7 8 9 Class java.lang.Exception
Exceptions:
throws java.io.IOException
private byte[] nextToken(byte[]);
descriptor: ([B)[B
flags: (0x0002) ACC_PRIVATE
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield sun.net.www.protocol.http.NegotiateAuthentication.negotiator:Lsun/net/www/protocol/http/Negotiator;
aload 1
invokevirtual sun.net.www.protocol.http.Negotiator.nextToken:([B)[B
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lsun/net/www/protocol/http/NegotiateAuthentication;
0 1 1 token [B
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
token
public void checkResponse(java.lang.String, java.lang.String, java.net.URL);
descriptor: (Ljava/lang/String;Ljava/lang/String;Ljava/net/URL;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=0, locals=4, args_size=4
start local 0 start local 1 start local 2 start local 3 0: return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lsun/net/www/protocol/http/NegotiateAuthentication;
0 1 1 header Ljava/lang/String;
0 1 2 method Ljava/lang/String;
0 1 3 url Ljava/net/URL;
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
header
method
url
}
SourceFile: "NegotiateAuthentication.java"
NestMembers:
sun.net.www.protocol.http.NegotiateAuthentication$1 sun.net.www.protocol.http.NegotiateAuthentication$B64Encoder
InnerClasses:
public final RequestorType = java.net.Authenticator$RequestorType of java.net.Authenticator
sun.net.www.protocol.http.NegotiateAuthentication$1
B64Encoder = sun.net.www.protocol.http.NegotiateAuthentication$B64Encoder of sun.net.www.protocol.http.NegotiateAuthentication