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: .line 54
            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 // sun.security.krb5.internal.CredentialsUtil this
         0: .line 52
            aload 0 /* this */
            invokespecial java.lang.Object.<init>:()V
            return
        end local 0 // sun.security.krb5.internal.CredentialsUtil this
      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 // java.lang.String service
        start local 1 // sun.security.krb5.Credentials ccreds
         0: .line 75
            new sun.security.krb5.PrincipalName
            dup
            aload 0 /* service */
            invokespecial sun.security.krb5.PrincipalName.<init>:(Ljava/lang/String;)V
            astore 2 /* sname */
        start local 2 // sun.security.krb5.PrincipalName sname
         1: .line 76
            aload 2 /* sname */
            invokevirtual sun.security.krb5.PrincipalName.getRealmString:()Ljava/lang/String;
            astore 3 /* serviceRealm */
        start local 3 // java.lang.String serviceRealm
         2: .line 77
            aload 1 /* ccreds */
            invokevirtual sun.security.krb5.Credentials.getClient:()Lsun/security/krb5/PrincipalName;
            invokevirtual sun.security.krb5.PrincipalName.getRealmString:()Ljava/lang/String;
            astore 4 /* localRealm */
        start local 4 // java.lang.String localRealm
         3: .line 97
            aload 4 /* localRealm */
            aload 3 /* serviceRealm */
            invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
            ifeq 7
         4: .line 99
            getstatic sun.security.krb5.internal.CredentialsUtil.DEBUG:Z
            ifeq 6
         5: .line 100
            getstatic java.lang.System.out:Ljava/io/PrintStream;
            ldc ">>> Credentials acquireServiceCreds: same realm"
            invokevirtual java.io.PrintStream.println:(Ljava/lang/String;)V
         6: .line 101
      StackMap locals: sun.security.krb5.PrincipalName java.lang.String java.lang.String
      StackMap stack:
            aload 2 /* sname */
            aload 1 /* ccreds */
            invokestatic sun.security.krb5.internal.CredentialsUtil.serviceCreds:(Lsun/security/krb5/PrincipalName;Lsun/security/krb5/Credentials;)Lsun/security/krb5/Credentials;
            areturn
         7: .line 105
      StackMap locals:
      StackMap stack:
            aload 4 /* localRealm */
            aload 3 /* serviceRealm */
            invokestatic sun.security.krb5.Realm.getRealmsList:(Ljava/lang/String;Ljava/lang/String;)[Ljava/lang/String;
            astore 5 /* realms */
        start local 5 // java.lang.String[] realms
         8: .line 106
            iconst_1
            istore 6 /* okAsDelegate */
        start local 6 // boolean okAsDelegate
         9: .line 108
            aload 5 /* realms */
            ifnull 10
            aload 5 /* realms */
            arraylength
            ifne 13
        10: .line 110
      StackMap locals: java.lang.String[] int
      StackMap stack:
            getstatic sun.security.krb5.internal.CredentialsUtil.DEBUG:Z
            ifeq 12
        11: .line 111
            getstatic java.lang.System.out:Ljava/io/PrintStream;
            ldc ">>> Credentials acquireServiceCreds: no realms list"
            invokevirtual java.io.PrintStream.println:(Ljava/lang/String;)V
        12: .line 112
      StackMap locals:
      StackMap stack:
            aconst_null
            areturn
        13: .line 115
      StackMap locals:
      StackMap stack:
            iconst_0
            istore 7 /* i */
        start local 7 // int i
        14: iconst_0
            istore 8 /* k */
        start local 8 // int k
        15: .line 116
            aconst_null
            astore 9 /* cTgt */
        start local 9 // sun.security.krb5.Credentials cTgt
        16: aconst_null
            astore 10 /* newTgt */
        start local 10 // sun.security.krb5.Credentials newTgt
        17: aconst_null
            astore 11 /* theTgt */
        start local 11 // sun.security.krb5.Credentials theTgt
        18: .line 117
            aconst_null
            astore 12 /* tempService */
        start local 12 // sun.security.krb5.PrincipalName tempService
        19: .line 118
            aconst_null
            astore 13 /* newTgtRealm */
        start local 13 // java.lang.String newTgtRealm
        20: .line 120
            aload 1 /* ccreds */
            astore 9 /* cTgt */
            iconst_0
            istore 7 /* i */
            goto 70
        21: .line 122
      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 /* serviceRealm */
            aload 5 /* realms */
            iload 7 /* i */
            aaload
            invokestatic sun.security.krb5.PrincipalName.tgsService:(Ljava/lang/String;Ljava/lang/String;)Lsun/security/krb5/PrincipalName;
            astore 12 /* tempService */
        22: .line 124
            getstatic sun.security.krb5.internal.CredentialsUtil.DEBUG:Z
            ifeq 24
        23: .line 126
            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 /* i */
            invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
            ldc "] tempService="
            invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
            aload 12 /* tempService */
            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: .line 130
      StackMap locals:
      StackMap stack:
            aload 12 /* tempService */
            aload 9 /* cTgt */
            invokestatic sun.security.krb5.internal.CredentialsUtil.serviceCreds:(Lsun/security/krb5/PrincipalName;Lsun/security/krb5/Credentials;)Lsun/security/krb5/Credentials;
            astore 10 /* newTgt */
        25: .line 131
            goto 28
      StackMap locals:
      StackMap stack: java.lang.Exception
        26: pop
        27: .line 132
            aconst_null
            astore 10 /* newTgt */
        28: .line 135
      StackMap locals:
      StackMap stack:
            aload 10 /* newTgt */
            ifnonnull 43
        29: .line 137
            getstatic sun.security.krb5.internal.CredentialsUtil.DEBUG:Z
            ifeq 31
        30: .line 139
            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: .line 146
      StackMap locals:
      StackMap stack:
            aconst_null
            astore 10 /* newTgt */
            iload 7 /* i */
            iconst_1
            iadd
            istore 8 /* k */
        32: .line 147
            goto 41
        33: .line 150
      StackMap locals:
      StackMap stack:
            aload 5 /* realms */
            iload 8 /* k */
            aaload
            aload 5 /* realms */
            iload 7 /* i */
            aaload
            invokestatic sun.security.krb5.PrincipalName.tgsService:(Ljava/lang/String;Ljava/lang/String;)Lsun/security/krb5/PrincipalName;
            astore 12 /* tempService */
        34: .line 151
            getstatic sun.security.krb5.internal.CredentialsUtil.DEBUG:Z
            ifeq 36
        35: .line 153
            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 /* k */
            invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
            ldc "] tempService="
            invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
            aload 12 /* tempService */
            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: .line 157
      StackMap locals:
      StackMap stack:
            aload 12 /* tempService */
            aload 9 /* cTgt */
            invokestatic sun.security.krb5.internal.CredentialsUtil.serviceCreds:(Lsun/security/krb5/PrincipalName;Lsun/security/krb5/Credentials;)Lsun/security/krb5/Credentials;
            astore 10 /* newTgt */
        37: .line 158
            goto 40
      StackMap locals:
      StackMap stack: java.lang.Exception
        38: pop
        39: .line 159
            aconst_null
            astore 10 /* newTgt */
        40: .line 147
      StackMap locals:
      StackMap stack:
            iinc 8 /* k */ 1
      StackMap locals:
      StackMap stack:
        41: aload 10 /* newTgt */
            ifnonnull 43
            iload 8 /* k */
            aload 5 /* realms */
            arraylength
        42: .line 146
            if_icmplt 33
        43: .line 164
      StackMap locals:
      StackMap stack:
            aload 10 /* newTgt */
            ifnonnull 47
        44: .line 166
            getstatic sun.security.krb5.internal.CredentialsUtil.DEBUG:Z
            ifeq 71
        45: .line 168
            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: .line 170
            goto 71
        47: .line 178
      StackMap locals:
      StackMap stack:
            aload 10 /* newTgt */
            invokevirtual sun.security.krb5.Credentials.getServer:()Lsun/security/krb5/PrincipalName;
            invokevirtual sun.security.krb5.PrincipalName.getInstanceComponent:()Ljava/lang/String;
            astore 13 /* newTgtRealm */
        48: .line 179
            iload 6 /* okAsDelegate */
            ifeq 54
            aload 10 /* newTgt */
            invokevirtual sun.security.krb5.Credentials.checkDelegate:()Z
            ifne 54
        49: .line 180
            getstatic sun.security.krb5.internal.CredentialsUtil.DEBUG:Z
            ifeq 53
        50: .line 182
            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: .line 184
            aload 10 /* newTgt */
            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: .line 182
            invokevirtual java.io.PrintStream.println:(Ljava/lang/String;)V
        53: .line 186
      StackMap locals:
      StackMap stack:
            iconst_0
            istore 6 /* okAsDelegate */
        54: .line 189
      StackMap locals:
      StackMap stack:
            getstatic sun.security.krb5.internal.CredentialsUtil.DEBUG:Z
            ifeq 56
        55: .line 191
            getstatic java.lang.System.out:Ljava/io/PrintStream;
            ldc ">>> Credentials acquireServiceCreds: got tgt"
            invokevirtual java.io.PrintStream.println:(Ljava/lang/String;)V
        56: .line 195
      StackMap locals:
      StackMap stack:
            aload 13 /* newTgtRealm */
            aload 3 /* serviceRealm */
            invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
            ifeq 60
        57: .line 198
            aload 10 /* newTgt */
            astore 11 /* theTgt */
        58: .line 199
            aload 13 /* newTgtRealm */
            pop
        59: .line 200
            goto 71
        60: .line 209
      StackMap locals:
      StackMap stack:
            iload 7 /* i */
            iconst_1
            iadd
            istore 8 /* k */
            goto 64
        61: .line 211
      StackMap locals:
      StackMap stack:
            aload 13 /* newTgtRealm */
            aload 5 /* realms */
            iload 8 /* k */
            aaload
            invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
            ifeq 63
        62: .line 213
            goto 65
        63: .line 209
      StackMap locals:
      StackMap stack:
            iinc 8 /* k */ 1
      StackMap locals:
      StackMap stack:
        64: iload 8 /* k */
            aload 5 /* realms */
            arraylength
            if_icmplt 61
        65: .line 217
      StackMap locals:
      StackMap stack:
            iload 8 /* k */
            aload 5 /* realms */
            arraylength
            if_icmpge 71
        66: .line 223
            iload 8 /* k */
            istore 7 /* i */
        67: .line 224
            aload 10 /* newTgt */
            astore 9 /* cTgt */
        68: .line 226
            getstatic sun.security.krb5.internal.CredentialsUtil.DEBUG:Z
            ifeq 70
        69: .line 228
            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 /* i */
            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: .line 120
      StackMap locals:
      StackMap stack:
            iload 7 /* i */
            aload 5 /* realms */
            arraylength
            if_icmplt 21
        71: .line 246
      StackMap locals:
      StackMap stack:
            aconst_null
            astore 14 /* theCreds */
        start local 14 // sun.security.krb5.Credentials theCreds
        72: .line 248
            aload 11 /* theTgt */
            ifnull 82
        73: .line 252
            getstatic sun.security.krb5.internal.CredentialsUtil.DEBUG:Z
            ifeq 76
        74: .line 254
            getstatic java.lang.System.out:Ljava/io/PrintStream;
            ldc ">>> Credentials acquireServiceCreds: got right tgt"
            invokevirtual java.io.PrintStream.println:(Ljava/lang/String;)V
        75: .line 258
            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 /* sname */
            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: .line 262
      StackMap locals: sun.security.krb5.Credentials
      StackMap stack:
            aload 2 /* sname */
            aload 11 /* theTgt */
            invokestatic sun.security.krb5.internal.CredentialsUtil.serviceCreds:(Lsun/security/krb5/PrincipalName;Lsun/security/krb5/Credentials;)Lsun/security/krb5/Credentials;
            astore 14 /* theCreds */
        77: .line 263
            goto 82
      StackMap locals:
      StackMap stack: java.lang.Exception
        78: astore 15 /* exc */
        start local 15 // java.lang.Exception exc
        79: .line 264
            getstatic sun.security.krb5.internal.CredentialsUtil.DEBUG:Z
            ifeq 81
        80: .line 265
            getstatic java.lang.System.out:Ljava/io/PrintStream;
            aload 15 /* exc */
            invokevirtual java.io.PrintStream.println:(Ljava/lang/Object;)V
        81: .line 266
      StackMap locals: java.lang.Exception
      StackMap stack:
            aconst_null
            astore 14 /* theCreds */
        end local 15 // java.lang.Exception exc
        82: .line 270
      StackMap locals:
      StackMap stack:
            aload 14 /* theCreds */
            ifnull 89
        83: .line 272
            getstatic sun.security.krb5.internal.CredentialsUtil.DEBUG:Z
            ifeq 86
        84: .line 274
            getstatic java.lang.System.out:Ljava/io/PrintStream;
            ldc ">>> Credentials acquireServiceCreds: returning creds:"
            invokevirtual java.io.PrintStream.println:(Ljava/lang/String;)V
        85: .line 275
            aload 14 /* theCreds */
            invokestatic sun.security.krb5.Credentials.printDebug:(Lsun/security/krb5/Credentials;)V
        86: .line 277
      StackMap locals:
      StackMap stack:
            iload 6 /* okAsDelegate */
            ifne 88
        87: .line 278
            aload 14 /* theCreds */
            invokevirtual sun.security.krb5.Credentials.resetDelegate:()V
        88: .line 280
      StackMap locals:
      StackMap stack:
            aload 14 /* theCreds */
            areturn
        89: .line 282
      StackMap locals:
      StackMap stack:
            new sun.security.krb5.internal.KrbApErrException
            dup
            bipush 63
        90: .line 283
            ldc "No service creds"
        91: .line 282
            invokespecial sun.security.krb5.internal.KrbApErrException.<init>:(ILjava/lang/String;)V
            athrow
        end local 14 // sun.security.krb5.Credentials theCreds
        end local 13 // java.lang.String newTgtRealm
        end local 12 // sun.security.krb5.PrincipalName tempService
        end local 11 // sun.security.krb5.Credentials theTgt
        end local 10 // sun.security.krb5.Credentials newTgt
        end local 9 // sun.security.krb5.Credentials cTgt
        end local 8 // int k
        end local 7 // int i
        end local 6 // boolean okAsDelegate
        end local 5 // java.lang.String[] realms
        end local 4 // java.lang.String localRealm
        end local 3 // java.lang.String serviceRealm
        end local 2 // sun.security.krb5.PrincipalName sname
        end local 1 // sun.security.krb5.Credentials ccreds
        end local 0 // java.lang.String service
      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 // sun.security.krb5.PrincipalName service
        start local 1 // sun.security.krb5.Credentials ccreds
         0: .line 292
            new sun.security.krb5.KrbTgsReq
            dup
            aload 1 /* ccreds */
            aload 0 /* service */
            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 // sun.security.krb5.Credentials ccreds
        end local 0 // sun.security.krb5.PrincipalName service
      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"