@Deprecated
public class TlsPrfParameterSpec
extends java.lang.Object
implements java.security.spec.AlgorithmParameterSpec
Instances of this class are immutable.
| Constructor and Description |
|---|
TlsPrfParameterSpec(javax.crypto.SecretKey secret,
java.lang.String label,
byte[] seed,
int outputLength,
java.lang.String prfHashAlg,
int prfHashLength,
int prfBlockSize)
Deprecated.
Constructs a new TlsPrfParameterSpec.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getLabel()
Deprecated.
Returns the label to use in the PRF calculation.
|
int |
getOutputLength()
Deprecated.
Returns the length in bytes of the output key to be produced.
|
int |
getPRFBlockSize()
Deprecated.
Obtains the length of PRF hash algorithm.
|
java.lang.String |
getPRFHashAlg()
Deprecated.
Obtains the PRF hash algorithm to use in the PRF calculation.
|
int |
getPRFHashLength()
Deprecated.
Obtains the length of PRF hash algorithm.
|
javax.crypto.SecretKey |
getSecret()
Deprecated.
Returns the secret to use in the PRF calculation, or null if there is no
secret.
|
byte[] |
getSeed()
Deprecated.
Returns a copy of the seed to use in the PRF calculation.
|
public TlsPrfParameterSpec(javax.crypto.SecretKey secret,
java.lang.String label,
byte[] seed,
int outputLength,
java.lang.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+.java.lang.NullPointerException - if label or seed is nulljava.lang.IllegalArgumentException - if outputLength is negativepublic javax.crypto.SecretKey getSecret()
public java.lang.String getLabel()
public byte[] getSeed()
public int getOutputLength()
public java.lang.String getPRFHashAlg()
public int getPRFHashLength()
public int getPRFBlockSize()