@Deprecated public class TlsPrfParameterSpec extends Object implements AlgorithmParameterSpec
Instances of this class are immutable.
| 限定符和类型 | 字段和说明 |
|---|---|
private String |
label
已过时。
|
private int |
outputLength
已过时。
|
private int |
prfBlockSize
已过时。
|
private String |
prfHashAlg
已过时。
|
private int |
prfHashLength
已过时。
|
private SecretKey |
secret
已过时。
|
private byte[] |
seed
已过时。
|
| 构造器和说明 |
|---|
TlsPrfParameterSpec(SecretKey secret,
String label,
byte[] seed,
int outputLength,
String prfHashAlg,
int prfHashLength,
int prfBlockSize)
已过时。
Constructs a new TlsPrfParameterSpec.
|
| 限定符和类型 | 方法和说明 |
|---|---|
String |
getLabel()
已过时。
Returns the label to use in the PRF calcuation.
|
int |
getOutputLength()
已过时。
Returns the length in bytes of the output key to be produced.
|
int |
getPRFBlockSize()
已过时。
Obtains the length of PRF hash algorithm.
|
String |
getPRFHashAlg()
已过时。
Obtains the PRF hash algorithm to use in the PRF calculation.
|
int |
getPRFHashLength()
已过时。
Obtains the length of PRF hash algorithm.
|
SecretKey |
getSecret()
已过时。
Returns the secret to use in the PRF calculation, or null if there is no
secret.
|
byte[] |
getSeed()
已过时。
Returns a copy of the seed to use in the PRF calcuation.
|
private final SecretKey secret
private final String label
private final byte[] seed
private final int outputLength
private final String prfHashAlg
private final int prfHashLength
private final int prfBlockSize
public TlsPrfParameterSpec(SecretKey secret, String label, byte[] seed, int outputLength, String prfHashAlg, int prfHashLength, int prfBlockSize)
secret - the secret to use in the calculation (or null)label - the label to use in the calculationseed - the random seed to use in the calculationoutputLength - the length in bytes of the output key to be producedprfHashAlg - 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 label or seed is nullIllegalArgumentException - if outputLength is negativepublic SecretKey getSecret()
public String getLabel()
public byte[] getSeed()
public int getOutputLength()
public String getPRFHashAlg()
public int getPRFHashLength()
public int getPRFBlockSize()
Copyright © 2023. All rights reserved.