class sun.security.krb5.KrbServiceLocator
minor version: 0
major version: 59
flags: flags: (0x0020) ACC_SUPER
this_class: sun.security.krb5.KrbServiceLocator
super_class: java.lang.Object
{
private static final java.lang.String SRV_RR;
descriptor: Ljava/lang/String;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: "SRV"
private static final java.lang.String[] SRV_RR_ATTR;
descriptor: [Ljava/lang/String;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private static final java.lang.String SRV_TXT;
descriptor: Ljava/lang/String;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: "TXT"
private static final java.lang.String[] SRV_TXT_ATTR;
descriptor: [Ljava/lang/String;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private static final java.util.Random random;
descriptor: Ljava/util/Random;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private static final boolean DEBUG;
descriptor: Z
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=4, locals=0, args_size=0
0: iconst_1
anewarray java.lang.String
dup
iconst_0
ldc "SRV"
aastore
putstatic sun.security.krb5.KrbServiceLocator.SRV_RR_ATTR:[Ljava/lang/String;
1: iconst_1
anewarray java.lang.String
dup
iconst_0
ldc "TXT"
aastore
putstatic sun.security.krb5.KrbServiceLocator.SRV_TXT_ATTR:[Ljava/lang/String;
2: new java.util.Random
dup
invokespecial java.util.Random.<init>:()V
putstatic sun.security.krb5.KrbServiceLocator.random:Ljava/util/Random;
3: getstatic sun.security.krb5.internal.Krb5.DEBUG:Z
putstatic sun.security.krb5.KrbServiceLocator.DEBUG:Z
return
LocalVariableTable:
Start End Slot Name Signature
private void <init>();
descriptor: ()V
flags: (0x0002) ACC_PRIVATE
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lsun/security/krb5/KrbServiceLocator;
static java.lang.String[] getKerberosService(java.lang.String);
descriptor: (Ljava/lang/String;)[Ljava/lang/String;
flags: (0x0008) ACC_STATIC
Code:
stack=10, locals=12, args_size=1
start local 0 0: new java.lang.StringBuilder
dup
ldc "dns:///_kerberos."
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 0
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
astore 1
start local 1 1: aconst_null
astore 2
start local 2 2: ldc "dns"
new java.util.Hashtable
dup
iconst_0
invokespecial java.util.Hashtable.<init>:(I)V
invokestatic javax.naming.spi.NamingManager.getURLContext:(Ljava/lang/String;Ljava/util/Hashtable;)Ljavax/naming/Context;
astore 3
start local 3 3: aload 3
instanceof javax.naming.directory.DirContext
ifne 5
4: aconst_null
areturn
5: StackMap locals: java.lang.String java.lang.String[] javax.naming.Context
StackMap stack:
aconst_null
astore 4
start local 4 6: invokestatic sun.misc.SharedSecrets.getJavaSecurityAccess:()Lsun/misc/JavaSecurityAccess;
7: new sun.security.krb5.KrbServiceLocator$1
dup
aload 3
aload 1
invokespecial sun.security.krb5.KrbServiceLocator$1.<init>:(Ljavax/naming/Context;Ljava/lang/String;)V
8: aconst_null
iconst_1
anewarray java.security.Permission
dup
iconst_0
9: new java.net.SocketPermission
dup
ldc "*"
ldc "connect,accept"
invokespecial java.net.SocketPermission.<init>:(Ljava/lang/String;Ljava/lang/String;)V
aastore
10: invokeinterface sun.misc.JavaSecurityAccess.doPrivileged:(Ljava/security/PrivilegedExceptionAction;Ljava/security/AccessControlContext;[Ljava/security/Permission;)Ljava/lang/Object;
checkcast javax.naming.directory.Attributes
astore 4
11: goto 14
StackMap locals: java.lang.String java.lang.String java.lang.String[] javax.naming.Context javax.naming.directory.Attributes
StackMap stack: java.security.PrivilegedActionException
12: astore 5
start local 5 13: aload 5
invokevirtual java.security.PrivilegedActionException.getCause:()Ljava/lang/Throwable;
checkcast javax.naming.NamingException
athrow
end local 5 14: StackMap locals:
StackMap stack:
aload 4
ifnull 37
aload 4
ldc "TXT"
invokeinterface javax.naming.directory.Attributes.get:(Ljava/lang/String;)Ljavax/naming/directory/Attribute;
dup
astore 5
start local 5 15: ifnull 37
16: aload 5
invokeinterface javax.naming.directory.Attribute.size:()I
istore 6
start local 6 17: iconst_0
istore 7
start local 7 18: iload 6
anewarray java.lang.String
astore 8
start local 8 19: iconst_0
istore 9
start local 9 20: iconst_0
istore 10
start local 10 21: goto 27
22: StackMap locals: java.lang.String java.lang.String java.lang.String[] javax.naming.Context javax.naming.directory.Attributes javax.naming.directory.Attribute int int java.lang.String[] int int
StackMap stack:
aload 8
iload 10
aload 5
iload 9
invokeinterface javax.naming.directory.Attribute.get:(I)Ljava/lang/Object;
checkcast java.lang.String
aastore
23: iinc 10 1
24: goto 26
StackMap locals:
StackMap stack: java.lang.Exception
25: pop
26: StackMap locals:
StackMap stack:
iinc 9 1
27: StackMap locals:
StackMap stack:
iload 9
iload 6
if_icmplt 22
28: iload 10
istore 7
29: iload 7
iload 6
if_icmpge 34
30: iload 7
anewarray java.lang.String
astore 11
start local 11 31: aload 8
iconst_0
aload 11
iconst_0
iload 7
invokestatic java.lang.System.arraycopy:(Ljava/lang/Object;ILjava/lang/Object;II)V
32: aload 11
astore 2
end local 11 33: goto 37
34: StackMap locals:
StackMap stack:
aload 8
astore 2
end local 10 end local 9 end local 8 end local 7 end local 6 end local 5 end local 4 end local 3 35: goto 37
StackMap locals: java.lang.String java.lang.String java.lang.String[]
StackMap stack: javax.naming.NamingException
36: pop
37: StackMap locals:
StackMap stack:
aload 2
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 38 0 realmName Ljava/lang/String;
1 38 1 dnsUrl Ljava/lang/String;
2 38 2 records [Ljava/lang/String;
3 35 3 ctx Ljavax/naming/Context;
6 35 4 attrs Ljavax/naming/directory/Attributes;
13 14 5 e Ljava/security/PrivilegedActionException;
15 35 5 attr Ljavax/naming/directory/Attribute;
17 35 6 numValues I
18 35 7 numRecords I
19 35 8 txtRecords [Ljava/lang/String;
20 35 9 i I
21 35 10 j I
31 33 11 trimmed [Ljava/lang/String;
Exception table:
from to target type
6 11 12 Class java.security.PrivilegedActionException
22 24 25 Class java.lang.Exception
2 4 36 Class javax.naming.NamingException
5 35 36 Class javax.naming.NamingException
MethodParameters:
Name Flags
realmName
static java.lang.String[] getKerberosService(java.lang.String, java.lang.String);
descriptor: (Ljava/lang/String;Ljava/lang/String;)[Ljava/lang/String;
flags: (0x0008) ACC_STATIC
Code:
stack=10, locals=13, args_size=2
start local 0 start local 1 0: new java.lang.StringBuilder
dup
ldc "dns:///_kerberos."
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 1
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
ldc "."
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 0
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
astore 2
start local 2 1: aconst_null
astore 3
start local 3 2: ldc "dns"
new java.util.Hashtable
dup
iconst_0
invokespecial java.util.Hashtable.<init>:(I)V
invokestatic javax.naming.spi.NamingManager.getURLContext:(Ljava/lang/String;Ljava/util/Hashtable;)Ljavax/naming/Context;
astore 4
start local 4 3: aload 4
instanceof javax.naming.directory.DirContext
ifne 5
4: aconst_null
areturn
5: StackMap locals: java.lang.String java.lang.String[] javax.naming.Context
StackMap stack:
aconst_null
astore 5
start local 5 6: invokestatic sun.misc.SharedSecrets.getJavaSecurityAccess:()Lsun/misc/JavaSecurityAccess;
7: new sun.security.krb5.KrbServiceLocator$2
dup
aload 4
aload 2
invokespecial sun.security.krb5.KrbServiceLocator$2.<init>:(Ljavax/naming/Context;Ljava/lang/String;)V
8: aconst_null
iconst_1
anewarray java.security.Permission
dup
iconst_0
9: new java.net.SocketPermission
dup
ldc "*"
ldc "connect,accept"
invokespecial java.net.SocketPermission.<init>:(Ljava/lang/String;Ljava/lang/String;)V
aastore
10: invokeinterface sun.misc.JavaSecurityAccess.doPrivileged:(Ljava/security/PrivilegedExceptionAction;Ljava/security/AccessControlContext;[Ljava/security/Permission;)Ljava/lang/Object;
checkcast javax.naming.directory.Attributes
astore 5
11: goto 14
StackMap locals: java.lang.String java.lang.String java.lang.String java.lang.String[] javax.naming.Context javax.naming.directory.Attributes
StackMap stack: java.security.PrivilegedActionException
12: astore 6
start local 6 13: aload 6
invokevirtual java.security.PrivilegedActionException.getCause:()Ljava/lang/Throwable;
checkcast javax.naming.NamingException
athrow
end local 6 14: StackMap locals:
StackMap stack:
aload 5
ifnull 38
aload 5
ldc "SRV"
invokeinterface javax.naming.directory.Attributes.get:(Ljava/lang/String;)Ljavax/naming/directory/Attribute;
dup
astore 6
start local 6 15: ifnull 38
16: aload 6
invokeinterface javax.naming.directory.Attribute.size:()I
istore 7
start local 7 17: iconst_0
istore 8
start local 8 18: iload 7
anewarray sun.security.krb5.KrbServiceLocator$SrvRecord
astore 9
start local 9 19: iconst_0
istore 10
start local 10 20: iconst_0
istore 11
start local 11 21: goto 27
22: StackMap locals: java.lang.String java.lang.String java.lang.String java.lang.String[] javax.naming.Context javax.naming.directory.Attributes javax.naming.directory.Attribute int int sun.security.krb5.KrbServiceLocator$SrvRecord[] int int
StackMap stack:
aload 9
iload 11
new sun.security.krb5.KrbServiceLocator$SrvRecord
dup
aload 6
iload 10
invokeinterface javax.naming.directory.Attribute.get:(I)Ljava/lang/Object;
checkcast java.lang.String
invokespecial sun.security.krb5.KrbServiceLocator$SrvRecord.<init>:(Ljava/lang/String;)V
aastore
23: iinc 11 1
24: goto 26
StackMap locals:
StackMap stack: java.lang.Exception
25: pop
26: StackMap locals:
StackMap stack:
iinc 10 1
27: StackMap locals:
StackMap stack:
iload 10
iload 7
if_icmplt 22
28: iload 11
istore 8
29: iload 8
iload 7
if_icmpge 33
30: iload 8
anewarray sun.security.krb5.KrbServiceLocator$SrvRecord
astore 12
start local 12 31: aload 9
iconst_0
aload 12
iconst_0
iload 8
invokestatic java.lang.System.arraycopy:(Ljava/lang/Object;ILjava/lang/Object;II)V
32: aload 12
astore 9
end local 12 33: StackMap locals:
StackMap stack:
iload 8
iconst_1
if_icmple 35
34: aload 9
invokestatic java.util.Arrays.sort:([Ljava/lang/Object;)V
35: StackMap locals:
StackMap stack:
aload 9
invokestatic sun.security.krb5.KrbServiceLocator.extractHostports:([Lsun/security/krb5/KrbServiceLocator$SrvRecord;)[Ljava/lang/String;
astore 3
end local 11 end local 10 end local 9 end local 8 end local 7 end local 6 end local 5 end local 4 36: goto 38
StackMap locals: java.lang.String java.lang.String java.lang.String java.lang.String[]
StackMap stack: javax.naming.NamingException
37: pop
38: StackMap locals:
StackMap stack:
aload 3
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 39 0 realmName Ljava/lang/String;
0 39 1 protocol Ljava/lang/String;
1 39 2 dnsUrl Ljava/lang/String;
2 39 3 hostports [Ljava/lang/String;
3 36 4 ctx Ljavax/naming/Context;
6 36 5 attrs Ljavax/naming/directory/Attributes;
13 14 6 e Ljava/security/PrivilegedActionException;
15 36 6 attr Ljavax/naming/directory/Attribute;
17 36 7 numValues I
18 36 8 numRecords I
19 36 9 srvRecords [Lsun/security/krb5/KrbServiceLocator$SrvRecord;
20 36 10 i I
21 36 11 j I
31 33 12 trimmed [Lsun/security/krb5/KrbServiceLocator$SrvRecord;
Exception table:
from to target type
6 11 12 Class java.security.PrivilegedActionException
22 24 25 Class java.lang.Exception
2 4 37 Class javax.naming.NamingException
5 36 37 Class javax.naming.NamingException
MethodParameters:
Name Flags
realmName
protocol
private static java.lang.String[] (sun.security.krb5.KrbServiceLocator$SrvRecord[]);
descriptor: ([Lsun/security/krb5/KrbServiceLocator$SrvRecord;)[Ljava/lang/String;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=5, locals=8, args_size=1
start local 0 0: aconst_null
astore 1
start local 1 1: iconst_0
istore 2
start local 2 2: iconst_0
istore 3
start local 3 3: iconst_0
istore 4
start local 4 4: iconst_0
istore 5
start local 5 5: iconst_0
istore 6
start local 6 6: goto 22
7: StackMap locals: sun.security.krb5.KrbServiceLocator$SrvRecord[] java.lang.String[] int int int int int
StackMap stack:
aload 1
ifnonnull 9
8: aload 0
arraylength
anewarray java.lang.String
astore 1
9: StackMap locals:
StackMap stack:
iload 6
istore 2
10: goto 12
11: StackMap locals:
StackMap stack:
iinc 6 1
12: StackMap locals:
StackMap stack:
iload 6
aload 0
arraylength
iconst_1
isub
if_icmpge 14
13: aload 0
iload 6
aaload
getfield sun.security.krb5.KrbServiceLocator$SrvRecord.priority:I
aload 0
iload 6
iconst_1
iadd
aaload
getfield sun.security.krb5.KrbServiceLocator$SrvRecord.priority:I
if_icmpeq 11
14: StackMap locals:
StackMap stack:
iload 6
istore 3
15: iload 3
iload 2
isub
iconst_1
iadd
istore 4
16: iconst_0
istore 7
start local 7 17: goto 20
18: StackMap locals: int
StackMap stack:
aload 1
iload 5
iinc 5 1
aload 0
iload 2
iload 3
invokestatic sun.security.krb5.KrbServiceLocator.selectHostport:([Lsun/security/krb5/KrbServiceLocator$SrvRecord;II)Ljava/lang/String;
aastore
19: iinc 7 1
StackMap locals:
StackMap stack:
20: iload 7
iload 4
if_icmplt 18
end local 7 21: iinc 6 1
StackMap locals:
StackMap stack:
22: iload 6
aload 0
arraylength
if_icmplt 7
end local 6 23: aload 1
areturn
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 24 0 srvRecords [Lsun/security/krb5/KrbServiceLocator$SrvRecord;
1 24 1 hostports [Ljava/lang/String;
2 24 2 head I
3 24 3 tail I
4 24 4 sublistLength I
5 24 5 k I
6 23 6 i I
17 21 7 j I
MethodParameters:
Name Flags
srvRecords
private static java.lang.String selectHostport(sun.security.krb5.KrbServiceLocator$SrvRecord[], int, int);
descriptor: ([Lsun/security/krb5/KrbServiceLocator$SrvRecord;II)Ljava/lang/String;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=3, locals=7, args_size=3
start local 0 start local 1 start local 2 0: iload 1
iload 2
if_icmpne 2
1: aload 0
iload 1
aaload
getfield sun.security.krb5.KrbServiceLocator$SrvRecord.hostport:Ljava/lang/String;
areturn
2: StackMap locals:
StackMap stack:
iconst_0
istore 3
start local 3 3: iload 1
istore 4
start local 4 4: goto 9
5: StackMap locals: int int
StackMap stack:
aload 0
iload 4
aaload
ifnull 8
6: iload 3
aload 0
iload 4
aaload
getfield sun.security.krb5.KrbServiceLocator$SrvRecord.weight:I
iadd
istore 3
7: aload 0
iload 4
aaload
iload 3
putfield sun.security.krb5.KrbServiceLocator$SrvRecord.sum:I
8: StackMap locals:
StackMap stack:
iinc 4 1
StackMap locals:
StackMap stack:
9: iload 4
iload 2
if_icmple 5
end local 4 10: aconst_null
astore 4
start local 4 11: iload 3
ifne 12
iconst_0
goto 13
StackMap locals: sun.security.krb5.KrbServiceLocator$SrvRecord[] int int int java.lang.String
StackMap stack:
12: getstatic sun.security.krb5.KrbServiceLocator.random:Ljava/util/Random;
iload 3
iconst_1
iadd
invokevirtual java.util.Random.nextInt:(I)I
StackMap locals:
StackMap stack: int
13: istore 5
start local 5 14: iload 1
istore 6
start local 6 15: goto 21
16: StackMap locals: int int
StackMap stack:
aload 0
iload 6
aaload
ifnull 20
aload 0
iload 6
aaload
getfield sun.security.krb5.KrbServiceLocator$SrvRecord.sum:I
iload 5
if_icmplt 20
17: aload 0
iload 6
aaload
getfield sun.security.krb5.KrbServiceLocator$SrvRecord.hostport:Ljava/lang/String;
astore 4
18: aload 0
iload 6
aconst_null
aastore
19: goto 22
20: StackMap locals:
StackMap stack:
iinc 6 1
StackMap locals:
StackMap stack:
21: iload 6
iload 2
if_icmple 16
end local 6 22: StackMap locals:
StackMap stack:
aload 4
areturn
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 23 0 srvRecords [Lsun/security/krb5/KrbServiceLocator$SrvRecord;
0 23 1 head I
0 23 2 tail I
3 23 3 sum I
4 10 4 i I
11 23 4 hostport Ljava/lang/String;
14 23 5 target I
15 22 6 i I
MethodParameters:
Name Flags
srvRecords
head
tail
}
SourceFile: "KrbServiceLocator.java"
NestMembers:
sun.security.krb5.KrbServiceLocator$1 sun.security.krb5.KrbServiceLocator$2 sun.security.krb5.KrbServiceLocator$SrvRecord
InnerClasses:
sun.security.krb5.KrbServiceLocator$1
sun.security.krb5.KrbServiceLocator$2
SrvRecord = sun.security.krb5.KrbServiceLocator$SrvRecord of sun.security.krb5.KrbServiceLocator