class com.microsoft.azure.credentials.AzureTokenCredentials$1 implements okhttp3.Authenticator
minor version: 0
major version: 59
flags: flags: (0x0020) ACC_SUPER
this_class: com.microsoft.azure.credentials.AzureTokenCredentials$1
super_class: java.lang.Object
{
final com.microsoft.azure.credentials.AzureTokenCredentials this$0;
descriptor: Lcom/microsoft/azure/credentials/AzureTokenCredentials;
flags: (0x1010) ACC_FINAL, ACC_SYNTHETIC
void <init>(com.microsoft.azure.credentials.AzureTokenCredentials);
descriptor: (Lcom/microsoft/azure/credentials/AzureTokenCredentials;)V
flags: (0x0000)
Code:
stack=2, locals=2, args_size=2
start local 0 // com.microsoft.azure.credentials.AzureTokenCredentials$1 this
0: .line 155
aload 0 /* this */
aload 1
putfield com.microsoft.azure.credentials.AzureTokenCredentials$1.this$0:Lcom/microsoft/azure/credentials/AzureTokenCredentials;
aload 0 /* this */
invokespecial java.lang.Object.<init>:()V
return
end local 0 // com.microsoft.azure.credentials.AzureTokenCredentials$1 this
LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/microsoft/azure/credentials/AzureTokenCredentials$1;
MethodParameters:
Name Flags
this$0 final
public okhttp3.Request authenticate(okhttp3.Route, okhttp3.Response);
descriptor: (Lokhttp3/Route;Lokhttp3/Response;)Lokhttp3/Request;
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=7, args_size=3
start local 0 // com.microsoft.azure.credentials.AzureTokenCredentials$1 this
start local 1 // okhttp3.Route route
start local 2 // okhttp3.Response response
0: .line 158
aload 2 /* response */
ldc "WWW-Authenticate"
invokevirtual okhttp3.Response.header:(Ljava/lang/String;)Ljava/lang/String;
astore 3 /* authenticateHeader */
start local 3 // java.lang.String authenticateHeader
1: .line 159
aload 3 /* authenticateHeader */
ifnull 10
aload 3 /* authenticateHeader */
invokevirtual java.lang.String.isEmpty:()Z
ifne 10
2: .line 160
ldc "resource=\"([a-zA-Z0-9.:/-_]+)\""
invokestatic java.util.regex.Pattern.compile:(Ljava/lang/String;)Ljava/util/regex/Pattern;
astore 4 /* pattern */
start local 4 // java.util.regex.Pattern pattern
3: .line 161
aload 4 /* pattern */
aload 3 /* authenticateHeader */
invokevirtual java.util.regex.Pattern.matcher:(Ljava/lang/CharSequence;)Ljava/util/regex/Matcher;
astore 5 /* matcher */
start local 5 // java.util.regex.Matcher matcher
4: .line 162
aload 5 /* matcher */
invokevirtual java.util.regex.Matcher.find:()Z
ifeq 10
5: .line 163
aload 5 /* matcher */
iconst_1
invokevirtual java.util.regex.Matcher.group:(I)Ljava/lang/String;
astore 6 /* resource */
start local 6 // java.lang.String resource
6: .line 164
aload 2 /* response */
invokevirtual okhttp3.Response.request:()Lokhttp3/Request;
invokevirtual okhttp3.Request.newBuilder:()Lokhttp3/Request$Builder;
7: .line 165
ldc "Authorization"
new java.lang.StringBuilder
dup
ldc "Bearer "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 0 /* this */
getfield com.microsoft.azure.credentials.AzureTokenCredentials$1.this$0:Lcom/microsoft/azure/credentials/AzureTokenCredentials;
aload 6 /* resource */
invokevirtual com.microsoft.azure.credentials.AzureTokenCredentials.getToken:(Ljava/lang/String;)Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokevirtual okhttp3.Request$Builder.header:(Ljava/lang/String;Ljava/lang/String;)Lokhttp3/Request$Builder;
8: .line 166
invokevirtual okhttp3.Request$Builder.build:()Lokhttp3/Request;
9: .line 164
areturn
end local 6 // java.lang.String resource
end local 5 // java.util.regex.Matcher matcher
end local 4 // java.util.regex.Pattern pattern
10: .line 170
StackMap locals: java.lang.String
StackMap stack:
aconst_null
areturn
end local 3 // java.lang.String authenticateHeader
end local 2 // okhttp3.Response response
end local 1 // okhttp3.Route route
end local 0 // com.microsoft.azure.credentials.AzureTokenCredentials$1 this
LocalVariableTable:
Start End Slot Name Signature
0 11 0 this Lcom/microsoft/azure/credentials/AzureTokenCredentials$1;
0 11 1 route Lokhttp3/Route;
0 11 2 response Lokhttp3/Response;
1 11 3 authenticateHeader Ljava/lang/String;
3 10 4 pattern Ljava/util/regex/Pattern;
4 10 5 matcher Ljava/util/regex/Matcher;
6 10 6 resource Ljava/lang/String;
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
route
response
}
SourceFile: "AzureTokenCredentials.java"
EnclosingMethod: com.microsoft.azure.credentials.AzureTokenCredentials.applyCredentialsFilter:(Lokhttp3/OkHttpClient$Builder;)V
NestHost: com.microsoft.azure.credentials.AzureTokenCredentials
InnerClasses:
com.microsoft.azure.credentials.AzureTokenCredentials$1
public final Builder = okhttp3.OkHttpClient$Builder of okhttp3.OkHttpClient
public Builder = okhttp3.Request$Builder of okhttp3.Request