TlsRsaKeyExchange (Bouncy Castle Library 1.85 API Specification)
Date: 2026-07-12

org.bouncycastle.crypto.tls

## Class TlsRsaKeyExchange

- java.lang.Object
- - org.bouncycastle.crypto.tls.TlsRsaKeyExchange

-     public abstract class TlsRsaKeyExchange
      extends java.lang.Object

- - ### Field Summary

    Fields
    Modifier and Type | Field and Description
    --- | ---
    `static int` | `PRE_MASTER_SECRET_LENGTH`

  - ### Method Summary

    All Methods Static Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `static byte[]` | `decryptPreMasterSecret(byte[] in, int inOff, int inLen, RSAKeyParameters privateKey, int protocolVersion, java.security.SecureRandom secureRandom)`
    `static int` | `getInputLimit(RSAKeyParameters privateKey)`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Field Detail

    - #### PRE_MASTER_SECRET_LENGTH

          public static final int PRE_MASTER_SECRET_LENGTH

      See Also:
        Constant Field Values

  - ### Method Detail

    - #### decryptPreMasterSecret

          public static byte[] decryptPreMasterSecret(byte[] in,
                                                      int inOff,
                                                      int inLen,
                                                      RSAKeyParameters privateKey,
                                                      int protocolVersion,
                                                      java.security.SecureRandom secureRandom)

    - #### getInputLimit

          public static int getInputLimit(RSAKeyParameters privateKey)