public class sun.security.krb5.internal.CredentialsUtil
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: sun.security.krb5.internal.CredentialsUtil
super_class: java.lang.Object
{
private static boolean DEBUG;
descriptor: Z
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=1, locals=0, args_size=0
0: getstatic sun.security.krb5.internal.Krb5.DEBUG:Z
putstatic sun.security.krb5.internal.CredentialsUtil.DEBUG:Z
return
LocalVariableTable:
Start End Slot Name Signature
public void <init>();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokespecial java.lang.Object.<init>:()V
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lsun/security/krb5/internal/CredentialsUtil;
public static sun.security.krb5.Credentials acquireServiceCreds(java.lang.String, sun.security.krb5.Credentials);
descriptor: (Ljava/lang/String;Lsun/security/krb5/Credentials;)Lsun/security/krb5/Credentials;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=4, locals=16, args_size=2
start local 0 start local 1 0: new sun.security.krb5.PrincipalName
dup
aload 0
invokespecial sun.security.krb5.PrincipalName.<init>:(Ljava/lang/String;)V
astore 2
start local 2 1: aload 2
invokevirtual sun.security.krb5.PrincipalName.getRealmString:()Ljava/lang/String;
astore 3
start local 3 2: aload 1
invokevirtual sun.security.krb5.Credentials.getClient:()Lsun/security/krb5/PrincipalName;
invokevirtual sun.security.krb5.PrincipalName.getRealmString:()Ljava/lang/String;
astore 4
start local 4 3: aload 4
aload 3
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifeq 7
4: getstatic sun.security.krb5.internal.CredentialsUtil.DEBUG:Z
ifeq 6
5: getstatic java.lang.System.out:Ljava/io/PrintStream;
ldc ">>> Credentials acquireServiceCreds: same realm"
invokevirtual java.io.PrintStream.println:(Ljava/lang/String;)V
6: StackMap locals: sun.security.krb5.PrincipalName java.lang.String java.lang.String
StackMap stack:
aload 2
aload 1
invokestatic sun.security.krb5.internal.CredentialsUtil.serviceCreds:(Lsun/security/krb5/PrincipalName;Lsun/security/krb5/Credentials;)Lsun/security/krb5/Credentials;
areturn
7: StackMap locals:
StackMap stack:
aload 4
aload 3
invokestatic sun.security.krb5.Realm.getRealmsList:(Ljava/lang/String;Ljava/lang/String;)[Ljava/lang/String;
astore 5
start local 5 8: iconst_1
istore 6
start local 6 9: aload 5
ifnull 10
aload 5
arraylength
ifne 13
10: StackMap locals: java.lang.String[] int
StackMap stack:
getstatic sun.security.krb5.internal.CredentialsUtil.DEBUG:Z
ifeq 12
11: getstatic java.lang.System.out:Ljava/io/PrintStream;
ldc ">>> Credentials acquireServiceCreds: no realms list"
invokevirtual java.io.PrintStream.println:(Ljava/lang/String;)V
12: StackMap locals:
StackMap stack:
aconst_null
areturn
13: StackMap locals:
StackMap stack:
iconst_0
istore 7
start local 7 14: iconst_0
istore 8
start local 8 15: aconst_null
astore 9
start local 9 16: aconst_null
astore 10
start local 10 17: aconst_null
astore 11
start local 11 18: aconst_null
astore 12
start local 12 19: aconst_null
astore 13
start local 13 20: aload 1
astore 9
iconst_0
istore 7
goto 70
21: StackMap locals: java.lang.String sun.security.krb5.Credentials sun.security.krb5.PrincipalName java.lang.String java.lang.String java.lang.String[] int int int sun.security.krb5.Credentials sun.security.krb5.Credentials sun.security.krb5.Credentials sun.security.krb5.PrincipalName java.lang.String
StackMap stack:
aload 3
aload 5
iload 7
aaload
invokestatic sun.security.krb5.PrincipalName.tgsService:(Ljava/lang/String;Ljava/lang/String;)Lsun/security/krb5/PrincipalName;
astore 12
22: getstatic sun.security.krb5.internal.CredentialsUtil.DEBUG:Z
ifeq 24
23: getstatic java.lang.System.out:Ljava/io/PrintStream;
new java.lang.StringBuilder
dup
ldc ">>> Credentials acquireServiceCreds: main loop: ["
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
iload 7
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
ldc "] tempService="
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 12
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokevirtual java.io.PrintStream.println:(Ljava/lang/String;)V
24: StackMap locals:
StackMap stack:
aload 12
aload 9
invokestatic sun.security.krb5.internal.CredentialsUtil.serviceCreds:(Lsun/security/krb5/PrincipalName;Lsun/security/krb5/Credentials;)Lsun/security/krb5/Credentials;
astore 10
25: goto 28
StackMap locals:
StackMap stack: java.lang.Exception
26: pop
27: aconst_null
astore 10
28: StackMap locals:
StackMap stack:
aload 10
ifnonnull 43
29: getstatic sun.security.krb5.internal.CredentialsUtil.DEBUG:Z
ifeq 31
30: getstatic java.lang.System.out:Ljava/io/PrintStream;
ldc ">>> Credentials acquireServiceCreds: no tgt; searching backwards"
invokevirtual java.io.PrintStream.println:(Ljava/lang/String;)V
31: StackMap locals:
StackMap stack:
aconst_null
astore 10
iload 7
iconst_1
iadd
istore 8
32: goto 41
33: StackMap locals:
StackMap stack:
aload 5
iload 8
aaload
aload 5
iload 7
aaload
invokestatic sun.security.krb5.PrincipalName.tgsService:(Ljava/lang/String;Ljava/lang/String;)Lsun/security/krb5/PrincipalName;
astore 12
34: getstatic sun.security.krb5.internal.CredentialsUtil.DEBUG:Z
ifeq 36
35: getstatic java.lang.System.out:Ljava/io/PrintStream;
new java.lang.StringBuilder
dup
ldc ">>> Credentials acquireServiceCreds: inner loop: ["
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
iload 8
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
ldc "] tempService="
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 12
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokevirtual java.io.PrintStream.println:(Ljava/lang/String;)V
36: StackMap locals:
StackMap stack:
aload 12
aload 9
invokestatic sun.security.krb5.internal.CredentialsUtil.serviceCreds:(Lsun/security/krb5/PrincipalName;Lsun/security/krb5/Credentials;)Lsun/security/krb5/Credentials;
astore 10
37: goto 40
StackMap locals:
StackMap stack: java.lang.Exception
38: pop
39: aconst_null
astore 10
40: StackMap locals:
StackMap stack:
iinc 8 1
StackMap locals:
StackMap stack:
41: aload 10
ifnonnull 43
iload 8
aload 5
arraylength
42: if_icmplt 33
43: StackMap locals:
StackMap stack:
aload 10
ifnonnull 47
44: getstatic sun.security.krb5.internal.CredentialsUtil.DEBUG:Z
ifeq 71
45: getstatic java.lang.System.out:Ljava/io/PrintStream;
ldc ">>> Credentials acquireServiceCreds: no tgt; cannot get creds"
invokevirtual java.io.PrintStream.println:(Ljava/lang/String;)V
46: goto 71
47: StackMap locals:
StackMap stack:
aload 10
invokevirtual sun.security.krb5.Credentials.getServer:()Lsun/security/krb5/PrincipalName;
invokevirtual sun.security.krb5.PrincipalName.getInstanceComponent:()Ljava/lang/String;
astore 13
48: iload 6
ifeq 54
aload 10
invokevirtual sun.security.krb5.Credentials.checkDelegate:()Z
ifne 54
49: getstatic sun.security.krb5.internal.CredentialsUtil.DEBUG:Z
ifeq 53
50: getstatic java.lang.System.out:Ljava/io/PrintStream;
new java.lang.StringBuilder
dup
ldc ">>> Credentials acquireServiceCreds: global OK-AS-DELEGATE turned off at "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
51: aload 10
invokevirtual sun.security.krb5.Credentials.getServer:()Lsun/security/krb5/PrincipalName;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
52: invokevirtual java.io.PrintStream.println:(Ljava/lang/String;)V
53: StackMap locals:
StackMap stack:
iconst_0
istore 6
54: StackMap locals:
StackMap stack:
getstatic sun.security.krb5.internal.CredentialsUtil.DEBUG:Z
ifeq 56
55: getstatic java.lang.System.out:Ljava/io/PrintStream;
ldc ">>> Credentials acquireServiceCreds: got tgt"
invokevirtual java.io.PrintStream.println:(Ljava/lang/String;)V
56: StackMap locals:
StackMap stack:
aload 13
aload 3
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifeq 60
57: aload 10
astore 11
58: aload 13
pop
59: goto 71
60: StackMap locals:
StackMap stack:
iload 7
iconst_1
iadd
istore 8
goto 64
61: StackMap locals:
StackMap stack:
aload 13
aload 5
iload 8
aaload
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifeq 63
62: goto 65
63: StackMap locals:
StackMap stack:
iinc 8 1
StackMap locals:
StackMap stack:
64: iload 8
aload 5
arraylength
if_icmplt 61
65: StackMap locals:
StackMap stack:
iload 8
aload 5
arraylength
if_icmpge 71
66: iload 8
istore 7
67: aload 10
astore 9
68: getstatic sun.security.krb5.internal.CredentialsUtil.DEBUG:Z
ifeq 70
69: getstatic java.lang.System.out:Ljava/io/PrintStream;
new java.lang.StringBuilder
dup
ldc ">>> Credentials acquireServiceCreds: continuing with main loop counter reset to "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
iload 7
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokevirtual java.io.PrintStream.println:(Ljava/lang/String;)V
70: StackMap locals:
StackMap stack:
iload 7
aload 5
arraylength
if_icmplt 21
71: StackMap locals:
StackMap stack:
aconst_null
astore 14
start local 14 72: aload 11
ifnull 82
73: getstatic sun.security.krb5.internal.CredentialsUtil.DEBUG:Z
ifeq 76
74: getstatic java.lang.System.out:Ljava/io/PrintStream;
ldc ">>> Credentials acquireServiceCreds: got right tgt"
invokevirtual java.io.PrintStream.println:(Ljava/lang/String;)V
75: getstatic java.lang.System.out:Ljava/io/PrintStream;
new java.lang.StringBuilder
dup
ldc ">>> Credentials acquireServiceCreds: obtaining service creds for "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 2
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokevirtual java.io.PrintStream.println:(Ljava/lang/String;)V
76: StackMap locals: sun.security.krb5.Credentials
StackMap stack:
aload 2
aload 11
invokestatic sun.security.krb5.internal.CredentialsUtil.serviceCreds:(Lsun/security/krb5/PrincipalName;Lsun/security/krb5/Credentials;)Lsun/security/krb5/Credentials;
astore 14
77: goto 82
StackMap locals:
StackMap stack: java.lang.Exception
78: astore 15
start local 15 79: getstatic sun.security.krb5.internal.CredentialsUtil.DEBUG:Z
ifeq 81
80: getstatic java.lang.System.out:Ljava/io/PrintStream;
aload 15
invokevirtual java.io.PrintStream.println:(Ljava/lang/Object;)V
81: StackMap locals: java.lang.Exception
StackMap stack:
aconst_null
astore 14
end local 15 82: StackMap locals:
StackMap stack:
aload 14
ifnull 89
83: getstatic sun.security.krb5.internal.CredentialsUtil.DEBUG:Z
ifeq 86
84: getstatic java.lang.System.out:Ljava/io/PrintStream;
ldc ">>> Credentials acquireServiceCreds: returning creds:"
invokevirtual java.io.PrintStream.println:(Ljava/lang/String;)V
85: aload 14
invokestatic sun.security.krb5.Credentials.printDebug:(Lsun/security/krb5/Credentials;)V
86: StackMap locals:
StackMap stack:
iload 6
ifne 88
87: aload 14
invokevirtual sun.security.krb5.Credentials.resetDelegate:()V
88: StackMap locals:
StackMap stack:
aload 14
areturn
89: StackMap locals:
StackMap stack:
new sun.security.krb5.internal.KrbApErrException
dup
bipush 63
90: ldc "No service creds"
91: invokespecial sun.security.krb5.internal.KrbApErrException.<init>:(ILjava/lang/String;)V
athrow
end local 14 end local 13 end local 12 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 92 0 service Ljava/lang/String;
0 92 1 ccreds Lsun/security/krb5/Credentials;
1 92 2 sname Lsun/security/krb5/PrincipalName;
2 92 3 serviceRealm Ljava/lang/String;
3 92 4 localRealm Ljava/lang/String;
8 92 5 realms [Ljava/lang/String;
9 92 6 okAsDelegate Z
14 92 7 i I
15 92 8 k I
16 92 9 cTgt Lsun/security/krb5/Credentials;
17 92 10 newTgt Lsun/security/krb5/Credentials;
18 92 11 theTgt Lsun/security/krb5/Credentials;
19 92 12 tempService Lsun/security/krb5/PrincipalName;
20 92 13 newTgtRealm Ljava/lang/String;
72 92 14 theCreds Lsun/security/krb5/Credentials;
79 82 15 exc Ljava/lang/Exception;
Exception table:
from to target type
24 25 26 Class java.lang.Exception
36 37 38 Class java.lang.Exception
76 77 78 Class java.lang.Exception
Exceptions:
throws sun.security.krb5.KrbException, java.io.IOException
MethodParameters:
Name Flags
service
ccreds
private static sun.security.krb5.Credentials serviceCreds(sun.security.krb5.PrincipalName, sun.security.krb5.Credentials);
descriptor: (Lsun/security/krb5/PrincipalName;Lsun/security/krb5/Credentials;)Lsun/security/krb5/Credentials;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=4, locals=2, args_size=2
start local 0 start local 1 0: new sun.security.krb5.KrbTgsReq
dup
aload 1
aload 0
invokespecial sun.security.krb5.KrbTgsReq.<init>:(Lsun/security/krb5/Credentials;Lsun/security/krb5/PrincipalName;)V
invokevirtual sun.security.krb5.KrbTgsReq.sendAndGetCreds:()Lsun/security/krb5/Credentials;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 service Lsun/security/krb5/PrincipalName;
0 1 1 ccreds Lsun/security/krb5/Credentials;
Exceptions:
throws sun.security.krb5.KrbException, java.io.IOException
MethodParameters:
Name Flags
service
ccreds
}
SourceFile: "CredentialsUtil.java"