final class sun.security.ssl.KrbClientKeyExchange$KrbClientKeyExchangeConsumer implements sun.security.ssl.SSLConsumer
minor version: 0
major version: 59
flags: flags: (0x0030) ACC_FINAL, ACC_SUPER
this_class: sun.security.ssl.KrbClientKeyExchange$KrbClientKeyExchangeConsumer
super_class: java.lang.Object
{
private void <init>();
descriptor: ()V
flags: (0x0002) ACC_PRIVATE
Code:
stack=1, locals=1, args_size=1
start local 0 // sun.security.ssl.KrbClientKeyExchange$KrbClientKeyExchangeConsumer this
0: .line 312
aload 0 /* this */
invokespecial java.lang.Object.<init>:()V
1: .line 314
return
end local 0 // sun.security.ssl.KrbClientKeyExchange$KrbClientKeyExchangeConsumer this
LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lsun/security/ssl/KrbClientKeyExchange$KrbClientKeyExchangeConsumer;
public void consume(sun.security.ssl.ConnectionContext, java.nio.ByteBuffer);
descriptor: (Lsun/security/ssl/ConnectionContext;Ljava/nio/ByteBuffer;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=6, locals=11, args_size=3
start local 0 // sun.security.ssl.KrbClientKeyExchange$KrbClientKeyExchangeConsumer this
start local 1 // sun.security.ssl.ConnectionContext context
start local 2 // java.nio.ByteBuffer message
0: .line 320
aload 1 /* context */
checkcast sun.security.ssl.ServerHandshakeContext
astore 3 /* shc */
start local 3 // sun.security.ssl.ServerHandshakeContext shc
1: .line 322
aconst_null
astore 4 /* serviceCreds */
start local 4 // java.lang.Object serviceCreds
2: .line 323
aload 3 /* shc */
getfield sun.security.ssl.ServerHandshakeContext.handshakePossessions:Ljava/util/List;
invokeinterface java.util.List.iterator:()Ljava/util/Iterator;
astore 6
goto 9
StackMap locals: sun.security.ssl.KrbClientKeyExchange$KrbClientKeyExchangeConsumer sun.security.ssl.ConnectionContext java.nio.ByteBuffer sun.security.ssl.ServerHandshakeContext java.lang.Object top java.util.Iterator
StackMap stack:
3: aload 6
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast sun.security.ssl.SSLPossession
astore 5 /* possession */
start local 5 // sun.security.ssl.SSLPossession possession
4: .line 324
aload 5 /* possession */
instanceof sun.security.ssl.KrbKeyExchange$KrbServiceCreds
ifeq 9
5: .line 325
aload 5 /* possession */
checkcast sun.security.ssl.KrbKeyExchange$KrbServiceCreds
6: .line 326
getfield sun.security.ssl.KrbKeyExchange$KrbServiceCreds.serviceCreds:Ljava/lang/Object;
7: .line 325
astore 4 /* serviceCreds */
8: .line 327
goto 10
end local 5 // sun.security.ssl.SSLPossession possession
9: .line 323
StackMap locals:
StackMap stack:
aload 6
invokeinterface java.util.Iterator.hasNext:()Z
ifne 3
10: .line 330
StackMap locals: sun.security.ssl.KrbClientKeyExchange$KrbClientKeyExchangeConsumer sun.security.ssl.ConnectionContext java.nio.ByteBuffer sun.security.ssl.ServerHandshakeContext java.lang.Object
StackMap stack:
aload 4 /* serviceCreds */
ifnonnull 14
11: .line 331
aload 3 /* shc */
getfield sun.security.ssl.ServerHandshakeContext.conContext:Lsun/security/ssl/TransportContext;
getstatic sun.security.ssl.Alert.ILLEGAL_PARAMETER:Lsun/security/ssl/Alert;
12: .line 332
ldc "No Kerberos service credentials for KRB Client Key Exchange"
13: .line 331
invokevirtual sun.security.ssl.TransportContext.fatal:(Lsun/security/ssl/Alert;Ljava/lang/String;)Ljavax/net/ssl/SSLException;
athrow
14: .line 336
StackMap locals:
StackMap stack:
new sun.security.ssl.KrbClientKeyExchange$KrbClientKeyExchangeMessage
dup
aload 3 /* shc */
15: .line 337
aload 2 /* message */
aload 4 /* serviceCreds */
aload 3 /* shc */
getfield sun.security.ssl.ServerHandshakeContext.conContext:Lsun/security/ssl/TransportContext;
getfield sun.security.ssl.TransportContext.acc:Ljava/security/AccessControlContext;
16: .line 336
invokespecial sun.security.ssl.KrbClientKeyExchange$KrbClientKeyExchangeMessage.<init>:(Lsun/security/ssl/HandshakeContext;Ljava/nio/ByteBuffer;Ljava/lang/Object;Ljava/security/AccessControlContext;)V
17: .line 335
astore 5 /* kerberosMsg */
start local 5 // sun.security.ssl.KrbClientKeyExchange$KrbClientKeyExchangeMessage kerberosMsg
18: .line 339
aload 3 /* shc */
getfield sun.security.ssl.ServerHandshakeContext.negotiatedProtocol:Lsun/security/ssl/ProtocolVersion;
19: .line 340
aload 3 /* shc */
getfield sun.security.ssl.ServerHandshakeContext.clientHelloVersion:I
invokestatic sun.security.ssl.ProtocolVersion.valueOf:(I)Lsun/security/ssl/ProtocolVersion;
20: .line 341
aload 5 /* kerberosMsg */
invokevirtual sun.security.ssl.KrbClientKeyExchange$KrbClientKeyExchangeMessage.getPlainPreMasterSecret:()[B
21: .line 342
aload 3 /* shc */
getfield sun.security.ssl.ServerHandshakeContext.sslContext:Lsun/security/ssl/SSLContextImpl;
invokevirtual sun.security.ssl.SSLContextImpl.getSecureRandom:()Ljava/security/SecureRandom;
22: .line 338
invokestatic sun.security.ssl.KrbKeyExchange$KrbPremasterSecret.decode:(Lsun/security/ssl/ProtocolVersion;Lsun/security/ssl/ProtocolVersion;[BLjava/security/SecureRandom;)Lsun/security/ssl/KrbKeyExchange$KrbPremasterSecret;
astore 6 /* premasterSecret */
start local 6 // sun.security.ssl.KrbKeyExchange$KrbPremasterSecret premasterSecret
23: .line 343
aload 3 /* shc */
getfield sun.security.ssl.ServerHandshakeContext.handshakeSession:Lsun/security/ssl/SSLSessionImpl;
aload 5 /* kerberosMsg */
invokevirtual sun.security.ssl.KrbClientKeyExchange$KrbClientKeyExchangeMessage.getPeerPrincipal:()Ljava/security/Principal;
invokevirtual sun.security.ssl.SSLSessionImpl.setPeerPrincipal:(Ljava/security/Principal;)V
24: .line 344
aload 3 /* shc */
getfield sun.security.ssl.ServerHandshakeContext.handshakeSession:Lsun/security/ssl/SSLSessionImpl;
aload 5 /* kerberosMsg */
invokevirtual sun.security.ssl.KrbClientKeyExchange$KrbClientKeyExchangeMessage.getLocalPrincipal:()Ljava/security/Principal;
invokevirtual sun.security.ssl.SSLSessionImpl.setLocalPrincipal:(Ljava/security/Principal;)V
25: .line 345
aload 3 /* shc */
getfield sun.security.ssl.ServerHandshakeContext.handshakeCredentials:Ljava/util/List;
aload 6 /* premasterSecret */
invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
pop
26: .line 346
getstatic sun.security.ssl.SSLLogger.isOn:Z
ifeq 30
ldc "ssl,handshake"
invokestatic sun.security.ssl.SSLLogger.isOn:(Ljava/lang/String;)Z
ifeq 30
27: .line 348
ldc "Consuming KRB5 ClientKeyExchange handshake message"
iconst_1
anewarray java.lang.Object
dup
iconst_0
28: .line 349
aload 5 /* kerberosMsg */
aastore
29: .line 347
invokestatic sun.security.ssl.SSLLogger.fine:(Ljava/lang/String;[Ljava/lang/Object;)V
30: .line 354
StackMap locals: sun.security.ssl.KrbClientKeyExchange$KrbClientKeyExchangeMessage sun.security.ssl.KrbKeyExchange$KrbPremasterSecret
StackMap stack:
aload 3 /* shc */
getfield sun.security.ssl.ServerHandshakeContext.negotiatedCipherSuite:Lsun/security/ssl/CipherSuite;
getfield sun.security.ssl.CipherSuite.keyExchange:Lsun/security/ssl/CipherSuite$KeyExchange;
31: .line 355
aload 3 /* shc */
getfield sun.security.ssl.ServerHandshakeContext.negotiatedProtocol:Lsun/security/ssl/ProtocolVersion;
32: .line 353
invokestatic sun.security.ssl.SSLKeyExchange.valueOf:(Lsun/security/ssl/CipherSuite$KeyExchange;Lsun/security/ssl/ProtocolVersion;)Lsun/security/ssl/SSLKeyExchange;
astore 7 /* ke */
start local 7 // sun.security.ssl.SSLKeyExchange ke
33: .line 356
aload 7 /* ke */
ifnonnull 37
34: .line 357
aload 3 /* shc */
getfield sun.security.ssl.ServerHandshakeContext.conContext:Lsun/security/ssl/TransportContext;
getstatic sun.security.ssl.Alert.INTERNAL_ERROR:Lsun/security/ssl/Alert;
35: .line 358
ldc "Not supported key exchange type"
36: .line 357
invokevirtual sun.security.ssl.TransportContext.fatal:(Lsun/security/ssl/Alert;Ljava/lang/String;)Ljavax/net/ssl/SSLException;
athrow
37: .line 360
StackMap locals: sun.security.ssl.SSLKeyExchange
StackMap stack:
aload 7 /* ke */
aload 3 /* shc */
invokevirtual sun.security.ssl.SSLKeyExchange.createKeyDerivation:(Lsun/security/ssl/HandshakeContext;)Lsun/security/ssl/SSLKeyDerivation;
astore 8 /* masterKD */
start local 8 // sun.security.ssl.SSLKeyDerivation masterKD
38: .line 362
aload 8 /* masterKD */
ldc "MasterSecret"
aconst_null
invokeinterface sun.security.ssl.SSLKeyDerivation.deriveKey:(Ljava/lang/String;Ljava/security/spec/AlgorithmParameterSpec;)Ljavax/crypto/SecretKey;
39: .line 361
astore 9 /* masterSecret */
start local 9 // javax.crypto.SecretKey masterSecret
40: .line 365
aload 3 /* shc */
getfield sun.security.ssl.ServerHandshakeContext.handshakeSession:Lsun/security/ssl/SSLSessionImpl;
aload 9 /* masterSecret */
invokevirtual sun.security.ssl.SSLSessionImpl.setMasterSecret:(Ljavax/crypto/SecretKey;)V
41: .line 367
aload 3 /* shc */
getfield sun.security.ssl.ServerHandshakeContext.negotiatedProtocol:Lsun/security/ssl/ProtocolVersion;
invokestatic sun.security.ssl.SSLTrafficKeyDerivation.valueOf:(Lsun/security/ssl/ProtocolVersion;)Lsun/security/ssl/SSLTrafficKeyDerivation;
42: .line 366
astore 10 /* kd */
start local 10 // sun.security.ssl.SSLTrafficKeyDerivation kd
43: .line 368
aload 10 /* kd */
ifnonnull 49
44: .line 369
aload 3 /* shc */
getfield sun.security.ssl.ServerHandshakeContext.conContext:Lsun/security/ssl/TransportContext;
getstatic sun.security.ssl.Alert.INTERNAL_ERROR:Lsun/security/ssl/Alert;
45: .line 370
new java.lang.StringBuilder
dup
ldc "Not supported key derivation: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
46: .line 371
aload 3 /* shc */
getfield sun.security.ssl.ServerHandshakeContext.negotiatedProtocol:Lsun/security/ssl/ProtocolVersion;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
47: .line 370
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
48: .line 369
invokevirtual sun.security.ssl.TransportContext.fatal:(Lsun/security/ssl/Alert;Ljava/lang/String;)Ljavax/net/ssl/SSLException;
athrow
49: .line 373
StackMap locals: sun.security.ssl.SSLKeyDerivation javax.crypto.SecretKey sun.security.ssl.SSLTrafficKeyDerivation
StackMap stack:
aload 3 /* shc */
50: .line 374
aload 10 /* kd */
aload 3 /* shc */
aload 9 /* masterSecret */
invokevirtual sun.security.ssl.SSLTrafficKeyDerivation.createKeyDerivation:(Lsun/security/ssl/HandshakeContext;Ljavax/crypto/SecretKey;)Lsun/security/ssl/SSLKeyDerivation;
51: .line 373
putfield sun.security.ssl.ServerHandshakeContext.handshakeKeyDerivation:Lsun/security/ssl/SSLKeyDerivation;
end local 10 // sun.security.ssl.SSLTrafficKeyDerivation kd
end local 9 // javax.crypto.SecretKey masterSecret
end local 8 // sun.security.ssl.SSLKeyDerivation masterKD
52: .line 377
return
end local 7 // sun.security.ssl.SSLKeyExchange ke
end local 6 // sun.security.ssl.KrbKeyExchange$KrbPremasterSecret premasterSecret
end local 5 // sun.security.ssl.KrbClientKeyExchange$KrbClientKeyExchangeMessage kerberosMsg
end local 4 // java.lang.Object serviceCreds
end local 3 // sun.security.ssl.ServerHandshakeContext shc
end local 2 // java.nio.ByteBuffer message
end local 1 // sun.security.ssl.ConnectionContext context
end local 0 // sun.security.ssl.KrbClientKeyExchange$KrbClientKeyExchangeConsumer this
LocalVariableTable:
Start End Slot Name Signature
0 53 0 this Lsun/security/ssl/KrbClientKeyExchange$KrbClientKeyExchangeConsumer;
0 53 1 context Lsun/security/ssl/ConnectionContext;
0 53 2 message Ljava/nio/ByteBuffer;
1 53 3 shc Lsun/security/ssl/ServerHandshakeContext;
2 53 4 serviceCreds Ljava/lang/Object;
4 9 5 possession Lsun/security/ssl/SSLPossession;
18 53 5 kerberosMsg Lsun/security/ssl/KrbClientKeyExchange$KrbClientKeyExchangeMessage;
23 53 6 premasterSecret Lsun/security/ssl/KrbKeyExchange$KrbPremasterSecret;
33 53 7 ke Lsun/security/ssl/SSLKeyExchange;
38 52 8 masterKD Lsun/security/ssl/SSLKeyDerivation;
40 52 9 masterSecret Ljavax/crypto/SecretKey;
43 52 10 kd Lsun/security/ssl/SSLTrafficKeyDerivation;
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
context
message
}
SourceFile: "KrbClientKeyExchange.java"
NestHost: sun.security.ssl.KrbClientKeyExchange
InnerClasses:
final KeyExchange = sun.security.ssl.CipherSuite$KeyExchange of sun.security.ssl.CipherSuite
private final KrbClientKeyExchangeConsumer = sun.security.ssl.KrbClientKeyExchange$KrbClientKeyExchangeConsumer of sun.security.ssl.KrbClientKeyExchange
private final KrbClientKeyExchangeMessage = sun.security.ssl.KrbClientKeyExchange$KrbClientKeyExchangeMessage of sun.security.ssl.KrbClientKeyExchange
final KrbPremasterSecret = sun.security.ssl.KrbKeyExchange$KrbPremasterSecret of sun.security.ssl.KrbKeyExchange
final KrbServiceCreds = sun.security.ssl.KrbKeyExchange$KrbServiceCreds of sun.security.ssl.KrbKeyExchange