Interface TLSPseudoRandomFunctionSpec

All Superinterfaces:
AlgorithmParameterSpec

public interface TLSPseudoRandomFunctionSpec extends AlgorithmParameterSpec
This interface specifies the set of parameters used to instantiate a DerivationFunction implementing TLS pseudo random function for TLS version 1.1 defined in IETF RFC 4346 or version 1.2 defined in IETF RFC 5246.

This interface is bound to the constants DerivationFunction.ALG_PRF_TLS11 and DerivationFunction.ALG_PRF_TLS12.

Since:
3.1
See Also:
  • Method Summary

    Modifier and Type
    Method
    Description
    Gets the secret value for the key derivation function.
    byte[]
    Gets the seed value for the key derivation function.
  • Method Details

    • getSecret

      SecretKey getSecret()
      Gets the secret value for the key derivation function. For TLS 1.1 and TLS 1.2 it must be an instance of HMACKey
      Returns:
      the secret value
    • getSeed

      byte[] getSeed()
      Gets the seed value for the key derivation function.

      It may be an array view.

      Returns:
      the seed value