final class sun.security.ssl.RSAClientKeyExchange$RSAClientKeyExchangeProducer implements sun.security.ssl.HandshakeProducer
minor version: 0
major version: 59
flags: flags: (0x0030) ACC_FINAL, ACC_SUPER
this_class: sun.security.ssl.RSAClientKeyExchange$RSAClientKeyExchangeProducer
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$RSAClientKeyExchangeProducer this
0: .line 143
aload 0 /* this */
invokespecial java.lang.Object.<init>:()V
1: .line 145
return
end local 0 // sun.security.ssl.RSAClientKeyExchange$RSAClientKeyExchangeProducer this
LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lsun/security/ssl/RSAClientKeyExchange$RSAClientKeyExchangeProducer;
public byte[] produce(sun.security.ssl.ConnectionContext, sun.security.ssl.SSLHandshake$HandshakeMessage);
descriptor: (Lsun/security/ssl/ConnectionContext;Lsun/security/ssl/SSLHandshake$HandshakeMessage;)[B
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=13, args_size=3
start local 0 // sun.security.ssl.RSAClientKeyExchange$RSAClientKeyExchangeProducer this
start local 1 // sun.security.ssl.ConnectionContext context
start local 2 // sun.security.ssl.SSLHandshake$HandshakeMessage message
0: .line 151
aload 1 /* context */
checkcast sun.security.ssl.ClientHandshakeContext
astore 3 /* chc */
start local 3 // sun.security.ssl.ClientHandshakeContext chc
1: .line 153
aconst_null
astore 4 /* rsaCredentials */
start local 4 // sun.security.ssl.RSAKeyExchange$EphemeralRSACredentials rsaCredentials
2: .line 154
aconst_null
astore 5 /* x509Credentials */
start local 5 // sun.security.ssl.X509Authentication$X509Credentials x509Credentials
3: .line 155
aload 3 /* chc */
getfield sun.security.ssl.ClientHandshakeContext.handshakeCredentials:Ljava/util/List;
invokeinterface java.util.List.iterator:()Ljava/util/Iterator;
astore 7
goto 13
StackMap locals: sun.security.ssl.RSAClientKeyExchange$RSAClientKeyExchangeProducer sun.security.ssl.ConnectionContext sun.security.ssl.SSLHandshake$HandshakeMessage sun.security.ssl.ClientHandshakeContext sun.security.ssl.RSAKeyExchange$EphemeralRSACredentials sun.security.ssl.X509Authentication$X509Credentials top java.util.Iterator
StackMap stack:
4: aload 7
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast sun.security.ssl.SSLCredentials
astore 6 /* credential */
start local 6 // sun.security.ssl.SSLCredentials credential
5: .line 156
aload 6 /* credential */
instanceof sun.security.ssl.RSAKeyExchange$EphemeralRSACredentials
ifeq 9
6: .line 157
aload 6 /* credential */
checkcast sun.security.ssl.RSAKeyExchange$EphemeralRSACredentials
astore 4 /* rsaCredentials */
7: .line 158
aload 5 /* x509Credentials */
ifnull 13
8: .line 159
goto 14
9: .line 161
StackMap locals: sun.security.ssl.RSAClientKeyExchange$RSAClientKeyExchangeProducer sun.security.ssl.ConnectionContext sun.security.ssl.SSLHandshake$HandshakeMessage sun.security.ssl.ClientHandshakeContext sun.security.ssl.RSAKeyExchange$EphemeralRSACredentials sun.security.ssl.X509Authentication$X509Credentials sun.security.ssl.SSLCredentials java.util.Iterator
StackMap stack:
aload 6 /* credential */
instanceof sun.security.ssl.X509Authentication$X509Credentials
ifeq 13
10: .line 162
aload 6 /* credential */
checkcast sun.security.ssl.X509Authentication$X509Credentials
astore 5 /* x509Credentials */
11: .line 163
aload 4 /* rsaCredentials */
ifnull 13
12: .line 164
goto 14
end local 6 // sun.security.ssl.SSLCredentials credential
13: .line 155
StackMap locals: sun.security.ssl.RSAClientKeyExchange$RSAClientKeyExchangeProducer sun.security.ssl.ConnectionContext sun.security.ssl.SSLHandshake$HandshakeMessage sun.security.ssl.ClientHandshakeContext sun.security.ssl.RSAKeyExchange$EphemeralRSACredentials sun.security.ssl.X509Authentication$X509Credentials top java.util.Iterator
StackMap stack:
aload 7
invokeinterface java.util.Iterator.hasNext:()Z
ifne 4
14: .line 169
StackMap locals: sun.security.ssl.RSAClientKeyExchange$RSAClientKeyExchangeProducer sun.security.ssl.ConnectionContext sun.security.ssl.SSLHandshake$HandshakeMessage sun.security.ssl.ClientHandshakeContext sun.security.ssl.RSAKeyExchange$EphemeralRSACredentials sun.security.ssl.X509Authentication$X509Credentials
StackMap stack:
aload 4 /* rsaCredentials */
ifnonnull 18
aload 5 /* x509Credentials */
ifnonnull 18
15: .line 170
aload 3 /* chc */
getfield sun.security.ssl.ClientHandshakeContext.conContext:Lsun/security/ssl/TransportContext;
getstatic sun.security.ssl.Alert.ILLEGAL_PARAMETER:Lsun/security/ssl/Alert;
16: .line 171
ldc "No RSA credentials negotiated for client key exchange"
17: .line 170
invokevirtual sun.security.ssl.TransportContext.fatal:(Lsun/security/ssl/Alert;Ljava/lang/String;)Ljavax/net/ssl/SSLException;
athrow
18: .line 174
StackMap locals:
StackMap stack:
aload 4 /* rsaCredentials */
ifnull 20
19: .line 175
aload 4 /* rsaCredentials */
getfield sun.security.ssl.RSAKeyExchange$EphemeralRSACredentials.popPublicKey:Ljava/security/interfaces/RSAPublicKey;
goto 21
StackMap locals:
StackMap stack:
20: aload 5 /* x509Credentials */
getfield sun.security.ssl.X509Authentication$X509Credentials.popPublicKey:Ljava/security/PublicKey;
21: .line 174
StackMap locals:
StackMap stack: java.security.PublicKey
astore 6 /* publicKey */
start local 6 // java.security.PublicKey publicKey
22: .line 176
aload 6 /* publicKey */
invokeinterface java.security.PublicKey.getAlgorithm:()Ljava/lang/String;
ldc "RSA"
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifne 26
23: .line 177
aload 3 /* chc */
getfield sun.security.ssl.ClientHandshakeContext.conContext:Lsun/security/ssl/TransportContext;
getstatic sun.security.ssl.Alert.ILLEGAL_PARAMETER:Lsun/security/ssl/Alert;
24: .line 178
ldc "Not RSA public key for client key exchange"
25: .line 177
invokevirtual sun.security.ssl.TransportContext.fatal:(Lsun/security/ssl/Alert;Ljava/lang/String;)Ljavax/net/ssl/SSLException;
athrow
26: .line 184
StackMap locals: java.security.PublicKey
StackMap stack:
aload 3 /* chc */
invokestatic sun.security.ssl.RSAKeyExchange$RSAPremasterSecret.createPremasterSecret:(Lsun/security/ssl/ClientHandshakeContext;)Lsun/security/ssl/RSAKeyExchange$RSAPremasterSecret;
astore 7 /* premaster */
start local 7 // sun.security.ssl.RSAKeyExchange$RSAPremasterSecret premaster
27: .line 185
aload 3 /* chc */
getfield sun.security.ssl.ClientHandshakeContext.handshakePossessions:Ljava/util/List;
aload 7 /* premaster */
invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
pop
28: .line 186
new sun.security.ssl.RSAClientKeyExchange$RSAClientKeyExchangeMessage
dup
29: .line 187
aload 3 /* chc */
aload 7 /* premaster */
aload 6 /* publicKey */
30: .line 186
invokespecial sun.security.ssl.RSAClientKeyExchange$RSAClientKeyExchangeMessage.<init>:(Lsun/security/ssl/HandshakeContext;Lsun/security/ssl/RSAKeyExchange$RSAPremasterSecret;Ljava/security/PublicKey;)V
astore 8 /* ckem */
start local 8 // sun.security.ssl.RSAClientKeyExchange$RSAClientKeyExchangeMessage ckem
31: .line 188
goto 36
end local 8 // sun.security.ssl.RSAClientKeyExchange$RSAClientKeyExchangeMessage ckem
end local 7 // sun.security.ssl.RSAKeyExchange$RSAPremasterSecret premaster
StackMap locals:
StackMap stack: java.security.GeneralSecurityException
32: astore 9 /* gse */
start local 9 // java.security.GeneralSecurityException gse
33: .line 189
aload 3 /* chc */
getfield sun.security.ssl.ClientHandshakeContext.conContext:Lsun/security/ssl/TransportContext;
getstatic sun.security.ssl.Alert.ILLEGAL_PARAMETER:Lsun/security/ssl/Alert;
34: .line 190
ldc "Cannot generate RSA premaster secret"
aload 9 /* gse */
35: .line 189
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 7 // sun.security.ssl.RSAKeyExchange$RSAPremasterSecret premaster
start local 8 // sun.security.ssl.RSAClientKeyExchange$RSAClientKeyExchangeMessage ckem
36: .line 192
StackMap locals: sun.security.ssl.RSAKeyExchange$RSAPremasterSecret sun.security.ssl.RSAClientKeyExchange$RSAClientKeyExchangeMessage
StackMap stack:
getstatic sun.security.ssl.SSLLogger.isOn:Z
ifeq 39
ldc "ssl,handshake"
invokestatic sun.security.ssl.SSLLogger.isOn:(Ljava/lang/String;)Z
ifeq 39
37: .line 194
ldc "Produced RSA ClientKeyExchange handshake message"
iconst_1
anewarray java.lang.Object
dup
iconst_0
aload 8 /* ckem */
aastore
38: .line 193
invokestatic sun.security.ssl.SSLLogger.fine:(Ljava/lang/String;[Ljava/lang/Object;)V
39: .line 198
StackMap locals:
StackMap stack:
aload 8 /* ckem */
aload 3 /* chc */
getfield sun.security.ssl.ClientHandshakeContext.handshakeOutput:Lsun/security/ssl/HandshakeOutStream;
invokevirtual sun.security.ssl.RSAClientKeyExchange$RSAClientKeyExchangeMessage.write:(Lsun/security/ssl/HandshakeOutStream;)V
40: .line 199
aload 3 /* chc */
getfield sun.security.ssl.ClientHandshakeContext.handshakeOutput:Lsun/security/ssl/HandshakeOutStream;
invokevirtual sun.security.ssl.HandshakeOutStream.flush:()V
41: .line 203
aload 3 /* chc */
getfield sun.security.ssl.ClientHandshakeContext.negotiatedCipherSuite:Lsun/security/ssl/CipherSuite;
getfield sun.security.ssl.CipherSuite.keyExchange:Lsun/security/ssl/CipherSuite$KeyExchange;
42: .line 204
aload 3 /* chc */
getfield sun.security.ssl.ClientHandshakeContext.negotiatedProtocol:Lsun/security/ssl/ProtocolVersion;
43: .line 202
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
44: .line 205
aload 9 /* ke */
ifnonnull 48
45: .line 206
aload 3 /* chc */
getfield sun.security.ssl.ClientHandshakeContext.conContext:Lsun/security/ssl/TransportContext;
getstatic sun.security.ssl.Alert.INTERNAL_ERROR:Lsun/security/ssl/Alert;
46: .line 207
ldc "Not supported key exchange type"
47: .line 206
invokevirtual sun.security.ssl.TransportContext.fatal:(Lsun/security/ssl/Alert;Ljava/lang/String;)Ljavax/net/ssl/SSLException;
athrow
48: .line 209
StackMap locals: sun.security.ssl.SSLKeyExchange
StackMap stack:
aload 9 /* ke */
aload 3 /* chc */
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
49: .line 211
aload 10 /* masterKD */
ldc "MasterSecret"
aconst_null
invokeinterface sun.security.ssl.SSLKeyDerivation.deriveKey:(Ljava/lang/String;Ljava/security/spec/AlgorithmParameterSpec;)Ljavax/crypto/SecretKey;
50: .line 210
astore 11 /* masterSecret */
start local 11 // javax.crypto.SecretKey masterSecret
51: .line 214
aload 3 /* chc */
getfield sun.security.ssl.ClientHandshakeContext.handshakeSession:Lsun/security/ssl/SSLSessionImpl;
aload 11 /* masterSecret */
invokevirtual sun.security.ssl.SSLSessionImpl.setMasterSecret:(Ljavax/crypto/SecretKey;)V
52: .line 216
aload 3 /* chc */
getfield sun.security.ssl.ClientHandshakeContext.negotiatedProtocol:Lsun/security/ssl/ProtocolVersion;
invokestatic sun.security.ssl.SSLTrafficKeyDerivation.valueOf:(Lsun/security/ssl/ProtocolVersion;)Lsun/security/ssl/SSLTrafficKeyDerivation;
53: .line 215
astore 12 /* kd */
start local 12 // sun.security.ssl.SSLTrafficKeyDerivation kd
54: .line 217
aload 12 /* kd */
ifnonnull 60
55: .line 218
aload 3 /* chc */
getfield sun.security.ssl.ClientHandshakeContext.conContext:Lsun/security/ssl/TransportContext;
getstatic sun.security.ssl.Alert.INTERNAL_ERROR:Lsun/security/ssl/Alert;
56: .line 219
new java.lang.StringBuilder
dup
ldc "Not supported key derivation: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
57: .line 220
aload 3 /* chc */
getfield sun.security.ssl.ClientHandshakeContext.negotiatedProtocol:Lsun/security/ssl/ProtocolVersion;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
58: .line 219
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
59: .line 218
invokevirtual sun.security.ssl.TransportContext.fatal:(Lsun/security/ssl/Alert;Ljava/lang/String;)Ljavax/net/ssl/SSLException;
athrow
60: .line 222
StackMap locals: sun.security.ssl.SSLKeyDerivation javax.crypto.SecretKey sun.security.ssl.SSLTrafficKeyDerivation
StackMap stack:
aload 3 /* chc */
61: .line 223
aload 12 /* kd */
aload 3 /* chc */
aload 11 /* masterSecret */
invokevirtual sun.security.ssl.SSLTrafficKeyDerivation.createKeyDerivation:(Lsun/security/ssl/HandshakeContext;Ljavax/crypto/SecretKey;)Lsun/security/ssl/SSLKeyDerivation;
62: .line 222
putfield sun.security.ssl.ClientHandshakeContext.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
63: .line 228
aconst_null
areturn
end local 9 // sun.security.ssl.SSLKeyExchange ke
end local 8 // sun.security.ssl.RSAClientKeyExchange$RSAClientKeyExchangeMessage ckem
end local 7 // sun.security.ssl.RSAKeyExchange$RSAPremasterSecret premaster
end local 6 // java.security.PublicKey publicKey
end local 5 // sun.security.ssl.X509Authentication$X509Credentials x509Credentials
end local 4 // sun.security.ssl.RSAKeyExchange$EphemeralRSACredentials rsaCredentials
end local 3 // sun.security.ssl.ClientHandshakeContext chc
end local 2 // sun.security.ssl.SSLHandshake$HandshakeMessage message
end local 1 // sun.security.ssl.ConnectionContext context
end local 0 // sun.security.ssl.RSAClientKeyExchange$RSAClientKeyExchangeProducer this
LocalVariableTable:
Start End Slot Name Signature
0 64 0 this Lsun/security/ssl/RSAClientKeyExchange$RSAClientKeyExchangeProducer;
0 64 1 context Lsun/security/ssl/ConnectionContext;
0 64 2 message Lsun/security/ssl/SSLHandshake$HandshakeMessage;
1 64 3 chc Lsun/security/ssl/ClientHandshakeContext;
2 64 4 rsaCredentials Lsun/security/ssl/RSAKeyExchange$EphemeralRSACredentials;
3 64 5 x509Credentials Lsun/security/ssl/X509Authentication$X509Credentials;
5 13 6 credential Lsun/security/ssl/SSLCredentials;
22 64 6 publicKey Ljava/security/PublicKey;
27 32 7 premaster Lsun/security/ssl/RSAKeyExchange$RSAPremasterSecret;
36 64 7 premaster Lsun/security/ssl/RSAKeyExchange$RSAPremasterSecret;
31 32 8 ckem Lsun/security/ssl/RSAClientKeyExchange$RSAClientKeyExchangeMessage;
36 64 8 ckem Lsun/security/ssl/RSAClientKeyExchange$RSAClientKeyExchangeMessage;
33 36 9 gse Ljava/security/GeneralSecurityException;
44 64 9 ke Lsun/security/ssl/SSLKeyExchange;
49 63 10 masterKD Lsun/security/ssl/SSLKeyDerivation;
51 63 11 masterSecret Ljavax/crypto/SecretKey;
54 63 12 kd Lsun/security/ssl/SSLTrafficKeyDerivation;
Exception table:
from to target type
26 31 32 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 RSAClientKeyExchangeMessage = sun.security.ssl.RSAClientKeyExchange$RSAClientKeyExchangeMessage of sun.security.ssl.RSAClientKeyExchange
private final RSAClientKeyExchangeProducer = sun.security.ssl.RSAClientKeyExchange$RSAClientKeyExchangeProducer of sun.security.ssl.RSAClientKeyExchange
final EphemeralRSACredentials = sun.security.ssl.RSAKeyExchange$EphemeralRSACredentials of sun.security.ssl.RSAKeyExchange
final RSAPremasterSecret = sun.security.ssl.RSAKeyExchange$RSAPremasterSecret of sun.security.ssl.RSAKeyExchange
abstract HandshakeMessage = sun.security.ssl.SSLHandshake$HandshakeMessage of sun.security.ssl.SSLHandshake
final X509Credentials = sun.security.ssl.X509Authentication$X509Credentials of sun.security.ssl.X509Authentication