Deprecated
Sun JDK internal use only --- WILL BE REMOVED in a future release.
Instances of this class are immutable.
| Modifier and Type | Field and Description |
|---|---|
| private final byte[] | |
| private final byte[] | |
| private final int | |
| private final int | |
| private final SecretKey | |
| private final int | |
| private final String | |
| private final int | |
| private final byte[] |
| Access | Constructor and Description |
|---|---|
| public | TlsMasterSecretParameterSpec(SecretKey
the premaster secret premasterSecret, int the major number of the protocol version majorVersion, int the minor number of the protocol version minorVersion, byte[] the client's random value clientRandom, byte[] the server's random value serverRandom, String the name of the TLS PRF hash algorithm to use.
Used only for TLS 1.2+. TLS1.1 and earlier use a fixed PRF. prfHashAlg, int the output length of the TLS PRF hash algorithm.
Used only for TLS 1.2+. prfHashLength, int the input block size of the TLS PRF hash algorithm.
Used only for TLS 1.2+. prfBlockSize)Constructs a new TlsMasterSecretParameterSpec. |
| public | TlsMasterSecretParameterSpec(SecretKey
the premaster secret premasterSecret, int the major number of the protocol version majorVersion, int the minor number of the protocol version minorVersion, byte[] the session hash for
Extended Master Secret extendedMasterSecretSessionHash, String the name of the TLS PRF hash algorithm to use.
Used only for TLS 1.2+. TLS1.1 and earlier use a fixed PRF. prfHashAlg, int the output length of the TLS PRF hash algorithm.
Used only for TLS 1.2+. prfHashLength, int the input block size of the TLS PRF hash algorithm.
Used only for TLS 1.2+. prfBlockSize)Constructs a new TlsMasterSecretParameterSpec. |
| private | TlsMasterSecretParameterSpec(SecretKey premasterSecret, int majorVersion, int minorVersion, byte[] clientRandom, byte[] serverRandom, byte[] extendedMasterSecretSessionHash, String prfHashAlg, int prfHashLength, int prfBlockSize)
|
| Modifier and Type | Method and Description |
|---|---|
| pack-priv static int | |
| public byte[] | Returns: a copy of the client's random value.Returns a copy of the client's random value. |
| public byte[] | Returns: a copy of the Extended Master Secret session hash, or an empty array if no extended master secret session hash was provided at instantiation timeReturns a copy of the Extended Master Secret session hash. |
| public int | |
| public int | |
| public SecretKey | |
| public int | Returns: the hash algorithm block size.Obtains the block size of the PRF hash algorithm. |
| public String | Returns: the hash algorithm.Obtains the PRF hash algorithm to use in the PRF calculation. |
| public int | |
| public byte[] | Returns: a copy of the server's random value.Returns a copy of the server's random value. |
| clientRandom | back to summary |
|---|---|
| private final byte[] clientRandom | |
| extendedMasterSecretSessionHash | back to summary |
|---|---|
| private final byte[] extendedMasterSecretSessionHash | |
| majorVersion | back to summary |
|---|---|
| private final int majorVersion | |
| minorVersion | back to summary |
|---|---|
| private final int minorVersion | |
| premasterSecret | back to summary |
|---|---|
| private final SecretKey premasterSecret | |
| prfBlockSize | back to summary |
|---|---|
| private final int prfBlockSize | |
| prfHashAlg | back to summary |
|---|---|
| private final String prfHashAlg | |
| prfHashLength | back to summary |
|---|---|
| private final int prfHashLength | |
| serverRandom | back to summary |
|---|---|
| private final byte[] serverRandom | |
| TlsMasterSecretParameterSpec | back to summary |
|---|---|
| public TlsMasterSecretParameterSpec(SecretKey premasterSecret, int majorVersion, int minorVersion, byte[] clientRandom, byte[] serverRandom, String prfHashAlg, int prfHashLength, int prfBlockSize) Constructs a new TlsMasterSecretParameterSpec. The
| |
| TlsMasterSecretParameterSpec | back to summary |
|---|---|
| public TlsMasterSecretParameterSpec(SecretKey premasterSecret, int majorVersion, int minorVersion, byte[] extendedMasterSecretSessionHash, String prfHashAlg, int prfHashLength, int prfBlockSize) Constructs a new TlsMasterSecretParameterSpec. The
| |
| TlsMasterSecretParameterSpec | back to summary |
|---|---|
| private TlsMasterSecretParameterSpec(SecretKey premasterSecret, int majorVersion, int minorVersion, byte[] clientRandom, byte[] serverRandom, byte[] extendedMasterSecretSessionHash, String prfHashAlg, int prfHashLength, int prfBlockSize) | |
| checkVersion | back to summary |
|---|---|
| pack-priv static int checkVersion(int version) | |
| getClientRandom | back to summary |
|---|---|
| public byte[] getClientRandom() Returns a copy of the client's random value.
| |
| getExtendedMasterSecretSessionHash | back to summary |
|---|---|
| public byte[] getExtendedMasterSecretSessionHash() Returns a copy of the Extended Master Secret session hash.
| |
| getMajorVersion | back to summary |
|---|---|
| public int getMajorVersion() Returns the major version number.
| |
| getMinorVersion | back to summary |
|---|---|
| public int getMinorVersion() Returns the minor version number.
| |
| getPremasterSecret | back to summary |
|---|---|
| public SecretKey getPremasterSecret() Returns the premaster secret.
| |
| getPRFBlockSize | back to summary |
|---|---|
| public int getPRFBlockSize() Obtains the block size of the PRF hash algorithm.
| |
| getPRFHashAlg | back to summary |
|---|---|
| public String getPRFHashAlg() Obtains the PRF hash algorithm to use in the PRF calculation.
| |
| getPRFHashLength | back to summary |
|---|---|
| public int getPRFHashLength() Obtains the length of the PRF hash algorithm.
| |
| getServerRandom | back to summary |
|---|---|
| public byte[] getServerRandom() Returns a copy of the server's random value.
| |