final class sun.security.ssl.DHClientKeyExchange$DHClientKeyExchangeConsumer implements sun.security.ssl.SSLConsumer
  minor version: 0
  major version: 59
  flags: flags: (0x0030) ACC_FINAL, ACC_SUPER
  this_class: sun.security.ssl.DHClientKeyExchange$DHClientKeyExchangeConsumer
  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.DHClientKeyExchange$DHClientKeyExchangeConsumer this
         0: .line 237
            aload 0 /* this */
            invokespecial java.lang.Object.<init>:()V
         1: .line 239
            return
        end local 0 // sun.security.ssl.DHClientKeyExchange$DHClientKeyExchangeConsumer this
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0    2     0  this  Lsun/security/ssl/DHClientKeyExchange$DHClientKeyExchangeConsumer;

  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=12, args_size=3
        start local 0 // sun.security.ssl.DHClientKeyExchange$DHClientKeyExchangeConsumer this
        start local 1 // sun.security.ssl.ConnectionContext context
        start local 2 // java.nio.ByteBuffer message
         0: .line 245
            aload 1 /* context */
            checkcast sun.security.ssl.ServerHandshakeContext
            astore 3 /* shc */
        start local 3 // sun.security.ssl.ServerHandshakeContext shc
         1: .line 247
            aconst_null
            astore 4 /* dhePossession */
        start local 4 // sun.security.ssl.DHKeyExchange$DHEPossession dhePossession
         2: .line 248
            aload 3 /* shc */
            getfield sun.security.ssl.ServerHandshakeContext.handshakePossessions:Ljava/util/List;
            invokeinterface java.util.List.iterator:()Ljava/util/Iterator;
            astore 6
            goto 7
      StackMap locals: sun.security.ssl.DHClientKeyExchange$DHClientKeyExchangeConsumer sun.security.ssl.ConnectionContext java.nio.ByteBuffer sun.security.ssl.ServerHandshakeContext sun.security.ssl.DHKeyExchange$DHEPossession 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 249
            aload 5 /* possession */
            instanceof sun.security.ssl.DHKeyExchange$DHEPossession
            ifeq 7
         5: .line 250
            aload 5 /* possession */
            checkcast sun.security.ssl.DHKeyExchange$DHEPossession
            astore 4 /* dhePossession */
         6: .line 251
            goto 8
        end local 5 // sun.security.ssl.SSLPossession possession
         7: .line 248
      StackMap locals:
      StackMap stack:
            aload 6
            invokeinterface java.util.Iterator.hasNext:()Z
            ifne 3
         8: .line 255
      StackMap locals: sun.security.ssl.DHClientKeyExchange$DHClientKeyExchangeConsumer sun.security.ssl.ConnectionContext java.nio.ByteBuffer sun.security.ssl.ServerHandshakeContext sun.security.ssl.DHKeyExchange$DHEPossession
      StackMap stack:
            aload 4 /* dhePossession */
            ifnonnull 12
         9: .line 257
            aload 3 /* shc */
            getfield sun.security.ssl.ServerHandshakeContext.conContext:Lsun/security/ssl/TransportContext;
            getstatic sun.security.ssl.Alert.HANDSHAKE_FAILURE:Lsun/security/ssl/Alert;
        10: .line 258
            ldc "No expected DHE possessions for client key exchange"
        11: .line 257
            invokevirtual sun.security.ssl.TransportContext.fatal:(Lsun/security/ssl/Alert;Ljava/lang/String;)Ljavax/net/ssl/SSLException;
            athrow
        12: .line 262
      StackMap locals:
      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;
        13: .line 263
            aload 3 /* shc */
            getfield sun.security.ssl.ServerHandshakeContext.negotiatedProtocol:Lsun/security/ssl/ProtocolVersion;
        14: .line 261
            invokestatic sun.security.ssl.SSLKeyExchange.valueOf:(Lsun/security/ssl/CipherSuite$KeyExchange;Lsun/security/ssl/ProtocolVersion;)Lsun/security/ssl/SSLKeyExchange;
            astore 5 /* ke */
        start local 5 // sun.security.ssl.SSLKeyExchange ke
        15: .line 264
            aload 5 /* ke */
            ifnonnull 19
        16: .line 266
            aload 3 /* shc */
            getfield sun.security.ssl.ServerHandshakeContext.conContext:Lsun/security/ssl/TransportContext;
            getstatic sun.security.ssl.Alert.INTERNAL_ERROR:Lsun/security/ssl/Alert;
        17: .line 267
            ldc "Not supported key exchange type"
        18: .line 266
            invokevirtual sun.security.ssl.TransportContext.fatal:(Lsun/security/ssl/Alert;Ljava/lang/String;)Ljavax/net/ssl/SSLException;
            athrow
        19: .line 271
      StackMap locals: sun.security.ssl.SSLKeyExchange
      StackMap stack:
            new sun.security.ssl.DHClientKeyExchange$DHClientKeyExchangeMessage
            dup
            aload 3 /* shc */
            aload 2 /* message */
            invokespecial sun.security.ssl.DHClientKeyExchange$DHClientKeyExchangeMessage.<init>:(Lsun/security/ssl/HandshakeContext;Ljava/nio/ByteBuffer;)V
        20: .line 270
            astore 6 /* ckem */
        start local 6 // sun.security.ssl.DHClientKeyExchange$DHClientKeyExchangeMessage ckem
        21: .line 272
            getstatic sun.security.ssl.SSLLogger.isOn:Z
            ifeq 24
            ldc "ssl,handshake"
            invokestatic sun.security.ssl.SSLLogger.isOn:(Ljava/lang/String;)Z
            ifeq 24
        22: .line 274
            ldc "Consuming DH ClientKeyExchange handshake message"
            iconst_1
            anewarray java.lang.Object
            dup
            iconst_0
            aload 6 /* ckem */
            aastore
        23: .line 273
            invokestatic sun.security.ssl.SSLLogger.fine:(Ljava/lang/String;[Ljava/lang/Object;)V
        24: .line 279
      StackMap locals: sun.security.ssl.DHClientKeyExchange$DHClientKeyExchangeMessage
      StackMap stack:
            aload 4 /* dhePossession */
            getfield sun.security.ssl.DHKeyExchange$DHEPossession.publicKey:Ljavax/crypto/interfaces/DHPublicKey;
            invokeinterface javax.crypto.interfaces.DHPublicKey.getParams:()Ljavax/crypto/spec/DHParameterSpec;
            astore 7 /* params */
        start local 7 // javax.crypto.spec.DHParameterSpec params
        25: .line 280
            new javax.crypto.spec.DHPublicKeySpec
            dup
        26: .line 281
            new java.math.BigInteger
            dup
            iconst_1
            aload 6 /* ckem */
            getfield sun.security.ssl.DHClientKeyExchange$DHClientKeyExchangeMessage.y:[B
            invokespecial java.math.BigInteger.<init>:(I[B)V
        27: .line 282
            aload 7 /* params */
            invokevirtual javax.crypto.spec.DHParameterSpec.getP:()Ljava/math/BigInteger;
            aload 7 /* params */
            invokevirtual javax.crypto.spec.DHParameterSpec.getG:()Ljava/math/BigInteger;
        28: .line 280
            invokespecial javax.crypto.spec.DHPublicKeySpec.<init>:(Ljava/math/BigInteger;Ljava/math/BigInteger;Ljava/math/BigInteger;)V
            astore 8 /* spec */
        start local 8 // javax.crypto.spec.DHPublicKeySpec spec
        29: .line 283
            ldc "DiffieHellman"
            invokestatic sun.security.ssl.JsseJce.getKeyFactory:(Ljava/lang/String;)Ljava/security/KeyFactory;
            astore 9 /* kf */
        start local 9 // java.security.KeyFactory kf
        30: .line 285
            aload 9 /* kf */
            aload 8 /* spec */
            invokevirtual java.security.KeyFactory.generatePublic:(Ljava/security/spec/KeySpec;)Ljava/security/PublicKey;
            checkcast javax.crypto.interfaces.DHPublicKey
        31: .line 284
            astore 10 /* peerPublicKey */
        start local 10 // javax.crypto.interfaces.DHPublicKey peerPublicKey
        32: .line 288
            aload 3 /* shc */
            getfield sun.security.ssl.ServerHandshakeContext.algorithmConstraints:Ljava/security/AlgorithmConstraints;
        33: .line 289
            getstatic java.security.CryptoPrimitive.KEY_AGREEMENT:Ljava/security/CryptoPrimitive;
            invokestatic java.util.EnumSet.of:(Ljava/lang/Enum;)Ljava/util/EnumSet;
        34: .line 290
            aload 10 /* peerPublicKey */
        35: .line 288
            invokeinterface java.security.AlgorithmConstraints.permits:(Ljava/util/Set;Ljava/security/Key;)Z
        36: .line 290
            ifne 40
        37: .line 291
            new javax.net.ssl.SSLHandshakeException
            dup
        38: .line 292
            ldc "DHPublicKey does not comply to algorithm constraints"
        39: .line 291
            invokespecial javax.net.ssl.SSLHandshakeException.<init>:(Ljava/lang/String;)V
            athrow
        40: .line 295
      StackMap locals: sun.security.ssl.DHClientKeyExchange$DHClientKeyExchangeConsumer sun.security.ssl.ConnectionContext java.nio.ByteBuffer sun.security.ssl.ServerHandshakeContext sun.security.ssl.DHKeyExchange$DHEPossession sun.security.ssl.SSLKeyExchange sun.security.ssl.DHClientKeyExchange$DHClientKeyExchangeMessage javax.crypto.spec.DHParameterSpec javax.crypto.spec.DHPublicKeySpec java.security.KeyFactory javax.crypto.interfaces.DHPublicKey
      StackMap stack:
            aload 7 /* params */
            invokestatic sun.security.ssl.SupportedGroupsExtension$NamedGroup.valueOf:(Ljavax/crypto/spec/DHParameterSpec;)Lsun/security/ssl/SupportedGroupsExtension$NamedGroup;
            astore 11 /* namedGroup */
        start local 11 // sun.security.ssl.SupportedGroupsExtension$NamedGroup namedGroup
        41: .line 296
            aload 3 /* shc */
            getfield sun.security.ssl.ServerHandshakeContext.handshakeCredentials:Ljava/util/List;
        42: .line 297
            new sun.security.ssl.DHKeyExchange$DHECredentials
            dup
            aload 10 /* peerPublicKey */
            aload 11 /* namedGroup */
            invokespecial sun.security.ssl.DHKeyExchange$DHECredentials.<init>:(Ljavax/crypto/interfaces/DHPublicKey;Lsun/security/ssl/SupportedGroupsExtension$NamedGroup;)V
        43: .line 296
            invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
            pop
        end local 11 // sun.security.ssl.SupportedGroupsExtension$NamedGroup namedGroup
        end local 10 // javax.crypto.interfaces.DHPublicKey peerPublicKey
        end local 9 // java.security.KeyFactory kf
        end local 8 // javax.crypto.spec.DHPublicKeySpec spec
        end local 7 // javax.crypto.spec.DHParameterSpec params
        44: .line 298
            goto 51
      StackMap locals: sun.security.ssl.DHClientKeyExchange$DHClientKeyExchangeConsumer sun.security.ssl.ConnectionContext java.nio.ByteBuffer sun.security.ssl.ServerHandshakeContext sun.security.ssl.DHKeyExchange$DHEPossession sun.security.ssl.SSLKeyExchange sun.security.ssl.DHClientKeyExchange$DHClientKeyExchangeMessage
      StackMap stack: java.lang.Exception
        45: astore 7 /* e */
        start local 7 // java.lang.Exception e
        46: .line 299
            new javax.net.ssl.SSLHandshakeException
            dup
        47: .line 300
            ldc "Could not generate DHPublicKey"
        48: .line 299
            invokespecial javax.net.ssl.SSLHandshakeException.<init>:(Ljava/lang/String;)V
        49: .line 300
            aload 7 /* e */
            invokevirtual javax.net.ssl.SSLHandshakeException.initCause:(Ljava/lang/Throwable;)Ljava/lang/Throwable;
        50: .line 299
            checkcast javax.net.ssl.SSLHandshakeException
            athrow
        end local 7 // java.lang.Exception e
        51: .line 304
      StackMap locals:
      StackMap stack:
            aload 5 /* ke */
            aload 3 /* shc */
            invokevirtual sun.security.ssl.SSLKeyExchange.createKeyDerivation:(Lsun/security/ssl/HandshakeContext;)Lsun/security/ssl/SSLKeyDerivation;
            astore 7 /* masterKD */
        start local 7 // sun.security.ssl.SSLKeyDerivation masterKD
        52: .line 306
            aload 7 /* masterKD */
            ldc "MasterSecret"
            aconst_null
            invokeinterface sun.security.ssl.SSLKeyDerivation.deriveKey:(Ljava/lang/String;Ljava/security/spec/AlgorithmParameterSpec;)Ljavax/crypto/SecretKey;
        53: .line 305
            astore 8 /* masterSecret */
        start local 8 // javax.crypto.SecretKey masterSecret
        54: .line 307
            aload 3 /* shc */
            getfield sun.security.ssl.ServerHandshakeContext.handshakeSession:Lsun/security/ssl/SSLSessionImpl;
            aload 8 /* masterSecret */
            invokevirtual sun.security.ssl.SSLSessionImpl.setMasterSecret:(Ljavax/crypto/SecretKey;)V
        55: .line 310
            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;
        56: .line 309
            astore 9 /* kd */
        start local 9 // sun.security.ssl.SSLTrafficKeyDerivation kd
        57: .line 311
            aload 9 /* kd */
            ifnonnull 61
        58: .line 313
            aload 3 /* shc */
            getfield sun.security.ssl.ServerHandshakeContext.conContext:Lsun/security/ssl/TransportContext;
            getstatic sun.security.ssl.Alert.INTERNAL_ERROR:Lsun/security/ssl/Alert;
        59: .line 314
            new java.lang.StringBuilder
            dup
            ldc "Not supported key derivation: "
            invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
            aload 3 /* shc */
            getfield sun.security.ssl.ServerHandshakeContext.negotiatedProtocol:Lsun/security/ssl/ProtocolVersion;
            invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
            invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
        60: .line 313
            invokevirtual sun.security.ssl.TransportContext.fatal:(Lsun/security/ssl/Alert;Ljava/lang/String;)Ljavax/net/ssl/SSLException;
            athrow
        61: .line 316
      StackMap locals: sun.security.ssl.SSLKeyDerivation javax.crypto.SecretKey sun.security.ssl.SSLTrafficKeyDerivation
      StackMap stack:
            aload 3 /* shc */
        62: .line 317
            aload 9 /* kd */
            aload 3 /* shc */
            aload 8 /* masterSecret */
            invokevirtual sun.security.ssl.SSLTrafficKeyDerivation.createKeyDerivation:(Lsun/security/ssl/HandshakeContext;Ljavax/crypto/SecretKey;)Lsun/security/ssl/SSLKeyDerivation;
        63: .line 316
            putfield sun.security.ssl.ServerHandshakeContext.handshakeKeyDerivation:Lsun/security/ssl/SSLKeyDerivation;
        64: .line 319
            return
        end local 9 // sun.security.ssl.SSLTrafficKeyDerivation kd
        end local 8 // javax.crypto.SecretKey masterSecret
        end local 7 // sun.security.ssl.SSLKeyDerivation masterKD
        end local 6 // sun.security.ssl.DHClientKeyExchange$DHClientKeyExchangeMessage ckem
        end local 5 // sun.security.ssl.SSLKeyExchange ke
        end local 4 // sun.security.ssl.DHKeyExchange$DHEPossession dhePossession
        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.DHClientKeyExchange$DHClientKeyExchangeConsumer this
      LocalVariableTable:
        Start  End  Slot           Name  Signature
            0   65     0           this  Lsun/security/ssl/DHClientKeyExchange$DHClientKeyExchangeConsumer;
            0   65     1        context  Lsun/security/ssl/ConnectionContext;
            0   65     2        message  Ljava/nio/ByteBuffer;
            1   65     3            shc  Lsun/security/ssl/ServerHandshakeContext;
            2   65     4  dhePossession  Lsun/security/ssl/DHKeyExchange$DHEPossession;
            4    7     5     possession  Lsun/security/ssl/SSLPossession;
           15   65     5             ke  Lsun/security/ssl/SSLKeyExchange;
           21   65     6           ckem  Lsun/security/ssl/DHClientKeyExchange$DHClientKeyExchangeMessage;
           25   44     7         params  Ljavax/crypto/spec/DHParameterSpec;
           29   44     8           spec  Ljavax/crypto/spec/DHPublicKeySpec;
           30   44     9             kf  Ljava/security/KeyFactory;
           32   44    10  peerPublicKey  Ljavax/crypto/interfaces/DHPublicKey;
           41   44    11     namedGroup  Lsun/security/ssl/SupportedGroupsExtension$NamedGroup;
           46   51     7              e  Ljava/lang/Exception;
           52   65     7       masterKD  Lsun/security/ssl/SSLKeyDerivation;
           54   65     8   masterSecret  Ljavax/crypto/SecretKey;
           57   65     9             kd  Lsun/security/ssl/SSLTrafficKeyDerivation;
      Exception table:
        from    to  target  type
          24    44      45  Class java.security.GeneralSecurityException
          24    44      45  Class java.io.IOException
    Exceptions:
      throws java.io.IOException
    MethodParameters:
         Name  Flags
      context  
      message  
}
SourceFile: "DHClientKeyExchange.java"
NestHost: sun.security.ssl.DHClientKeyExchange
InnerClasses:
  final KeyExchange = sun.security.ssl.CipherSuite$KeyExchange of sun.security.ssl.CipherSuite
  private final DHClientKeyExchangeConsumer = sun.security.ssl.DHClientKeyExchange$DHClientKeyExchangeConsumer of sun.security.ssl.DHClientKeyExchange
  private final DHClientKeyExchangeMessage = sun.security.ssl.DHClientKeyExchange$DHClientKeyExchangeMessage of sun.security.ssl.DHClientKeyExchange
  final DHECredentials = sun.security.ssl.DHKeyExchange$DHECredentials of sun.security.ssl.DHKeyExchange
  final DHEPossession = sun.security.ssl.DHKeyExchange$DHEPossession of sun.security.ssl.DHKeyExchange
  final NamedGroup = sun.security.ssl.SupportedGroupsExtension$NamedGroup of sun.security.ssl.SupportedGroupsExtension