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
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;
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=9, 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: aload 3
aload 1
invokedynamic run(Ljavax/naming/Context;Ljava/lang/String;)Ljava/security/PrivilegedExceptionAction;
Bootstrap: invokestatic java.lang.invoke.LambdaMetafactory.metafactory:(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodHandle;Ljava/lang/invoke/MethodType;)Ljava/lang/invoke/CallSite;
Method arguments:
()Ljava/lang/Object;
sun/security/krb5/KrbServiceLocator.lambda$0(Ljavax/naming/Context;Ljava/lang/String;)Ljavax/naming/directory/Attributes; (6)
()Ljavax/naming/directory/Attributes;
7: aconst_null
iconst_1
anewarray java.security.Permission
dup
iconst_0
8: new java.net.SocketPermission
dup
ldc "*"
ldc "connect,accept"
invokespecial java.net.SocketPermission.<init>:(Ljava/lang/String;Ljava/lang/String;)V
aastore
9: invokestatic java.security.AccessController.doPrivileged:(Ljava/security/PrivilegedExceptionAction;Ljava/security/AccessControlContext;[Ljava/security/Permission;)Ljava/lang/Object;
checkcast javax.naming.directory.Attributes
astore 4
10: goto 13
StackMap locals: java.lang.String java.lang.String java.lang.String[] javax.naming.Context javax.naming.directory.Attributes
StackMap stack: java.security.PrivilegedActionException
11: astore 5
start local 5 12: aload 5
invokevirtual java.security.PrivilegedActionException.getCause:()Ljava/lang/Throwable;
checkcast javax.naming.NamingException
athrow
end local 5 13: StackMap locals:
StackMap stack:
aload 4
ifnull 36
aload 4
ldc "TXT"
invokeinterface javax.naming.directory.Attributes.get:(Ljava/lang/String;)Ljavax/naming/directory/Attribute;
dup
astore 5
start local 5 14: ifnull 36
15: aload 5
invokeinterface javax.naming.directory.Attribute.size:()I
istore 6
start local 6 16: iconst_0
istore 7
start local 7 17: iload 6
anewarray java.lang.String
astore 8
start local 8 18: iconst_0
istore 9
start local 9 19: iconst_0
istore 10
start local 10 20: goto 26
21: 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
22: iinc 10 1
23: goto 25
StackMap locals:
StackMap stack: java.lang.Exception
24: pop
25: StackMap locals:
StackMap stack:
iinc 9 1
26: StackMap locals:
StackMap stack:
iload 9
iload 6
if_icmplt 21
27: iload 10
istore 7
28: iload 7
iload 6
if_icmpge 33
29: iload 7
anewarray java.lang.String
astore 11
start local 11 30: aload 8
iconst_0
aload 11
iconst_0
iload 7
invokestatic java.lang.System.arraycopy:(Ljava/lang/Object;ILjava/lang/Object;II)V
31: aload 11
astore 2
end local 11 32: goto 36
33: 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 34: goto 36
StackMap locals: java.lang.String java.lang.String java.lang.String[]
StackMap stack: javax.naming.NamingException
35: pop
36: StackMap locals:
StackMap stack:
aload 2
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 37 0 realmName Ljava/lang/String;
1 37 1 dnsUrl Ljava/lang/String;
2 37 2 records [Ljava/lang/String;
3 34 3 ctx Ljavax/naming/Context;
6 34 4 attrs Ljavax/naming/directory/Attributes;
12 13 5 e Ljava/security/PrivilegedActionException;
14 34 5 attr Ljavax/naming/directory/Attribute;
16 34 6 numValues I
17 34 7 numRecords I
18 34 8 txtRecords [Ljava/lang/String;
19 34 9 i I
20 34 10 j I
30 32 11 trimmed [Ljava/lang/String;
Exception table:
from to target type
6 10 11 Class java.security.PrivilegedActionException
21 23 24 Class java.lang.Exception
2 4 35 Class javax.naming.NamingException
5 34 35 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=9, 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: aload 4
aload 2
invokedynamic run(Ljavax/naming/Context;Ljava/lang/String;)Ljava/security/PrivilegedExceptionAction;
Bootstrap: invokestatic java.lang.invoke.LambdaMetafactory.metafactory:(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodHandle;Ljava/lang/invoke/MethodType;)Ljava/lang/invoke/CallSite;
Method arguments:
()Ljava/lang/Object;
sun/security/krb5/KrbServiceLocator.lambda$1(Ljavax/naming/Context;Ljava/lang/String;)Ljavax/naming/directory/Attributes; (6)
()Ljavax/naming/directory/Attributes;
7: aconst_null
iconst_1
anewarray java.security.Permission
dup
iconst_0
8: new java.net.SocketPermission
dup
ldc "*"
ldc "connect,accept"
invokespecial java.net.SocketPermission.<init>:(Ljava/lang/String;Ljava/lang/String;)V
aastore
9: invokestatic java.security.AccessController.doPrivileged:(Ljava/security/PrivilegedExceptionAction;Ljava/security/AccessControlContext;[Ljava/security/Permission;)Ljava/lang/Object;
checkcast javax.naming.directory.Attributes
astore 5
10: goto 13
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
11: astore 6
start local 6 12: aload 6
invokevirtual java.security.PrivilegedActionException.getCause:()Ljava/lang/Throwable;
checkcast javax.naming.NamingException
athrow
end local 6 13: StackMap locals:
StackMap stack:
aload 5
ifnull 37
aload 5
ldc "SRV"
invokeinterface javax.naming.directory.Attributes.get:(Ljava/lang/String;)Ljavax/naming/directory/Attribute;
dup
astore 6
start local 6 14: ifnull 37
15: aload 6
invokeinterface javax.naming.directory.Attribute.size:()I
istore 7
start local 7 16: iconst_0
istore 8
start local 8 17: iload 7
anewarray sun.security.krb5.KrbServiceLocator$SrvRecord
astore 9
start local 9 18: iconst_0
istore 10
start local 10 19: iconst_0
istore 11
start local 11 20: goto 26
21: 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
22: iinc 11 1
23: goto 25
StackMap locals:
StackMap stack: java.lang.Exception
24: pop
25: StackMap locals:
StackMap stack:
iinc 10 1
26: StackMap locals:
StackMap stack:
iload 10
iload 7
if_icmplt 21
27: iload 11
istore 8
28: iload 8
iload 7
if_icmpge 32
29: iload 8
anewarray sun.security.krb5.KrbServiceLocator$SrvRecord
astore 12
start local 12 30: aload 9
iconst_0
aload 12
iconst_0
iload 8
invokestatic java.lang.System.arraycopy:(Ljava/lang/Object;ILjava/lang/Object;II)V
31: aload 12
astore 9
end local 12 32: StackMap locals:
StackMap stack:
iload 8
iconst_1
if_icmple 34
33: aload 9
invokestatic java.util.Arrays.sort:([Ljava/lang/Object;)V
34: 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 35: goto 37
StackMap locals: java.lang.String java.lang.String java.lang.String java.lang.String[]
StackMap stack: javax.naming.NamingException
36: pop
37: 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 38 0 realmName Ljava/lang/String;
0 38 1 protocol Ljava/lang/String;
1 38 2 dnsUrl Ljava/lang/String;
2 38 3 hostports [Ljava/lang/String;
3 35 4 ctx Ljavax/naming/Context;
6 35 5 attrs Ljavax/naming/directory/Attributes;
12 13 6 e Ljava/security/PrivilegedActionException;
14 35 6 attr Ljavax/naming/directory/Attribute;
16 35 7 numValues I
17 35 8 numRecords I
18 35 9 srvRecords [Lsun/security/krb5/KrbServiceLocator$SrvRecord;
19 35 10 i I
20 35 11 j I
30 32 12 trimmed [Lsun/security/krb5/KrbServiceLocator$SrvRecord;
Exception table:
from to target type
6 10 11 Class java.security.PrivilegedActionException
21 23 24 Class java.lang.Exception
2 4 36 Class javax.naming.NamingException
5 35 36 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
private static javax.naming.directory.Attributes lambda$0(javax.naming.Context, java.lang.String);
descriptor: (Ljavax/naming/Context;Ljava/lang/String;)Ljavax/naming/directory/Attributes;
flags: (0x100a) ACC_PRIVATE, ACC_STATIC, ACC_SYNTHETIC
Code:
stack=3, locals=2, args_size=2
0: aload 0
checkcast javax.naming.directory.DirContext
1: aload 1
getstatic sun.security.krb5.KrbServiceLocator.SRV_TXT_ATTR:[Ljava/lang/String;
2: invokeinterface javax.naming.directory.DirContext.getAttributes:(Ljava/lang/String;[Ljava/lang/String;)Ljavax/naming/directory/Attributes;
3: areturn
LocalVariableTable:
Start End Slot Name Signature
Exceptions:
throws java.lang.Exception
private static javax.naming.directory.Attributes lambda$1(javax.naming.Context, java.lang.String);
descriptor: (Ljavax/naming/Context;Ljava/lang/String;)Ljavax/naming/directory/Attributes;
flags: (0x100a) ACC_PRIVATE, ACC_STATIC, ACC_SYNTHETIC
Code:
stack=3, locals=2, args_size=2
0: aload 0
checkcast javax.naming.directory.DirContext
1: aload 1
getstatic sun.security.krb5.KrbServiceLocator.SRV_RR_ATTR:[Ljava/lang/String;
2: invokeinterface javax.naming.directory.DirContext.getAttributes:(Ljava/lang/String;[Ljava/lang/String;)Ljavax/naming/directory/Attributes;
3: areturn
LocalVariableTable:
Start End Slot Name Signature
Exceptions:
throws java.lang.Exception
}
SourceFile: "KrbServiceLocator.java"
NestMembers:
sun.security.krb5.KrbServiceLocator$SrvRecord
InnerClasses:
public final Lookup = java.lang.invoke.MethodHandles$Lookup of java.lang.invoke.MethodHandles
SrvRecord = sun.security.krb5.KrbServiceLocator$SrvRecord of sun.security.krb5.KrbServiceLocator