Class UserKeyingMaterialSpec

java.lang.Object
org.bouncycastle.jcajce.spec.UserKeyingMaterialSpec
All Implemented Interfaces:
AlgorithmParameterSpec

public class UserKeyingMaterialSpec extends Object implements AlgorithmParameterSpec
  • Constructor Details

    • UserKeyingMaterialSpec

      public UserKeyingMaterialSpec(byte[] userKeyingMaterial)
      Base constructor.
      Parameters:
      userKeyingMaterial - the bytes to be mixed in to the key agreement's KDF.
    • UserKeyingMaterialSpec

      public UserKeyingMaterialSpec(byte[] userKeyingMaterial, byte[] salt)
      Base constructor.
      Parameters:
      userKeyingMaterial - the bytes to be mixed in to the key agreement's KDF.
      salt - the salt to use with the underlying KDF.
  • Method Details

    • getUserKeyingMaterial

      public byte[] getUserKeyingMaterial()
      Return a copy of the key material in this object.
      Returns:
      the user keying material.
    • getSalt

      public byte[] getSalt()
      Return a copy of the salt in this object.
      Returns:
      the KDF salt.