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.AlgorithmParameterSpecThis 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 materialjava.lang.StringgetKeyAlgorithm()Returns the name of the key algorithmbyte[]getSalt()Returns the salt
-
-
-
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 isnull
-
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 isnull
-
-
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
-
-