final class sun.security.krb5.internal.ssl.KerberosPreMasterSecret
minor version: 0
major version: 59
flags: flags: (0x0030) ACC_FINAL, ACC_SUPER
this_class: sun.security.krb5.internal.ssl.KerberosPreMasterSecret
super_class: java.lang.Object
{
private sun.security.ssl.ProtocolVersion protocolVersion;
descriptor: Lsun/security/ssl/ProtocolVersion;
flags: (0x0002) ACC_PRIVATE
private byte[] preMaster;
descriptor: [B
flags: (0x0002) ACC_PRIVATE
private byte[] encrypted;
descriptor: [B
flags: (0x0002) ACC_PRIVATE
void <init>(sun.security.ssl.ProtocolVersion, java.security.SecureRandom, sun.security.krb5.EncryptionKey);
descriptor: (Lsun/security/ssl/ProtocolVersion;Ljava/security/SecureRandom;Lsun/security/krb5/EncryptionKey;)V
flags: (0x0000)
Code:
stack=5, locals=5, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 3
invokevirtual sun.security.krb5.EncryptionKey.getEType:()I
2: bipush 16
3: if_icmpne 7
4: new java.io.IOException
dup
5: ldc "session keys with des3-cbc-hmac-sha1-kd encryption type are not supported for TLS Kerberos cipher suites"
6: invokespecial java.io.IOException.<init>:(Ljava/lang/String;)V
athrow
7: StackMap locals: sun.security.krb5.internal.ssl.KerberosPreMasterSecret sun.security.ssl.ProtocolVersion java.security.SecureRandom sun.security.krb5.EncryptionKey
StackMap stack:
aload 0
aload 1
putfield sun.security.krb5.internal.ssl.KerberosPreMasterSecret.protocolVersion:Lsun/security/ssl/ProtocolVersion;
8: aload 0
aload 2
aload 1
invokestatic sun.security.krb5.internal.ssl.KerberosPreMasterSecret.generatePreMaster:(Ljava/security/SecureRandom;Lsun/security/ssl/ProtocolVersion;)[B
putfield sun.security.krb5.internal.ssl.KerberosPreMasterSecret.preMaster:[B
9: new sun.security.krb5.EncryptedData
dup
aload 3
aload 0
getfield sun.security.krb5.internal.ssl.KerberosPreMasterSecret.preMaster:[B
10: iconst_0
11: invokespecial sun.security.krb5.EncryptedData.<init>:(Lsun/security/krb5/EncryptionKey;[BI)V
astore 4
start local 4 12: aload 0
aload 4
invokevirtual sun.security.krb5.EncryptedData.getBytes:()[B
putfield sun.security.krb5.internal.ssl.KerberosPreMasterSecret.encrypted:[B
end local 4 13: goto 20
StackMap locals:
StackMap stack: sun.security.krb5.KrbException
14: astore 4
start local 4 15: new javax.net.ssl.SSLKeyException
dup
16: ldc "Kerberos premaster secret error"
17: invokespecial javax.net.ssl.SSLKeyException.<init>:(Ljava/lang/String;)V
18: aload 4
invokevirtual javax.net.ssl.SSLKeyException.initCause:(Ljava/lang/Throwable;)Ljava/lang/Throwable;
19: checkcast javax.net.ssl.SSLKeyException
athrow
end local 4 20: StackMap locals:
StackMap stack:
return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 21 0 this Lsun/security/krb5/internal/ssl/KerberosPreMasterSecret;
0 21 1 protocolVersion Lsun/security/ssl/ProtocolVersion;
0 21 2 generator Ljava/security/SecureRandom;
0 21 3 sessionKey Lsun/security/krb5/EncryptionKey;
12 13 4 eData Lsun/security/krb5/EncryptedData;
15 20 4 e Lsun/security/krb5/KrbException;
Exception table:
from to target type
9 13 14 Class sun.security.krb5.KrbException
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
protocolVersion
generator
sessionKey
void <init>(sun.security.ssl.ProtocolVersion, sun.security.ssl.ProtocolVersion, java.security.SecureRandom, byte[], sun.security.krb5.EncryptionKey);
descriptor: (Lsun/security/ssl/ProtocolVersion;Lsun/security/ssl/ProtocolVersion;Ljava/security/SecureRandom;[BLsun/security/krb5/EncryptionKey;)V
flags: (0x0000)
Code:
stack=5, locals=8, args_size=6
start local 0 start local 1 start local 2 start local 3 start local 4 start local 5 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: getstatic sun.security.ssl.HandshakeMessage.debug:Lsun/security/ssl/Debug;
ifnull 6
ldc "handshake"
invokestatic sun.security.ssl.Debug.isOn:(Ljava/lang/String;)Z
ifeq 6
2: aload 4
ifnull 6
3: getstatic java.lang.System.out:Ljava/io/PrintStream;
4: ldc "encrypted premaster secret"
aload 4
5: invokestatic sun.security.ssl.Debug.println:(Ljava/io/PrintStream;Ljava/lang/String;[B)V
6: StackMap locals: sun.security.krb5.internal.ssl.KerberosPreMasterSecret sun.security.ssl.ProtocolVersion sun.security.ssl.ProtocolVersion java.security.SecureRandom byte[] sun.security.krb5.EncryptionKey
StackMap stack:
aload 5
invokevirtual sun.security.krb5.EncryptionKey.getEType:()I
7: bipush 16
8: if_icmpne 12
9: new java.io.IOException
dup
10: ldc "session keys with des3-cbc-hmac-sha1-kd encryption type are not supported for TLS Kerberos cipher suites"
11: invokespecial java.io.IOException.<init>:(Ljava/lang/String;)V
athrow
12: StackMap locals:
StackMap stack:
new sun.security.krb5.EncryptedData
dup
aload 5
invokevirtual sun.security.krb5.EncryptionKey.getEType:()I
13: aconst_null
aload 4
14: invokespecial sun.security.krb5.EncryptedData.<init>:(ILjava/lang/Integer;[B)V
astore 6
start local 6 15: aload 6
aload 5
iconst_0
invokevirtual sun.security.krb5.EncryptedData.decrypt:(Lsun/security/krb5/EncryptionKey;I)[B
astore 7
start local 7 16: getstatic sun.security.ssl.HandshakeMessage.debug:Lsun/security/ssl/Debug;
ifnull 21
ldc "handshake"
invokestatic sun.security.ssl.Debug.isOn:(Ljava/lang/String;)Z
ifeq 21
17: aload 4
ifnull 21
18: getstatic java.lang.System.out:Ljava/io/PrintStream;
19: ldc "decrypted premaster secret"
aload 7
20: invokestatic sun.security.ssl.Debug.println:(Ljava/io/PrintStream;Ljava/lang/String;[B)V
21: StackMap locals: sun.security.krb5.EncryptedData byte[]
StackMap stack:
aload 7
arraylength
bipush 52
if_icmpne 27
22: aload 6
invokevirtual sun.security.krb5.EncryptedData.getEType:()I
iconst_1
if_icmpne 27
23: aload 7
bipush 52
iconst_4
invokestatic sun.security.krb5.internal.ssl.KerberosPreMasterSecret.paddingByteIs:([BIB)Z
ifne 25
24: aload 7
bipush 52
iconst_0
invokestatic sun.security.krb5.internal.ssl.KerberosPreMasterSecret.paddingByteIs:([BIB)Z
ifeq 31
25: StackMap locals:
StackMap stack:
aload 7
bipush 48
invokestatic java.util.Arrays.copyOf:([BI)[B
astore 7
26: goto 31
StackMap locals:
StackMap stack:
27: aload 7
arraylength
bipush 56
if_icmpne 31
28: aload 6
invokevirtual sun.security.krb5.EncryptedData.getEType:()I
iconst_3
if_icmpne 31
29: aload 7
bipush 56
bipush 8
invokestatic sun.security.krb5.internal.ssl.KerberosPreMasterSecret.paddingByteIs:([BIB)Z
ifeq 31
30: aload 7
bipush 48
invokestatic java.util.Arrays.copyOf:([BI)[B
astore 7
31: StackMap locals:
StackMap stack:
aload 0
aload 7
putfield sun.security.krb5.internal.ssl.KerberosPreMasterSecret.preMaster:[B
32: aload 0
aload 0
getfield sun.security.krb5.internal.ssl.KerberosPreMasterSecret.preMaster:[B
iconst_0
baload
33: aload 0
getfield sun.security.krb5.internal.ssl.KerberosPreMasterSecret.preMaster:[B
iconst_1
baload
34: invokestatic sun.security.ssl.ProtocolVersion.valueOf:(II)Lsun/security/ssl/ProtocolVersion;
putfield sun.security.krb5.internal.ssl.KerberosPreMasterSecret.protocolVersion:Lsun/security/ssl/ProtocolVersion;
35: getstatic sun.security.ssl.HandshakeMessage.debug:Lsun/security/ssl/Debug;
ifnull 43
ldc "handshake"
invokestatic sun.security.ssl.Debug.isOn:(Ljava/lang/String;)Z
ifeq 43
36: getstatic java.lang.System.out:Ljava/io/PrintStream;
new java.lang.StringBuilder
dup
ldc "Kerberos PreMasterSecret version: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
37: aload 0
getfield sun.security.krb5.internal.ssl.KerberosPreMasterSecret.protocolVersion:Lsun/security/ssl/ProtocolVersion;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
38: invokevirtual java.io.PrintStream.println:(Ljava/lang/String;)V
end local 7 end local 6 39: goto 43
StackMap locals: sun.security.krb5.internal.ssl.KerberosPreMasterSecret sun.security.ssl.ProtocolVersion sun.security.ssl.ProtocolVersion java.security.SecureRandom byte[] sun.security.krb5.EncryptionKey
StackMap stack: java.lang.Exception
40: pop
41: aload 0
aconst_null
putfield sun.security.krb5.internal.ssl.KerberosPreMasterSecret.preMaster:[B
42: aload 0
aload 1
putfield sun.security.krb5.internal.ssl.KerberosPreMasterSecret.protocolVersion:Lsun/security/ssl/ProtocolVersion;
43: StackMap locals:
StackMap stack:
aload 0
getfield sun.security.krb5.internal.ssl.KerberosPreMasterSecret.protocolVersion:Lsun/security/ssl/ProtocolVersion;
getfield sun.security.ssl.ProtocolVersion.v:I
aload 2
getfield sun.security.ssl.ProtocolVersion.v:I
if_icmpeq 44
iconst_1
goto 45
StackMap locals:
StackMap stack:
44: iconst_0
StackMap locals:
StackMap stack: int
45: istore 6
start local 6 46: iload 6
ifeq 50
aload 2
getfield sun.security.ssl.ProtocolVersion.v:I
sipush 769
if_icmpgt 50
47: aload 0
getfield sun.security.krb5.internal.ssl.KerberosPreMasterSecret.protocolVersion:Lsun/security/ssl/ProtocolVersion;
getfield sun.security.ssl.ProtocolVersion.v:I
aload 1
getfield sun.security.ssl.ProtocolVersion.v:I
if_icmpeq 48
iconst_1
goto 49
StackMap locals: int
StackMap stack:
48: iconst_0
StackMap locals:
StackMap stack: int
49: istore 6
50: StackMap locals:
StackMap stack:
aload 0
getfield sun.security.krb5.internal.ssl.KerberosPreMasterSecret.preMaster:[B
ifnull 52
aload 0
getfield sun.security.krb5.internal.ssl.KerberosPreMasterSecret.preMaster:[B
arraylength
bipush 48
if_icmpne 52
51: iload 6
ifeq 58
52: StackMap locals:
StackMap stack:
getstatic sun.security.ssl.HandshakeMessage.debug:Lsun/security/ssl/Debug;
ifnull 56
ldc "handshake"
invokestatic sun.security.ssl.Debug.isOn:(Ljava/lang/String;)Z
ifeq 56
53: getstatic java.lang.System.out:Ljava/io/PrintStream;
ldc "Kerberos PreMasterSecret error, generating random secret"
invokevirtual java.io.PrintStream.println:(Ljava/lang/String;)V
54: aload 0
getfield sun.security.krb5.internal.ssl.KerberosPreMasterSecret.preMaster:[B
ifnull 56
55: getstatic java.lang.System.out:Ljava/io/PrintStream;
ldc "Invalid secret"
aload 0
getfield sun.security.krb5.internal.ssl.KerberosPreMasterSecret.preMaster:[B
invokestatic sun.security.ssl.Debug.println:(Ljava/io/PrintStream;Ljava/lang/String;[B)V
56: StackMap locals:
StackMap stack:
aload 0
aload 3
aload 2
invokestatic sun.security.krb5.internal.ssl.KerberosPreMasterSecret.generatePreMaster:(Ljava/security/SecureRandom;Lsun/security/ssl/ProtocolVersion;)[B
putfield sun.security.krb5.internal.ssl.KerberosPreMasterSecret.preMaster:[B
57: aload 0
aload 2
putfield sun.security.krb5.internal.ssl.KerberosPreMasterSecret.protocolVersion:Lsun/security/ssl/ProtocolVersion;
58: StackMap locals:
StackMap stack:
return
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 59 0 this Lsun/security/krb5/internal/ssl/KerberosPreMasterSecret;
0 59 1 currentVersion Lsun/security/ssl/ProtocolVersion;
0 59 2 clientVersion Lsun/security/ssl/ProtocolVersion;
0 59 3 generator Ljava/security/SecureRandom;
0 59 4 encrypted [B
0 59 5 sessionKey Lsun/security/krb5/EncryptionKey;
15 39 6 data Lsun/security/krb5/EncryptedData;
16 39 7 temp [B
46 59 6 versionMismatch Z
Exception table:
from to target type
12 39 40 Class java.lang.Exception
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
currentVersion
clientVersion
generator
encrypted
sessionKey
private static boolean paddingByteIs(byte[], int, byte);
descriptor: ([BIB)Z
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=2, locals=4, args_size=3
start local 0 start local 1 start local 2 0: bipush 48
istore 3
start local 3 1: goto 4
2: StackMap locals: int
StackMap stack:
aload 0
iload 3
baload
iload 2
if_icmpeq 3
iconst_0
ireturn
3: StackMap locals:
StackMap stack:
iinc 3 1
StackMap locals:
StackMap stack:
4: iload 3
iload 1
if_icmplt 2
end local 3 5: iconst_1
ireturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 data [B
0 6 1 len I
0 6 2 b B
1 5 3 i I
MethodParameters:
Name Flags
data
len
b
void <init>(sun.security.ssl.ProtocolVersion, java.security.SecureRandom);
descriptor: (Lsun/security/ssl/ProtocolVersion;Ljava/security/SecureRandom;)V
flags: (0x0000)
Code:
stack=3, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
aload 1
putfield sun.security.krb5.internal.ssl.KerberosPreMasterSecret.protocolVersion:Lsun/security/ssl/ProtocolVersion;
2: aload 0
aload 2
aload 1
invokestatic sun.security.krb5.internal.ssl.KerberosPreMasterSecret.generatePreMaster:(Ljava/security/SecureRandom;Lsun/security/ssl/ProtocolVersion;)[B
putfield sun.security.krb5.internal.ssl.KerberosPreMasterSecret.preMaster:[B
3: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lsun/security/krb5/internal/ssl/KerberosPreMasterSecret;
0 4 1 protocolVersion Lsun/security/ssl/ProtocolVersion;
0 4 2 generator Ljava/security/SecureRandom;
MethodParameters:
Name Flags
protocolVersion
generator
private static byte[] generatePreMaster(java.security.SecureRandom, sun.security.ssl.ProtocolVersion);
descriptor: (Ljava/security/SecureRandom;Lsun/security/ssl/ProtocolVersion;)[B
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=3, locals=3, args_size=2
start local 0 start local 1 0: bipush 48
newarray 8
astore 2
start local 2 1: aload 0
aload 2
invokevirtual java.security.SecureRandom.nextBytes:([B)V
2: aload 2
iconst_0
aload 1
getfield sun.security.ssl.ProtocolVersion.major:B
bastore
3: aload 2
iconst_1
aload 1
getfield sun.security.ssl.ProtocolVersion.minor:B
bastore
4: aload 2
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 rand Ljava/security/SecureRandom;
0 5 1 ver Lsun/security/ssl/ProtocolVersion;
1 5 2 pm [B
MethodParameters:
Name Flags
rand
ver
byte[] getUnencrypted();
descriptor: ()[B
flags: (0x0000)
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield sun.security.krb5.internal.ssl.KerberosPreMasterSecret.preMaster:[B
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lsun/security/krb5/internal/ssl/KerberosPreMasterSecret;
byte[] getEncrypted();
descriptor: ()[B
flags: (0x0000)
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield sun.security.krb5.internal.ssl.KerberosPreMasterSecret.encrypted:[B
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lsun/security/krb5/internal/ssl/KerberosPreMasterSecret;
}
SourceFile: "KerberosPreMasterSecret.java"