ibm.security.internal.spec

Class HKDFExtractParameterSpec

  • java.lang.Object
    • ibm.security.internal.spec.HKDFExtractParameterSpec
  • All Implemented Interfaces:
    java.security.spec.AlgorithmParameterSpec


    public class HKDFExtractParameterSpec
    extends java.lang.Object
    implements java.security.spec.AlgorithmParameterSpec
    This class specifies the set of parameters used with HKDFExtractParameterSpec
    Since:
    1.8
    • Constructor Summary

      Constructors 
      Constructor and Description
      HKDFExtractParameterSpec(byte[] inKeyMaterial, byte[] salt, java.lang.String keyAlgorithm)
      Constructs a parameter set for HKDFExtractParameterSpec from the given input key material, the salt and the Key Algorithm.
      HKDFExtractParameterSpec(SecretKey inKey, byte[] salt, java.lang.String keyAlgorithm)
      Constructs a parameter set for HKDFExtractParameterSpec from the given input key, the salt and the Key Algorithm.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      byte[] getInKeyMaterial()
      Returns the input key material
      java.lang.String getKeyAlgorithm()
      Returns the name of the key algorithm
      byte[] getSalt()
      Returns the salt
      • Methods inherited from class java.lang.Object

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

      • HKDFExtractParameterSpec

        public HKDFExtractParameterSpec(byte[] inKeyMaterial,
                                        byte[] salt,
                                        java.lang.String keyAlgorithm)
        Constructs a parameter set for HKDFExtractParameterSpec from the given input key material, the salt and the Key Algorithm. The parameters are copied from the parameters to protect against subsequent modification.
        Parameters:
        inKeyMaterial - the inKeyMaterial.
        salt - the salt.
        keyAlgorithm - the name of the algorithm to use when creating SecretKey.
        Throws:
        java.lang.IllegalArgumentException - if input key material is null
      • HKDFExtractParameterSpec

        public HKDFExtractParameterSpec(SecretKey inKey,
                                        byte[] salt,
                                        java.lang.String keyAlgorithm)
        Constructs a parameter set for HKDFExtractParameterSpec from the given input key, the salt and the Key Algorithm. The parameters are copied from the parameters to protect against subsequent modification.
        Parameters:
        inKey - The secret input key. Cannot be null.
        salt - the salt.
        keyAlgorithm - the name of the algorithm to use when creating SecretKey.
        Throws:
        java.lang.IllegalArgumentException - if input key is null
    • Method Detail

      • getSalt

        public byte[] getSalt()
        Returns the salt
        Returns:
        the salt. Returns a new array each time this method is called.
      • getInKeyMaterial

        public byte[] getInKeyMaterial()
        Returns the input key material
        Returns:
        the input key material
      • getKeyAlgorithm

        public java.lang.String getKeyAlgorithm()
        Returns the name of the key algorithm
        Returns:
        the name of the key algorithm

© Portions Copyright 2003, 2023 IBM Corporation. All rights reserved.
© Portions Copyright 2003, 2023 Oracle and/or its affiliates. All rights reserved.