@Deprecated public class TlsMasterSecretParameterSpec extends Object implements AlgorithmParameterSpec
Instances of this class are immutable.
| 限定符和类型 | 字段和说明 |
|---|---|
private byte[] |
clientRandom
已过时。
|
private byte[] |
extendedMasterSecretSessionHash
已过时。
|
private int |
majorVersion
已过时。
|
private int |
minorVersion
已过时。
|
private SecretKey |
premasterSecret
已过时。
|
private int |
prfBlockSize
已过时。
|
private String |
prfHashAlg
已过时。
|
private int |
prfHashLength
已过时。
|
private byte[] |
serverRandom
已过时。
|
| 限定符 | 构造器和说明 |
|---|---|
private |
TlsMasterSecretParameterSpec(SecretKey premasterSecret,
int majorVersion,
int minorVersion,
byte[] clientRandom,
byte[] serverRandom,
byte[] extendedMasterSecretSessionHash,
String prfHashAlg,
int prfHashLength,
int prfBlockSize)
已过时。
|
|
TlsMasterSecretParameterSpec(SecretKey premasterSecret,
int majorVersion,
int minorVersion,
byte[] clientRandom,
byte[] serverRandom,
String prfHashAlg,
int prfHashLength,
int prfBlockSize)
已过时。
Constructs a new TlsMasterSecretParameterSpec.
|
|
TlsMasterSecretParameterSpec(SecretKey premasterSecret,
int majorVersion,
int minorVersion,
byte[] extendedMasterSecretSessionHash,
String prfHashAlg,
int prfHashLength,
int prfBlockSize)
已过时。
Constructs a new TlsMasterSecretParameterSpec.
|
| 限定符和类型 | 方法和说明 |
|---|---|
(专用程序包) static int |
checkVersion(int version)
已过时。
|
byte[] |
getClientRandom()
已过时。
Returns a copy of the client's random value.
|
byte[] |
getExtendedMasterSecretSessionHash()
已过时。
Returns a copy of the Extended Master Secret session hash.
|
int |
getMajorVersion()
已过时。
Returns the major version number.
|
int |
getMinorVersion()
已过时。
Returns the minor version number.
|
SecretKey |
getPremasterSecret()
已过时。
Returns the premaster secret.
|
int |
getPRFBlockSize()
已过时。
Obtains the block size of the PRF hash algorithm.
|
String |
getPRFHashAlg()
已过时。
Obtains the PRF hash algorithm to use in the PRF calculation.
|
int |
getPRFHashLength()
已过时。
Obtains the length of the PRF hash algorithm.
|
byte[] |
getServerRandom()
已过时。
Returns a copy of the server's random value.
|
private final SecretKey premasterSecret
private final int majorVersion
private final int minorVersion
private final byte[] clientRandom
private final byte[] serverRandom
private final byte[] extendedMasterSecretSessionHash
private final String prfHashAlg
private final int prfHashLength
private final int prfBlockSize
public TlsMasterSecretParameterSpec(SecretKey premasterSecret, int majorVersion, int minorVersion, byte[] clientRandom, byte[] serverRandom, String prfHashAlg, int prfHashLength, int prfBlockSize)
The getAlgorithm() method of premasterSecret
should return "TlsRsaPremasterSecret" if the key exchange
algorithm was RSA and "TlsPremasterSecret" otherwise.
premasterSecret - the premaster secretmajorVersion - the major number of the protocol versionminorVersion - the minor number of the protocol versionclientRandom - the client's random valueserverRandom - the server's random valueprfHashAlg - the name of the TLS PRF hash algorithm to use.
Used only for TLS 1.2+. TLS1.1 and earlier use a fixed PRF.prfHashLength - the output length of the TLS PRF hash algorithm.
Used only for TLS 1.2+.prfBlockSize - the input block size of the TLS PRF hash algorithm.
Used only for TLS 1.2+.NullPointerException - if premasterSecret, clientRandom,
or serverRandom are nullIllegalArgumentException - if minorVersion or majorVersion are
negative or larger than 255public TlsMasterSecretParameterSpec(SecretKey premasterSecret, int majorVersion, int minorVersion, byte[] extendedMasterSecretSessionHash, String prfHashAlg, int prfHashLength, int prfBlockSize)
The getAlgorithm() method of premasterSecret
should return "TlsRsaPremasterSecret" if the key exchange
algorithm was RSA and "TlsPremasterSecret" otherwise.
premasterSecret - the premaster secretmajorVersion - the major number of the protocol versionminorVersion - the minor number of the protocol versionextendedMasterSecretSessionHash - the session hash for
Extended Master SecretprfHashAlg - the name of the TLS PRF hash algorithm to use.
Used only for TLS 1.2+. TLS1.1 and earlier use a fixed PRF.prfHashLength - the output length of the TLS PRF hash algorithm.
Used only for TLS 1.2+.prfBlockSize - the input block size of the TLS PRF hash algorithm.
Used only for TLS 1.2+.NullPointerException - if premasterSecret is nullIllegalArgumentException - if minorVersion or majorVersion are
negative or larger than 255static int checkVersion(int version)
public SecretKey getPremasterSecret()
public int getMajorVersion()
public int getMinorVersion()
public byte[] getClientRandom()
public byte[] getServerRandom()
public byte[] getExtendedMasterSecretSessionHash()
public String getPRFHashAlg()
public int getPRFHashLength()
public int getPRFBlockSize()
Copyright © 2023. All rights reserved.