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 String | |
| private final String | |
| private final int | |
| private final int | |
| private final String | |
| private final int | |
| private final SecretKey | |
| private final byte[] |
| Access | Constructor and Description |
|---|---|
| public | TlsPrfParameterSpec(SecretKey
the secret to use in the calculation (or null) secret, String the label to use in the calculation label, byte[] the random seed to use in the calculation seed, int the length in bytes of the output key to be produced outputLength, 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 TlsPrfParameterSpec. |
| public | TlsPrfParameterSpec(SecretKey
the secret to use in the calculation (or null) secret, String the algorithm name for the generated keyAlg, String SecretKeythe label to use in the calculation label, byte[] the random seed to use in the calculation seed, int the length in bytes of the output key to be produced outputLength, 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 TlsPrfParameterSpec. |
| Modifier and Type | Method and Description |
|---|---|
| public String | Returns: the key algorithm nameReturns the key algorithm name to use when generating the SecretKey. |
| public String | Returns: the label to use in the PRF calculation.Returns the label to use in the PRF calculation. |
| public int | Returns: the length in bytes of the output key to be produced.Returns the length in bytes of the output key to be produced. |
| public int | |
| public String | Returns: the hash algorithm, or null if no algorithm was specified.Obtains the PRF hash algorithm to use in the PRF calculation. |
| public int | |
| public SecretKey | Returns: the secret to use in the PRF calculation, or null if there is no secret.Returns the secret to use in the PRF calculation, or null if there is no secret. |
| public byte[] | Returns: a copy of the seed to use in the PRF calculation.Returns a copy of the seed to use in the PRF calculation. |
| keyAlg | back to summary |
|---|---|
| private final String keyAlg | |
| label | back to summary |
|---|---|
| private final String label | |
| outputLength | back to summary |
|---|---|
| private final int outputLength | |
| prfBlockSize | back to summary |
|---|---|
| private final int prfBlockSize | |
| prfHashAlg | back to summary |
|---|---|
| private final String prfHashAlg | |
| prfHashLength | back to summary |
|---|---|
| private final int prfHashLength | |
| secret | back to summary |
|---|---|
| private final SecretKey secret | |
| seed | back to summary |
|---|---|
| private final byte[] seed | |
| TlsPrfParameterSpec | back to summary |
|---|---|
| public TlsPrfParameterSpec(SecretKey secret, String label, byte[] seed, int outputLength, String prfHashAlg, int prfHashLength, int prfBlockSize) Constructs a new TlsPrfParameterSpec.
| |
| TlsPrfParameterSpec | back to summary |
|---|---|
| public TlsPrfParameterSpec(SecretKey secret, String keyAlg, String label, byte[] seed, int outputLength, String prfHashAlg, int prfHashLength, int prfBlockSize) Constructs a new TlsPrfParameterSpec.
| |
| getKeyAlg | back to summary |
|---|---|
| public String getKeyAlg() Returns the key algorithm name to use when generating the SecretKey.
| |
| getLabel | back to summary |
|---|---|
| public String getLabel() Returns the label to use in the PRF calculation.
| |
| getOutputLength | back to summary |
|---|---|
| public int getOutputLength() Returns the length in bytes of the output key to be produced.
| |
| getPRFBlockSize | back to summary |
|---|---|
| public int getPRFBlockSize() Obtains the length of 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 PRF hash algorithm. It would have been preferred to use MessageDigest.getDigestLength(), but the API does not require implementations to support the method.
| |
| getSecret | back to summary |
|---|---|
| public SecretKey getSecret() Returns the secret to use in the PRF calculation, or null if there is no secret.
| |
| getSeed | back to summary |
|---|---|
| public byte[] getSeed() Returns a copy of the seed to use in the PRF calculation.
| |