Class UserKeyingMaterialSpec

  • All Implemented Interfaces:
    java.security.spec.AlgorithmParameterSpec

    public class UserKeyingMaterialSpec
    extends java.lang.Object
    implements java.security.spec.AlgorithmParameterSpec
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      byte[] getSalt()
      Return a copy of the salt in this object.
      byte[] getUserKeyingMaterial()
      Return a copy of the key material in this object.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • 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 Detail

      • 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.