final class sun.security.ssl.DHServerKeyExchange$DHServerKeyExchangeConsumer implements sun.security.ssl.SSLConsumer
minor version: 0
major version: 59
flags: flags: (0x0030) ACC_FINAL, ACC_SUPER
this_class: sun.security.ssl.DHServerKeyExchange$DHServerKeyExchangeConsumer
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.DHServerKeyExchange$DHServerKeyExchangeConsumer this
0: .line 504
aload 0 /* this */
invokespecial java.lang.Object.<init>:()V
1: .line 506
return
end local 0 // sun.security.ssl.DHServerKeyExchange$DHServerKeyExchangeConsumer this
LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lsun/security/ssl/DHServerKeyExchange$DHServerKeyExchangeConsumer;
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=8, locals=8, args_size=3
start local 0 // sun.security.ssl.DHServerKeyExchange$DHServerKeyExchangeConsumer this
start local 1 // sun.security.ssl.ConnectionContext context
start local 2 // java.nio.ByteBuffer message
0: .line 512
aload 1 /* context */
checkcast sun.security.ssl.ClientHandshakeContext
astore 3 /* chc */
start local 3 // sun.security.ssl.ClientHandshakeContext chc
1: .line 515
new sun.security.ssl.DHServerKeyExchange$DHServerKeyExchangeMessage
dup
aload 3 /* chc */
aload 2 /* message */
invokespecial sun.security.ssl.DHServerKeyExchange$DHServerKeyExchangeMessage.<init>:(Lsun/security/ssl/HandshakeContext;Ljava/nio/ByteBuffer;)V
2: .line 514
astore 4 /* skem */
start local 4 // sun.security.ssl.DHServerKeyExchange$DHServerKeyExchangeMessage skem
3: .line 516
getstatic sun.security.ssl.SSLLogger.isOn:Z
ifeq 6
ldc "ssl,handshake"
invokestatic sun.security.ssl.SSLLogger.isOn:(Ljava/lang/String;)Z
ifeq 6
4: .line 518
ldc "Consuming DH ServerKeyExchange handshake message"
iconst_1
anewarray java.lang.Object
dup
iconst_0
aload 4 /* skem */
aastore
5: .line 517
invokestatic sun.security.ssl.SSLLogger.fine:(Ljava/lang/String;[Ljava/lang/Object;)V
6: .line 527
StackMap locals: sun.security.ssl.ClientHandshakeContext sun.security.ssl.DHServerKeyExchange$DHServerKeyExchangeMessage
StackMap stack:
ldc "DiffieHellman"
invokestatic sun.security.ssl.JsseJce.getKeyFactory:(Ljava/lang/String;)Ljava/security/KeyFactory;
astore 6 /* kf */
start local 6 // java.security.KeyFactory kf
7: .line 528
new javax.crypto.spec.DHPublicKeySpec
dup
8: .line 529
new java.math.BigInteger
dup
iconst_1
aload 4 /* skem */
getfield sun.security.ssl.DHServerKeyExchange$DHServerKeyExchangeMessage.y:[B
invokespecial java.math.BigInteger.<init>:(I[B)V
9: .line 530
new java.math.BigInteger
dup
iconst_1
aload 4 /* skem */
getfield sun.security.ssl.DHServerKeyExchange$DHServerKeyExchangeMessage.p:[B
invokespecial java.math.BigInteger.<init>:(I[B)V
10: .line 531
new java.math.BigInteger
dup
iconst_1
aload 4 /* skem */
getfield sun.security.ssl.DHServerKeyExchange$DHServerKeyExchangeMessage.g:[B
invokespecial java.math.BigInteger.<init>:(I[B)V
11: .line 528
invokespecial javax.crypto.spec.DHPublicKeySpec.<init>:(Ljava/math/BigInteger;Ljava/math/BigInteger;Ljava/math/BigInteger;)V
astore 7 /* spec */
start local 7 // javax.crypto.spec.DHPublicKeySpec spec
12: .line 532
aload 6 /* kf */
aload 7 /* spec */
invokevirtual java.security.KeyFactory.generatePublic:(Ljava/security/spec/KeySpec;)Ljava/security/PublicKey;
checkcast javax.crypto.interfaces.DHPublicKey
astore 5 /* publicKey */
end local 7 // javax.crypto.spec.DHPublicKeySpec spec
end local 6 // java.security.KeyFactory kf
start local 5 // javax.crypto.interfaces.DHPublicKey publicKey
13: .line 533
goto 18
end local 5 // javax.crypto.interfaces.DHPublicKey publicKey
StackMap locals:
StackMap stack: java.security.GeneralSecurityException
14: astore 6 /* gse */
start local 6 // java.security.GeneralSecurityException gse
15: .line 534
aload 3 /* chc */
getfield sun.security.ssl.ClientHandshakeContext.conContext:Lsun/security/ssl/TransportContext;
getstatic sun.security.ssl.Alert.INSUFFICIENT_SECURITY:Lsun/security/ssl/Alert;
16: .line 535
ldc "Could not generate DHPublicKey"
aload 6 /* gse */
17: .line 534
invokevirtual sun.security.ssl.TransportContext.fatal:(Lsun/security/ssl/Alert;Ljava/lang/String;Ljava/lang/Throwable;)Ljavax/net/ssl/SSLException;
athrow
end local 6 // java.security.GeneralSecurityException gse
start local 5 // javax.crypto.interfaces.DHPublicKey publicKey
18: .line 538
StackMap locals: javax.crypto.interfaces.DHPublicKey
StackMap stack:
aload 3 /* chc */
getfield sun.security.ssl.ClientHandshakeContext.algorithmConstraints:Ljava/security/AlgorithmConstraints;
19: .line 539
getstatic java.security.CryptoPrimitive.KEY_AGREEMENT:Ljava/security/CryptoPrimitive;
invokestatic java.util.EnumSet.of:(Ljava/lang/Enum;)Ljava/util/EnumSet;
aload 5 /* publicKey */
20: .line 538
invokeinterface java.security.AlgorithmConstraints.permits:(Ljava/util/Set;Ljava/security/Key;)Z
21: .line 539
ifne 25
22: .line 540
aload 3 /* chc */
getfield sun.security.ssl.ClientHandshakeContext.conContext:Lsun/security/ssl/TransportContext;
getstatic sun.security.ssl.Alert.INSUFFICIENT_SECURITY:Lsun/security/ssl/Alert;
23: .line 541
ldc "DH ServerKeyExchange does not comply to algorithm constraints"
24: .line 540
invokevirtual sun.security.ssl.TransportContext.fatal:(Lsun/security/ssl/Alert;Ljava/lang/String;)Ljavax/net/ssl/SSLException;
athrow
25: .line 548
StackMap locals:
StackMap stack:
aload 5 /* publicKey */
invokeinterface javax.crypto.interfaces.DHPublicKey.getParams:()Ljavax/crypto/spec/DHParameterSpec;
invokestatic sun.security.ssl.SupportedGroupsExtension$NamedGroup.valueOf:(Ljavax/crypto/spec/DHParameterSpec;)Lsun/security/ssl/SupportedGroupsExtension$NamedGroup;
astore 6 /* namedGroup */
start local 6 // sun.security.ssl.SupportedGroupsExtension$NamedGroup namedGroup
26: .line 549
aload 3 /* chc */
getfield sun.security.ssl.ClientHandshakeContext.handshakeCredentials:Ljava/util/List;
27: .line 550
new sun.security.ssl.DHKeyExchange$DHECredentials
dup
aload 5 /* publicKey */
aload 6 /* namedGroup */
invokespecial sun.security.ssl.DHKeyExchange$DHECredentials.<init>:(Ljavax/crypto/interfaces/DHPublicKey;Lsun/security/ssl/SupportedGroupsExtension$NamedGroup;)V
28: .line 549
invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
pop
29: .line 556
return
end local 6 // sun.security.ssl.SupportedGroupsExtension$NamedGroup namedGroup
end local 5 // javax.crypto.interfaces.DHPublicKey publicKey
end local 4 // sun.security.ssl.DHServerKeyExchange$DHServerKeyExchangeMessage skem
end local 3 // sun.security.ssl.ClientHandshakeContext chc
end local 2 // java.nio.ByteBuffer message
end local 1 // sun.security.ssl.ConnectionContext context
end local 0 // sun.security.ssl.DHServerKeyExchange$DHServerKeyExchangeConsumer this
LocalVariableTable:
Start End Slot Name Signature
0 30 0 this Lsun/security/ssl/DHServerKeyExchange$DHServerKeyExchangeConsumer;
0 30 1 context Lsun/security/ssl/ConnectionContext;
0 30 2 message Ljava/nio/ByteBuffer;
1 30 3 chc Lsun/security/ssl/ClientHandshakeContext;
3 30 4 skem Lsun/security/ssl/DHServerKeyExchange$DHServerKeyExchangeMessage;
13 14 5 publicKey Ljavax/crypto/interfaces/DHPublicKey;
18 30 5 publicKey Ljavax/crypto/interfaces/DHPublicKey;
7 13 6 kf Ljava/security/KeyFactory;
12 13 7 spec Ljavax/crypto/spec/DHPublicKeySpec;
15 18 6 gse Ljava/security/GeneralSecurityException;
26 30 6 namedGroup Lsun/security/ssl/SupportedGroupsExtension$NamedGroup;
Exception table:
from to target type
6 13 14 Class java.security.GeneralSecurityException
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
context
message
}
SourceFile: "DHServerKeyExchange.java"
NestHost: sun.security.ssl.DHServerKeyExchange
InnerClasses:
final DHECredentials = sun.security.ssl.DHKeyExchange$DHECredentials of sun.security.ssl.DHKeyExchange
final DHServerKeyExchangeConsumer = sun.security.ssl.DHServerKeyExchange$DHServerKeyExchangeConsumer of sun.security.ssl.DHServerKeyExchange
private final DHServerKeyExchangeMessage = sun.security.ssl.DHServerKeyExchange$DHServerKeyExchangeMessage of sun.security.ssl.DHServerKeyExchange
final NamedGroup = sun.security.ssl.SupportedGroupsExtension$NamedGroup of sun.security.ssl.SupportedGroupsExtension