final class sun.security.ssl.RSAClientKeyExchange$RSAClientKeyExchangeConsumer implements sun.security.ssl.SSLConsumer
minor version: 0
major version: 59
flags: flags: (0x0030) ACC_FINAL, ACC_SUPER
this_class: sun.security.ssl.RSAClientKeyExchange$RSAClientKeyExchangeConsumer
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.RSAClientKeyExchange$RSAClientKeyExchangeConsumer this
0: .line 238
aload 0 /* this */
invokespecial java.lang.Object.<init>:()V
1: .line 240
return
end local 0 // sun.security.ssl.RSAClientKeyExchange$RSAClientKeyExchangeConsumer this
LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lsun/security/ssl/RSAClientKeyExchange$RSAClientKeyExchangeConsumer;
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=5, locals=13, args_size=3
start local 0 // sun.security.ssl.RSAClientKeyExchange$RSAClientKeyExchangeConsumer this
start local 1 // sun.security.ssl.ConnectionContext context
start local 2 // java.nio.ByteBuffer message
0: .line 246
aload 1 /* context */
checkcast sun.security.ssl.ServerHandshakeContext
astore 3 /* shc */
start local 3 // sun.security.ssl.ServerHandshakeContext shc
1: .line 248
aconst_null
astore 4 /* rsaPossession */
start local 4 // sun.security.ssl.RSAKeyExchange$EphemeralRSAPossession rsaPossession
2: .line 249
aconst_null
astore 5 /* x509Possession */
start local 5 // sun.security.ssl.X509Authentication$X509Possession x509Possession
3: .line 250
aload 3 /* shc */
getfield sun.security.ssl.ServerHandshakeContext.handshakePossessions:Ljava/util/List;
invokeinterface java.util.List.iterator:()Ljava/util/Iterator;
astore 7
goto 12
StackMap locals: sun.security.ssl.RSAClientKeyExchange$RSAClientKeyExchangeConsumer sun.security.ssl.ConnectionContext java.nio.ByteBuffer sun.security.ssl.ServerHandshakeContext sun.security.ssl.RSAKeyExchange$EphemeralRSAPossession sun.security.ssl.X509Authentication$X509Possession top java.util.Iterator
StackMap stack:
4: aload 7
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast sun.security.ssl.SSLPossession
astore 6 /* possession */
start local 6 // sun.security.ssl.SSLPossession possession
5: .line 251
aload 6 /* possession */
instanceof sun.security.ssl.RSAKeyExchange$EphemeralRSAPossession
ifeq 8
6: .line 252
aload 6 /* possession */
checkcast sun.security.ssl.RSAKeyExchange$EphemeralRSAPossession
astore 4 /* rsaPossession */
7: .line 253
goto 13
8: .line 254
StackMap locals: sun.security.ssl.RSAClientKeyExchange$RSAClientKeyExchangeConsumer sun.security.ssl.ConnectionContext java.nio.ByteBuffer sun.security.ssl.ServerHandshakeContext sun.security.ssl.RSAKeyExchange$EphemeralRSAPossession sun.security.ssl.X509Authentication$X509Possession sun.security.ssl.SSLPossession java.util.Iterator
StackMap stack:
aload 6 /* possession */
instanceof sun.security.ssl.X509Authentication$X509Possession
ifeq 12
9: .line 255
aload 6 /* possession */
checkcast sun.security.ssl.X509Authentication$X509Possession
astore 5 /* x509Possession */
10: .line 256
aload 4 /* rsaPossession */
ifnull 12
11: .line 257
goto 13
end local 6 // sun.security.ssl.SSLPossession possession
12: .line 250
StackMap locals: sun.security.ssl.RSAClientKeyExchange$RSAClientKeyExchangeConsumer sun.security.ssl.ConnectionContext java.nio.ByteBuffer sun.security.ssl.ServerHandshakeContext sun.security.ssl.RSAKeyExchange$EphemeralRSAPossession sun.security.ssl.X509Authentication$X509Possession top java.util.Iterator
StackMap stack:
aload 7
invokeinterface java.util.Iterator.hasNext:()Z
ifne 4
13: .line 262
StackMap locals: sun.security.ssl.RSAClientKeyExchange$RSAClientKeyExchangeConsumer sun.security.ssl.ConnectionContext java.nio.ByteBuffer sun.security.ssl.ServerHandshakeContext sun.security.ssl.RSAKeyExchange$EphemeralRSAPossession sun.security.ssl.X509Authentication$X509Possession
StackMap stack:
aload 4 /* rsaPossession */
ifnonnull 17
aload 5 /* x509Possession */
ifnonnull 17
14: .line 263
aload 3 /* shc */
getfield sun.security.ssl.ServerHandshakeContext.conContext:Lsun/security/ssl/TransportContext;
getstatic sun.security.ssl.Alert.ILLEGAL_PARAMETER:Lsun/security/ssl/Alert;
15: .line 264
ldc "No RSA possessions negotiated for client key exchange"
16: .line 263
invokevirtual sun.security.ssl.TransportContext.fatal:(Lsun/security/ssl/Alert;Ljava/lang/String;)Ljavax/net/ssl/SSLException;
athrow
17: .line 267
StackMap locals:
StackMap stack:
aload 4 /* rsaPossession */
ifnull 19
18: .line 268
aload 4 /* rsaPossession */
getfield sun.security.ssl.RSAKeyExchange$EphemeralRSAPossession.popPrivateKey:Ljava/security/PrivateKey;
goto 20
StackMap locals:
StackMap stack:
19: aload 5 /* x509Possession */
getfield sun.security.ssl.X509Authentication$X509Possession.popPrivateKey:Ljava/security/PrivateKey;
20: .line 267
StackMap locals:
StackMap stack: java.security.PrivateKey
astore 6 /* privateKey */
start local 6 // java.security.PrivateKey privateKey
21: .line 269
aload 6 /* privateKey */
invokeinterface java.security.PrivateKey.getAlgorithm:()Ljava/lang/String;
ldc "RSA"
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifne 25
22: .line 270
aload 3 /* shc */
getfield sun.security.ssl.ServerHandshakeContext.conContext:Lsun/security/ssl/TransportContext;
getstatic sun.security.ssl.Alert.ILLEGAL_PARAMETER:Lsun/security/ssl/Alert;
23: .line 271
ldc "Not RSA private key for client key exchange"
24: .line 270
invokevirtual sun.security.ssl.TransportContext.fatal:(Lsun/security/ssl/Alert;Ljava/lang/String;)Ljavax/net/ssl/SSLException;
athrow
25: .line 275
StackMap locals: java.security.PrivateKey
StackMap stack:
new sun.security.ssl.RSAClientKeyExchange$RSAClientKeyExchangeMessage
dup
aload 3 /* shc */
aload 2 /* message */
invokespecial sun.security.ssl.RSAClientKeyExchange$RSAClientKeyExchangeMessage.<init>:(Lsun/security/ssl/HandshakeContext;Ljava/nio/ByteBuffer;)V
26: .line 274
astore 7 /* ckem */
start local 7 // sun.security.ssl.RSAClientKeyExchange$RSAClientKeyExchangeMessage ckem
27: .line 276
getstatic sun.security.ssl.SSLLogger.isOn:Z
ifeq 30
ldc "ssl,handshake"
invokestatic sun.security.ssl.SSLLogger.isOn:(Ljava/lang/String;)Z
ifeq 30
28: .line 278
ldc "Consuming RSA ClientKeyExchange handshake message"
iconst_1
anewarray java.lang.Object
dup
iconst_0
aload 7 /* ckem */
aastore
29: .line 277
invokestatic sun.security.ssl.SSLLogger.fine:(Ljava/lang/String;[Ljava/lang/Object;)V
30: .line 285
StackMap locals: sun.security.ssl.RSAClientKeyExchange$RSAClientKeyExchangeMessage
StackMap stack:
aload 3 /* shc */
aload 6 /* privateKey */
aload 7 /* ckem */
getfield sun.security.ssl.RSAClientKeyExchange$RSAClientKeyExchangeMessage.encrypted:[B
invokestatic sun.security.ssl.RSAKeyExchange$RSAPremasterSecret.decode:(Lsun/security/ssl/ServerHandshakeContext;Ljava/security/PrivateKey;[B)Lsun/security/ssl/RSAKeyExchange$RSAPremasterSecret;
31: .line 284
astore 8 /* premaster */
start local 8 // sun.security.ssl.RSAKeyExchange$RSAPremasterSecret premaster
32: .line 286
aload 3 /* shc */
getfield sun.security.ssl.ServerHandshakeContext.handshakeCredentials:Ljava/util/List;
aload 8 /* premaster */
invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
pop
33: .line 287
goto 38
end local 8 // sun.security.ssl.RSAKeyExchange$RSAPremasterSecret premaster
StackMap locals:
StackMap stack: java.security.GeneralSecurityException
34: astore 9 /* gse */
start local 9 // java.security.GeneralSecurityException gse
35: .line 288
aload 3 /* shc */
getfield sun.security.ssl.ServerHandshakeContext.conContext:Lsun/security/ssl/TransportContext;
getstatic sun.security.ssl.Alert.ILLEGAL_PARAMETER:Lsun/security/ssl/Alert;
36: .line 289
ldc "Cannot decode RSA premaster secret"
aload 9 /* gse */
37: .line 288
invokevirtual sun.security.ssl.TransportContext.fatal:(Lsun/security/ssl/Alert;Ljava/lang/String;Ljava/lang/Throwable;)Ljavax/net/ssl/SSLException;
athrow
end local 9 // java.security.GeneralSecurityException gse
start local 8 // sun.security.ssl.RSAKeyExchange$RSAPremasterSecret premaster
38: .line 294
StackMap locals: sun.security.ssl.RSAKeyExchange$RSAPremasterSecret
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;
39: .line 295
aload 3 /* shc */
getfield sun.security.ssl.ServerHandshakeContext.negotiatedProtocol:Lsun/security/ssl/ProtocolVersion;
40: .line 293
invokestatic sun.security.ssl.SSLKeyExchange.valueOf:(Lsun/security/ssl/CipherSuite$KeyExchange;Lsun/security/ssl/ProtocolVersion;)Lsun/security/ssl/SSLKeyExchange;
astore 9 /* ke */
start local 9 // sun.security.ssl.SSLKeyExchange ke
41: .line 296
aload 9 /* ke */
ifnonnull 45
42: .line 297
aload 3 /* shc */
getfield sun.security.ssl.ServerHandshakeContext.conContext:Lsun/security/ssl/TransportContext;
getstatic sun.security.ssl.Alert.INTERNAL_ERROR:Lsun/security/ssl/Alert;
43: .line 298
ldc "Not supported key exchange type"
44: .line 297
invokevirtual sun.security.ssl.TransportContext.fatal:(Lsun/security/ssl/Alert;Ljava/lang/String;)Ljavax/net/ssl/SSLException;
athrow
45: .line 300
StackMap locals: sun.security.ssl.SSLKeyExchange
StackMap stack:
aload 9 /* ke */
aload 3 /* shc */
invokevirtual sun.security.ssl.SSLKeyExchange.createKeyDerivation:(Lsun/security/ssl/HandshakeContext;)Lsun/security/ssl/SSLKeyDerivation;
astore 10 /* masterKD */
start local 10 // sun.security.ssl.SSLKeyDerivation masterKD
46: .line 302
aload 10 /* masterKD */
ldc "MasterSecret"
aconst_null
invokeinterface sun.security.ssl.SSLKeyDerivation.deriveKey:(Ljava/lang/String;Ljava/security/spec/AlgorithmParameterSpec;)Ljavax/crypto/SecretKey;
47: .line 301
astore 11 /* masterSecret */
start local 11 // javax.crypto.SecretKey masterSecret
48: .line 305
aload 3 /* shc */
getfield sun.security.ssl.ServerHandshakeContext.handshakeSession:Lsun/security/ssl/SSLSessionImpl;
aload 11 /* masterSecret */
invokevirtual sun.security.ssl.SSLSessionImpl.setMasterSecret:(Ljavax/crypto/SecretKey;)V
49: .line 307
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;
50: .line 306
astore 12 /* kd */
start local 12 // sun.security.ssl.SSLTrafficKeyDerivation kd
51: .line 308
aload 12 /* kd */
ifnonnull 57
52: .line 309
aload 3 /* shc */
getfield sun.security.ssl.ServerHandshakeContext.conContext:Lsun/security/ssl/TransportContext;
getstatic sun.security.ssl.Alert.INTERNAL_ERROR:Lsun/security/ssl/Alert;
53: .line 310
new java.lang.StringBuilder
dup
ldc "Not supported key derivation: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
54: .line 311
aload 3 /* shc */
getfield sun.security.ssl.ServerHandshakeContext.negotiatedProtocol:Lsun/security/ssl/ProtocolVersion;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
55: .line 310
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
56: .line 309
invokevirtual sun.security.ssl.TransportContext.fatal:(Lsun/security/ssl/Alert;Ljava/lang/String;)Ljavax/net/ssl/SSLException;
athrow
57: .line 313
StackMap locals: sun.security.ssl.SSLKeyDerivation javax.crypto.SecretKey sun.security.ssl.SSLTrafficKeyDerivation
StackMap stack:
aload 3 /* shc */
58: .line 314
aload 12 /* kd */
aload 3 /* shc */
aload 11 /* masterSecret */
invokevirtual sun.security.ssl.SSLTrafficKeyDerivation.createKeyDerivation:(Lsun/security/ssl/HandshakeContext;Ljavax/crypto/SecretKey;)Lsun/security/ssl/SSLKeyDerivation;
59: .line 313
putfield sun.security.ssl.ServerHandshakeContext.handshakeKeyDerivation:Lsun/security/ssl/SSLKeyDerivation;
end local 12 // sun.security.ssl.SSLTrafficKeyDerivation kd
end local 11 // javax.crypto.SecretKey masterSecret
end local 10 // sun.security.ssl.SSLKeyDerivation masterKD
60: .line 317
return
end local 9 // sun.security.ssl.SSLKeyExchange ke
end local 8 // sun.security.ssl.RSAKeyExchange$RSAPremasterSecret premaster
end local 7 // sun.security.ssl.RSAClientKeyExchange$RSAClientKeyExchangeMessage ckem
end local 6 // java.security.PrivateKey privateKey
end local 5 // sun.security.ssl.X509Authentication$X509Possession x509Possession
end local 4 // sun.security.ssl.RSAKeyExchange$EphemeralRSAPossession rsaPossession
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.RSAClientKeyExchange$RSAClientKeyExchangeConsumer this
LocalVariableTable:
Start End Slot Name Signature
0 61 0 this Lsun/security/ssl/RSAClientKeyExchange$RSAClientKeyExchangeConsumer;
0 61 1 context Lsun/security/ssl/ConnectionContext;
0 61 2 message Ljava/nio/ByteBuffer;
1 61 3 shc Lsun/security/ssl/ServerHandshakeContext;
2 61 4 rsaPossession Lsun/security/ssl/RSAKeyExchange$EphemeralRSAPossession;
3 61 5 x509Possession Lsun/security/ssl/X509Authentication$X509Possession;
5 12 6 possession Lsun/security/ssl/SSLPossession;
21 61 6 privateKey Ljava/security/PrivateKey;
27 61 7 ckem Lsun/security/ssl/RSAClientKeyExchange$RSAClientKeyExchangeMessage;
32 34 8 premaster Lsun/security/ssl/RSAKeyExchange$RSAPremasterSecret;
38 61 8 premaster Lsun/security/ssl/RSAKeyExchange$RSAPremasterSecret;
35 38 9 gse Ljava/security/GeneralSecurityException;
41 61 9 ke Lsun/security/ssl/SSLKeyExchange;
46 60 10 masterKD Lsun/security/ssl/SSLKeyDerivation;
48 60 11 masterSecret Ljavax/crypto/SecretKey;
51 60 12 kd Lsun/security/ssl/SSLTrafficKeyDerivation;
Exception table:
from to target type
30 33 34 Class java.security.GeneralSecurityException
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
context
message
}
SourceFile: "RSAClientKeyExchange.java"
NestHost: sun.security.ssl.RSAClientKeyExchange
InnerClasses:
final KeyExchange = sun.security.ssl.CipherSuite$KeyExchange of sun.security.ssl.CipherSuite
private final RSAClientKeyExchangeConsumer = sun.security.ssl.RSAClientKeyExchange$RSAClientKeyExchangeConsumer of sun.security.ssl.RSAClientKeyExchange
private final RSAClientKeyExchangeMessage = sun.security.ssl.RSAClientKeyExchange$RSAClientKeyExchangeMessage of sun.security.ssl.RSAClientKeyExchange
final EphemeralRSAPossession = sun.security.ssl.RSAKeyExchange$EphemeralRSAPossession of sun.security.ssl.RSAKeyExchange
final RSAPremasterSecret = sun.security.ssl.RSAKeyExchange$RSAPremasterSecret of sun.security.ssl.RSAKeyExchange
final X509Possession = sun.security.ssl.X509Authentication$X509Possession of sun.security.ssl.X509Authentication