public class com.microsoft.azure.credentials.DelegatedTokenCredentials extends com.microsoft.azure.credentials.AzureTokenCredentials
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: com.microsoft.azure.credentials.DelegatedTokenCredentials
super_class: com.microsoft.azure.credentials.AzureTokenCredentials
{
private java.util.Map<java.lang.String, com.microsoft.aad.adal4j.AuthenticationResult> tokens;
descriptor: Ljava/util/Map;
flags: (0x0002) ACC_PRIVATE
Signature: Ljava/util/Map<Ljava/lang/String;Lcom/microsoft/aad/adal4j/AuthenticationResult;>;
private java.lang.String redirectUrl;
descriptor: Ljava/lang/String;
flags: (0x0002) ACC_PRIVATE
private java.lang.String authorizationCode;
descriptor: Ljava/lang/String;
flags: (0x0002) ACC_PRIVATE
private com.microsoft.azure.credentials.ApplicationTokenCredentials applicationCredentials;
descriptor: Lcom/microsoft/azure/credentials/ApplicationTokenCredentials;
flags: (0x0002) ACC_PRIVATE
public void <init>(com.microsoft.azure.credentials.ApplicationTokenCredentials, java.lang.String);
descriptor: (Lcom/microsoft/azure/credentials/ApplicationTokenCredentials;Ljava/lang/String;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
aload 1
invokevirtual com.microsoft.azure.credentials.ApplicationTokenCredentials.environment:()Lcom/microsoft/azure/AzureEnvironment;
aload 1
invokevirtual com.microsoft.azure.credentials.ApplicationTokenCredentials.domain:()Ljava/lang/String;
invokespecial com.microsoft.azure.credentials.AzureTokenCredentials.<init>:(Lcom/microsoft/azure/AzureEnvironment;Ljava/lang/String;)V
1: aload 0
aload 1
putfield com.microsoft.azure.credentials.DelegatedTokenCredentials.applicationCredentials:Lcom/microsoft/azure/credentials/ApplicationTokenCredentials;
2: aload 0
new java.util.concurrent.ConcurrentHashMap
dup
invokespecial java.util.concurrent.ConcurrentHashMap.<init>:()V
putfield com.microsoft.azure.credentials.DelegatedTokenCredentials.tokens:Ljava/util/Map;
3: aload 0
aload 2
putfield com.microsoft.azure.credentials.DelegatedTokenCredentials.redirectUrl:Ljava/lang/String;
4: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lcom/microsoft/azure/credentials/DelegatedTokenCredentials;
0 5 1 applicationCredentials Lcom/microsoft/azure/credentials/ApplicationTokenCredentials;
0 5 2 redirectUrl Ljava/lang/String;
MethodParameters:
Name Flags
applicationCredentials
redirectUrl
public void <init>(com.microsoft.azure.credentials.ApplicationTokenCredentials, java.lang.String, java.lang.String);
descriptor: (Lcom/microsoft/azure/credentials/ApplicationTokenCredentials;Ljava/lang/String;Ljava/lang/String;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=4, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 0
aload 1
aload 2
invokespecial com.microsoft.azure.credentials.DelegatedTokenCredentials.<init>:(Lcom/microsoft/azure/credentials/ApplicationTokenCredentials;Ljava/lang/String;)V
1: aload 0
aload 3
putfield com.microsoft.azure.credentials.DelegatedTokenCredentials.authorizationCode:Ljava/lang/String;
2: return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lcom/microsoft/azure/credentials/DelegatedTokenCredentials;
0 3 1 applicationCredentials Lcom/microsoft/azure/credentials/ApplicationTokenCredentials;
0 3 2 redirectUrl Ljava/lang/String;
0 3 3 authorizationCode Ljava/lang/String;
MethodParameters:
Name Flags
applicationCredentials
redirectUrl
authorizationCode
public static com.microsoft.azure.credentials.DelegatedTokenCredentials fromFile(java.io.File, java.lang.String);
descriptor: (Ljava/io/File;Ljava/lang/String;)Lcom/microsoft/azure/credentials/DelegatedTokenCredentials;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=4, locals=2, args_size=2
start local 0 start local 1 0: new com.microsoft.azure.credentials.DelegatedTokenCredentials
dup
aload 0
invokestatic com.microsoft.azure.credentials.ApplicationTokenCredentials.fromFile:(Ljava/io/File;)Lcom/microsoft/azure/credentials/ApplicationTokenCredentials;
aload 1
invokespecial com.microsoft.azure.credentials.DelegatedTokenCredentials.<init>:(Lcom/microsoft/azure/credentials/ApplicationTokenCredentials;Ljava/lang/String;)V
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 authFile Ljava/io/File;
0 1 1 redirectUrl Ljava/lang/String;
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
authFile
redirectUrl
public static com.microsoft.azure.credentials.DelegatedTokenCredentials fromFile(java.io.File, java.lang.String, java.lang.String);
descriptor: (Ljava/io/File;Ljava/lang/String;Ljava/lang/String;)Lcom/microsoft/azure/credentials/DelegatedTokenCredentials;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=5, locals=3, args_size=3
start local 0 start local 1 start local 2 0: new com.microsoft.azure.credentials.DelegatedTokenCredentials
dup
aload 0
invokestatic com.microsoft.azure.credentials.ApplicationTokenCredentials.fromFile:(Ljava/io/File;)Lcom/microsoft/azure/credentials/ApplicationTokenCredentials;
aload 1
aload 2
invokespecial com.microsoft.azure.credentials.DelegatedTokenCredentials.<init>:(Lcom/microsoft/azure/credentials/ApplicationTokenCredentials;Ljava/lang/String;Ljava/lang/String;)V
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 authFile Ljava/io/File;
0 1 1 redirectUrl Ljava/lang/String;
0 1 2 authorizationCode Ljava/lang/String;
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
authFile
redirectUrl
authorizationCode
public java.lang.String clientId();
descriptor: ()Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield com.microsoft.azure.credentials.DelegatedTokenCredentials.applicationCredentials:Lcom/microsoft/azure/credentials/ApplicationTokenCredentials;
invokevirtual com.microsoft.azure.credentials.ApplicationTokenCredentials.clientId:()Ljava/lang/String;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/microsoft/azure/credentials/DelegatedTokenCredentials;
public java.lang.String generateAuthenticationUrl();
descriptor: ()Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=1, args_size=1
start local 0 0: ldc "%s/%s/oauth2/authorize?client_id=%s&response_type=code&redirect_uri=%s&response_mode=query&state=%s"
iconst_5
anewarray java.lang.Object
dup
iconst_0
1: aload 0
invokevirtual com.microsoft.azure.credentials.DelegatedTokenCredentials.environment:()Lcom/microsoft/azure/AzureEnvironment;
invokevirtual com.microsoft.azure.AzureEnvironment.activeDirectoryEndpoint:()Ljava/lang/String;
aastore
dup
iconst_1
aload 0
invokevirtual com.microsoft.azure.credentials.DelegatedTokenCredentials.domain:()Ljava/lang/String;
aastore
dup
iconst_2
aload 0
invokevirtual com.microsoft.azure.credentials.DelegatedTokenCredentials.clientId:()Ljava/lang/String;
aastore
dup
iconst_3
aload 0
getfield com.microsoft.azure.credentials.DelegatedTokenCredentials.redirectUrl:Ljava/lang/String;
aastore
dup
iconst_4
invokestatic java.util.UUID.randomUUID:()Ljava/util/UUID;
aastore
2: invokestatic java.lang.String.format:(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lcom/microsoft/azure/credentials/DelegatedTokenCredentials;
public java.lang.String generateAuthenticationUrl(com.microsoft.azure.credentials.DelegatedTokenCredentials$ResponseMode, java.lang.String);
descriptor: (Lcom/microsoft/azure/credentials/DelegatedTokenCredentials$ResponseMode;Ljava/lang/String;)Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=3, args_size=3
start local 0 start local 1 start local 2 0: ldc "%s/%s/oauth2/authorize?client_id=%s&response_type=code&redirect_uri=%s&response_mode=%s&state=%s"
bipush 6
anewarray java.lang.Object
dup
iconst_0
1: aload 0
invokevirtual com.microsoft.azure.credentials.DelegatedTokenCredentials.environment:()Lcom/microsoft/azure/AzureEnvironment;
invokevirtual com.microsoft.azure.AzureEnvironment.activeDirectoryEndpoint:()Ljava/lang/String;
aastore
dup
iconst_1
aload 0
invokevirtual com.microsoft.azure.credentials.DelegatedTokenCredentials.domain:()Ljava/lang/String;
aastore
dup
iconst_2
aload 0
invokevirtual com.microsoft.azure.credentials.DelegatedTokenCredentials.clientId:()Ljava/lang/String;
aastore
dup
iconst_3
aload 0
getfield com.microsoft.azure.credentials.DelegatedTokenCredentials.redirectUrl:Ljava/lang/String;
aastore
dup
iconst_4
aload 1
getfield com.microsoft.azure.credentials.DelegatedTokenCredentials$ResponseMode.value:Ljava/lang/String;
aastore
dup
iconst_5
aload 2
aastore
2: invokestatic java.lang.String.format:(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lcom/microsoft/azure/credentials/DelegatedTokenCredentials;
0 3 1 responseMode Lcom/microsoft/azure/credentials/DelegatedTokenCredentials$ResponseMode;
0 3 2 state Ljava/lang/String;
MethodParameters:
Name Flags
responseMode
state
public void setAuthorizationCode(java.lang.String);
descriptor: (Ljava/lang/String;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
putfield com.microsoft.azure.credentials.DelegatedTokenCredentials.authorizationCode:Ljava/lang/String;
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lcom/microsoft/azure/credentials/DelegatedTokenCredentials;
0 2 1 authorizationCode Ljava/lang/String;
MethodParameters:
Name Flags
authorizationCode
public synchronized java.lang.String getToken(java.lang.String);
descriptor: (Ljava/lang/String;)Ljava/lang/String;
flags: (0x0021) ACC_PUBLIC, ACC_SYNCHRONIZED
Code:
stack=3, locals=4, args_size=2
start local 0 start local 1 0: aload 0
getfield com.microsoft.azure.credentials.DelegatedTokenCredentials.tokens:Ljava/util/Map;
aload 1
invokeinterface java.util.Map.get:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast com.microsoft.aad.adal4j.AuthenticationResult
astore 2
start local 2 1: aload 2
ifnull 3
aload 2
invokevirtual com.microsoft.aad.adal4j.AuthenticationResult.getExpiresOnDate:()Ljava/util/Date;
new java.util.Date
dup
invokespecial java.util.Date.<init>:()V
invokevirtual java.util.Date.after:(Ljava/util/Date;)Z
ifeq 3
2: aload 2
invokevirtual com.microsoft.aad.adal4j.AuthenticationResult.getAccessToken:()Ljava/lang/String;
areturn
3: StackMap locals: com.microsoft.aad.adal4j.AuthenticationResult
StackMap stack:
aload 2
ifnull 4
iconst_1
goto 5
StackMap locals:
StackMap stack:
4: iconst_0
StackMap locals:
StackMap stack: int
5: istore 3
start local 3 6: aload 2
ifnonnull 9
aload 0
getfield com.microsoft.azure.credentials.DelegatedTokenCredentials.tokens:Ljava/util/Map;
invokeinterface java.util.Map.isEmpty:()Z
ifne 9
7: new java.util.ArrayList
dup
aload 0
getfield com.microsoft.azure.credentials.DelegatedTokenCredentials.tokens:Ljava/util/Map;
invokeinterface java.util.Map.values:()Ljava/util/Collection;
invokespecial java.util.ArrayList.<init>:(Ljava/util/Collection;)V
iconst_0
invokevirtual java.util.ArrayList.get:(I)Ljava/lang/Object;
checkcast com.microsoft.aad.adal4j.AuthenticationResult
astore 2
8: aload 2
invokevirtual com.microsoft.aad.adal4j.AuthenticationResult.isMultipleResourceRefreshToken:()Z
istore 3
9: StackMap locals: int
StackMap stack:
iload 3
ifeq 11
10: aload 0
aload 1
aload 2
invokevirtual com.microsoft.aad.adal4j.AuthenticationResult.getRefreshToken:()Ljava/lang/String;
invokevirtual com.microsoft.azure.credentials.DelegatedTokenCredentials.acquireAccessTokenFromRefreshToken:(Ljava/lang/String;Ljava/lang/String;)Lcom/microsoft/aad/adal4j/AuthenticationResult;
astore 2
11: StackMap locals:
StackMap stack:
aload 2
ifnonnull 13
12: aload 0
aload 1
invokevirtual com.microsoft.azure.credentials.DelegatedTokenCredentials.acquireNewAccessToken:(Ljava/lang/String;)Lcom/microsoft/aad/adal4j/AuthenticationResult;
astore 2
13: StackMap locals:
StackMap stack:
aload 0
getfield com.microsoft.azure.credentials.DelegatedTokenCredentials.tokens:Ljava/util/Map;
aload 1
aload 2
invokeinterface java.util.Map.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
14: aload 2
invokevirtual com.microsoft.aad.adal4j.AuthenticationResult.getAccessToken:()Ljava/lang/String;
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 15 0 this Lcom/microsoft/azure/credentials/DelegatedTokenCredentials;
0 15 1 resource Ljava/lang/String;
1 15 2 authenticationResult Lcom/microsoft/aad/adal4j/AuthenticationResult;
6 15 3 shouldRefresh Z
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
resource
com.microsoft.aad.adal4j.AuthenticationResult acquireNewAccessToken(java.lang.String);
descriptor: (Ljava/lang/String;)Lcom/microsoft/aad/adal4j/AuthenticationResult;
flags: (0x0000)
Code:
stack=8, locals=8, args_size=2
start local 0 start local 1 0: aload 0
getfield com.microsoft.azure.credentials.DelegatedTokenCredentials.authorizationCode:Ljava/lang/String;
ifnonnull 2
1: new java.lang.IllegalArgumentException
dup
ldc "You must acquire an authorization code by redirecting to the authentication URL"
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
2: StackMap locals:
StackMap stack:
new java.lang.StringBuilder
dup
aload 0
invokevirtual com.microsoft.azure.credentials.DelegatedTokenCredentials.environment:()Lcom/microsoft/azure/AzureEnvironment;
invokevirtual com.microsoft.azure.AzureEnvironment.activeDirectoryEndpoint:()Ljava/lang/String;
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 0
invokevirtual com.microsoft.azure.credentials.DelegatedTokenCredentials.domain:()Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
astore 2
start local 2 3: invokestatic java.util.concurrent.Executors.newSingleThreadExecutor:()Ljava/util/concurrent/ExecutorService;
astore 3
start local 3 4: new com.microsoft.aad.adal4j.AuthenticationContext
dup
aload 2
iconst_0
aload 3
invokespecial com.microsoft.aad.adal4j.AuthenticationContext.<init>:(Ljava/lang/String;ZLjava/util/concurrent/ExecutorService;)V
astore 4
start local 4 5: aload 0
invokevirtual com.microsoft.azure.credentials.DelegatedTokenCredentials.proxy:()Ljava/net/Proxy;
ifnull 7
6: aload 4
aload 0
invokevirtual com.microsoft.azure.credentials.DelegatedTokenCredentials.proxy:()Ljava/net/Proxy;
invokevirtual com.microsoft.aad.adal4j.AuthenticationContext.setProxy:(Ljava/net/Proxy;)V
7: StackMap locals: java.lang.String java.util.concurrent.ExecutorService com.microsoft.aad.adal4j.AuthenticationContext
StackMap stack:
aload 0
getfield com.microsoft.azure.credentials.DelegatedTokenCredentials.applicationCredentials:Lcom/microsoft/azure/credentials/ApplicationTokenCredentials;
invokevirtual com.microsoft.azure.credentials.ApplicationTokenCredentials.clientSecret:()Ljava/lang/String;
ifnull 17
8: aload 4
9: aload 0
getfield com.microsoft.azure.credentials.DelegatedTokenCredentials.authorizationCode:Ljava/lang/String;
10: new java.net.URI
dup
aload 0
getfield com.microsoft.azure.credentials.DelegatedTokenCredentials.redirectUrl:Ljava/lang/String;
invokespecial java.net.URI.<init>:(Ljava/lang/String;)V
11: new com.microsoft.aad.adal4j.ClientCredential
dup
aload 0
getfield com.microsoft.azure.credentials.DelegatedTokenCredentials.applicationCredentials:Lcom/microsoft/azure/credentials/ApplicationTokenCredentials;
invokevirtual com.microsoft.azure.credentials.ApplicationTokenCredentials.clientId:()Ljava/lang/String;
aload 0
getfield com.microsoft.azure.credentials.DelegatedTokenCredentials.applicationCredentials:Lcom/microsoft/azure/credentials/ApplicationTokenCredentials;
invokevirtual com.microsoft.azure.credentials.ApplicationTokenCredentials.clientSecret:()Ljava/lang/String;
invokespecial com.microsoft.aad.adal4j.ClientCredential.<init>:(Ljava/lang/String;Ljava/lang/String;)V
12: aload 1
aconst_null
13: invokevirtual com.microsoft.aad.adal4j.AuthenticationContext.acquireTokenByAuthorizationCode:(Ljava/lang/String;Ljava/net/URI;Lcom/microsoft/aad/adal4j/ClientCredential;Ljava/lang/String;Lcom/microsoft/aad/adal4j/AuthenticationCallback;)Ljava/util/concurrent/Future;
14: invokeinterface java.util.concurrent.Future.get:()Ljava/lang/Object;
checkcast com.microsoft.aad.adal4j.AuthenticationResult
astore 7
15: aload 3
invokeinterface java.util.concurrent.ExecutorService.shutdown:()V
16: aload 7
areturn
17: StackMap locals:
StackMap stack:
aload 0
getfield com.microsoft.azure.credentials.DelegatedTokenCredentials.applicationCredentials:Lcom/microsoft/azure/credentials/ApplicationTokenCredentials;
invokevirtual com.microsoft.azure.credentials.ApplicationTokenCredentials.clientCertificate:()[B
ifnull 31
aload 0
getfield com.microsoft.azure.credentials.DelegatedTokenCredentials.applicationCredentials:Lcom/microsoft/azure/credentials/ApplicationTokenCredentials;
invokevirtual com.microsoft.azure.credentials.ApplicationTokenCredentials.clientCertificatePassword:()Ljava/lang/String;
ifnull 31
18: aload 4
19: aload 0
getfield com.microsoft.azure.credentials.DelegatedTokenCredentials.authorizationCode:Ljava/lang/String;
20: new java.net.URI
dup
aload 0
getfield com.microsoft.azure.credentials.DelegatedTokenCredentials.redirectUrl:Ljava/lang/String;
invokespecial java.net.URI.<init>:(Ljava/lang/String;)V
21: aload 0
getfield com.microsoft.azure.credentials.DelegatedTokenCredentials.applicationCredentials:Lcom/microsoft/azure/credentials/ApplicationTokenCredentials;
invokevirtual com.microsoft.azure.credentials.ApplicationTokenCredentials.clientId:()Ljava/lang/String;
22: new java.io.ByteArrayInputStream
dup
aload 0
getfield com.microsoft.azure.credentials.DelegatedTokenCredentials.applicationCredentials:Lcom/microsoft/azure/credentials/ApplicationTokenCredentials;
invokevirtual com.microsoft.azure.credentials.ApplicationTokenCredentials.clientCertificate:()[B
invokespecial java.io.ByteArrayInputStream.<init>:([B)V
23: aload 0
getfield com.microsoft.azure.credentials.DelegatedTokenCredentials.applicationCredentials:Lcom/microsoft/azure/credentials/ApplicationTokenCredentials;
invokevirtual com.microsoft.azure.credentials.ApplicationTokenCredentials.clientCertificatePassword:()Ljava/lang/String;
24: invokestatic com.microsoft.aad.adal4j.AsymmetricKeyCredential.create:(Ljava/lang/String;Ljava/io/InputStream;Ljava/lang/String;)Lcom/microsoft/aad/adal4j/AsymmetricKeyCredential;
25: aload 1
26: aconst_null
27: invokevirtual com.microsoft.aad.adal4j.AuthenticationContext.acquireTokenByAuthorizationCode:(Ljava/lang/String;Ljava/net/URI;Lcom/microsoft/aad/adal4j/AsymmetricKeyCredential;Ljava/lang/String;Lcom/microsoft/aad/adal4j/AuthenticationCallback;)Ljava/util/concurrent/Future;
28: invokeinterface java.util.concurrent.Future.get:()Ljava/lang/Object;
checkcast com.microsoft.aad.adal4j.AuthenticationResult
astore 7
29: aload 3
invokeinterface java.util.concurrent.ExecutorService.shutdown:()V
30: aload 7
areturn
31: StackMap locals:
StackMap stack:
aload 0
getfield com.microsoft.azure.credentials.DelegatedTokenCredentials.applicationCredentials:Lcom/microsoft/azure/credentials/ApplicationTokenCredentials;
invokevirtual com.microsoft.azure.credentials.ApplicationTokenCredentials.clientCertificate:()[B
ifnull 45
32: aload 4
33: aload 0
getfield com.microsoft.azure.credentials.DelegatedTokenCredentials.authorizationCode:Ljava/lang/String;
34: new java.net.URI
dup
aload 0
getfield com.microsoft.azure.credentials.DelegatedTokenCredentials.redirectUrl:Ljava/lang/String;
invokespecial java.net.URI.<init>:(Ljava/lang/String;)V
35: aload 0
invokevirtual com.microsoft.azure.credentials.DelegatedTokenCredentials.clientId:()Ljava/lang/String;
36: new java.lang.String
dup
aload 0
getfield com.microsoft.azure.credentials.DelegatedTokenCredentials.applicationCredentials:Lcom/microsoft/azure/credentials/ApplicationTokenCredentials;
invokevirtual com.microsoft.azure.credentials.ApplicationTokenCredentials.clientCertificate:()[B
invokespecial java.lang.String.<init>:([B)V
invokestatic com.microsoft.azure.credentials.ApplicationTokenCredentials.privateKeyFromPem:(Ljava/lang/String;)Ljava/security/PrivateKey;
37: new java.lang.String
dup
aload 0
getfield com.microsoft.azure.credentials.DelegatedTokenCredentials.applicationCredentials:Lcom/microsoft/azure/credentials/ApplicationTokenCredentials;
invokevirtual com.microsoft.azure.credentials.ApplicationTokenCredentials.clientCertificate:()[B
invokespecial java.lang.String.<init>:([B)V
invokestatic com.microsoft.azure.credentials.ApplicationTokenCredentials.publicKeyFromPem:(Ljava/lang/String;)Ljava/security/cert/X509Certificate;
38: invokestatic com.microsoft.aad.adal4j.AsymmetricKeyCredential.create:(Ljava/lang/String;Ljava/security/PrivateKey;Ljava/security/cert/X509Certificate;)Lcom/microsoft/aad/adal4j/AsymmetricKeyCredential;
39: aload 1
40: aconst_null
41: invokevirtual com.microsoft.aad.adal4j.AuthenticationContext.acquireTokenByAuthorizationCode:(Ljava/lang/String;Ljava/net/URI;Lcom/microsoft/aad/adal4j/AsymmetricKeyCredential;Ljava/lang/String;Lcom/microsoft/aad/adal4j/AuthenticationCallback;)Ljava/util/concurrent/Future;
42: invokeinterface java.util.concurrent.Future.get:()Ljava/lang/Object;
checkcast com.microsoft.aad.adal4j.AuthenticationResult
astore 7
43: aload 3
invokeinterface java.util.concurrent.ExecutorService.shutdown:()V
44: aload 7
areturn
45: StackMap locals:
StackMap stack:
new com.microsoft.aad.adal4j.AuthenticationException
dup
ldc "Please provide either a non-null secret or a non-null certificate."
invokespecial com.microsoft.aad.adal4j.AuthenticationException.<init>:(Ljava/lang/String;)V
athrow
46: StackMap locals:
StackMap stack: java.lang.Exception
astore 5
start local 5 47: new java.io.IOException
dup
aload 5
invokevirtual java.lang.Exception.getMessage:()Ljava/lang/String;
aload 5
invokespecial java.io.IOException.<init>:(Ljava/lang/String;Ljava/lang/Throwable;)V
athrow
end local 5 48: StackMap locals:
StackMap stack: java.lang.Throwable
astore 6
49: aload 3
invokeinterface java.util.concurrent.ExecutorService.shutdown:()V
50: aload 6
athrow
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 51 0 this Lcom/microsoft/azure/credentials/DelegatedTokenCredentials;
0 51 1 resource Ljava/lang/String;
3 51 2 authorityUrl Ljava/lang/String;
4 51 3 executor Ljava/util/concurrent/ExecutorService;
5 51 4 context Lcom/microsoft/aad/adal4j/AuthenticationContext;
47 48 5 e Ljava/lang/Exception;
Exception table:
from to target type
7 15 46 Class java.lang.Exception
17 29 46 Class java.lang.Exception
31 43 46 Class java.lang.Exception
45 46 46 Class java.lang.Exception
7 15 48 any
17 29 48 any
31 43 48 any
45 48 48 any
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
resource
private com.microsoft.aad.adal4j.AuthenticationResult acquireAccessTokenFromRefreshToken(java.lang.String, java.lang.String);
descriptor: (Ljava/lang/String;Ljava/lang/String;)Lcom/microsoft/aad/adal4j/AuthenticationResult;
flags: (0x0002) ACC_PRIVATE
Code:
stack=6, locals=9, args_size=3
start local 0 start local 1 start local 2 0: new java.lang.StringBuilder
dup
aload 0
invokevirtual com.microsoft.azure.credentials.DelegatedTokenCredentials.environment:()Lcom/microsoft/azure/AzureEnvironment;
invokevirtual com.microsoft.azure.AzureEnvironment.activeDirectoryEndpoint:()Ljava/lang/String;
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 0
invokevirtual com.microsoft.azure.credentials.DelegatedTokenCredentials.domain:()Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
astore 3
start local 3 1: invokestatic java.util.concurrent.Executors.newSingleThreadExecutor:()Ljava/util/concurrent/ExecutorService;
astore 4
start local 4 2: new com.microsoft.aad.adal4j.AuthenticationContext
dup
aload 3
iconst_0
aload 4
invokespecial com.microsoft.aad.adal4j.AuthenticationContext.<init>:(Ljava/lang/String;ZLjava/util/concurrent/ExecutorService;)V
astore 5
start local 5 3: aload 0
invokevirtual com.microsoft.azure.credentials.DelegatedTokenCredentials.proxy:()Ljava/net/Proxy;
ifnull 5
4: aload 5
aload 0
invokevirtual com.microsoft.azure.credentials.DelegatedTokenCredentials.proxy:()Ljava/net/Proxy;
invokevirtual com.microsoft.aad.adal4j.AuthenticationContext.setProxy:(Ljava/net/Proxy;)V
5: StackMap locals: java.lang.String java.util.concurrent.ExecutorService com.microsoft.aad.adal4j.AuthenticationContext
StackMap stack:
aload 5
aload 2
6: new com.microsoft.aad.adal4j.ClientCredential
dup
aload 0
getfield com.microsoft.azure.credentials.DelegatedTokenCredentials.applicationCredentials:Lcom/microsoft/azure/credentials/ApplicationTokenCredentials;
invokevirtual com.microsoft.azure.credentials.ApplicationTokenCredentials.clientId:()Ljava/lang/String;
aload 0
getfield com.microsoft.azure.credentials.DelegatedTokenCredentials.applicationCredentials:Lcom/microsoft/azure/credentials/ApplicationTokenCredentials;
invokevirtual com.microsoft.azure.credentials.ApplicationTokenCredentials.clientSecret:()Ljava/lang/String;
invokespecial com.microsoft.aad.adal4j.ClientCredential.<init>:(Ljava/lang/String;Ljava/lang/String;)V
7: aload 1
aconst_null
8: invokevirtual com.microsoft.aad.adal4j.AuthenticationContext.acquireTokenByRefreshToken:(Ljava/lang/String;Lcom/microsoft/aad/adal4j/ClientCredential;Ljava/lang/String;Lcom/microsoft/aad/adal4j/AuthenticationCallback;)Ljava/util/concurrent/Future;
9: invokeinterface java.util.concurrent.Future.get:()Ljava/lang/Object;
checkcast com.microsoft.aad.adal4j.AuthenticationResult
astore 8
10: aload 4
invokeinterface java.util.concurrent.ExecutorService.shutdown:()V
11: aload 8
areturn
12: StackMap locals:
StackMap stack: java.lang.Exception
astore 6
start local 6 13: new java.io.IOException
dup
aload 6
invokevirtual java.lang.Exception.getMessage:()Ljava/lang/String;
aload 6
invokespecial java.io.IOException.<init>:(Ljava/lang/String;Ljava/lang/Throwable;)V
athrow
end local 6 14: StackMap locals:
StackMap stack: java.lang.Throwable
astore 7
15: aload 4
invokeinterface java.util.concurrent.ExecutorService.shutdown:()V
16: aload 7
athrow
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 17 0 this Lcom/microsoft/azure/credentials/DelegatedTokenCredentials;
0 17 1 resource Ljava/lang/String;
0 17 2 refreshToken Ljava/lang/String;
1 17 3 authorityUrl Ljava/lang/String;
2 17 4 executor Ljava/util/concurrent/ExecutorService;
3 17 5 context Lcom/microsoft/aad/adal4j/AuthenticationContext;
13 14 6 e Ljava/lang/Exception;
Exception table:
from to target type
5 10 12 Class java.lang.Exception
5 10 14 any
12 14 14 any
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
resource
refreshToken
}
SourceFile: "DelegatedTokenCredentials.java"
NestMembers:
com.microsoft.azure.credentials.DelegatedTokenCredentials$ResponseMode
InnerClasses:
public final ResponseMode = com.microsoft.azure.credentials.DelegatedTokenCredentials$ResponseMode of com.microsoft.azure.credentials.DelegatedTokenCredentials
public final SinceVersion = com.microsoft.azure.management.apigeneration.Beta$SinceVersion of com.microsoft.azure.management.apigeneration.Beta
RuntimeInvisibleAnnotations:
com.microsoft.azure.management.apigeneration.Beta(value = com.microsoft.azure.management.apigeneration.Beta$SinceVersion.V1_2_0:Lcom/microsoft/azure/management/apigeneration/Beta$SinceVersion;)