Class HKDFParameterSpec.ExtractThenExpand
java.lang.Object
javax.crypto.spec.HKDFParameterSpec.ExtractThenExpand
- All Implemented Interfaces:
AlgorithmParameterSpec, HKDFParameterSpec
- Enclosing interface:
HKDFParameterSpec
public static final class HKDFParameterSpec.ExtractThenExpand
extends Object
implements HKDFParameterSpec
Defines the input parameters of an Extract-then-Expand operation as
defined in RFC 5869.
- Since:
- 25
-
Nested Class Summary
Nested classes/interfaces declared in interface HKDFParameterSpec
HKDFParameterSpec.Builder, HKDFParameterSpec.Expand, HKDFParameterSpec.Extract, HKDFParameterSpec.ExtractThenExpandModifier and TypeInterfaceDescriptionstatic final classThisBuilderbuildsExtractandExtractThenExpandobjects.static final classDefines the input parameters of an Expand operation as defined in RFC 5869.static final classDefines the input parameters of an Extract operation as defined in RFC 5869.static final classDefines the input parameters of an Extract-then-Expand operation as defined in RFC 5869. -
Method Summary
Modifier and TypeMethodDescriptionikms()Returns an unmodifiableListof input keying material values in the order they were added.byte[]info()Returns the optional context and application specific information.intlength()Returns the length of the output keying material.salts()Returns an unmodifiableListof salt values in the order they were added.Methods declared in class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitModifier and TypeMethodDescriptionprotected Objectclone()Answers a new instance of the same class as the receiver, whose slots have been filled in with the values in the slots of the receiver.booleanCompares the argument to the receiver, and answers true if they represent the same object using a class specific comparison.protected voidfinalize()Deprecated, for removal: This API element is subject to removal in a future version.May cause performance issues, deadlocks and hangs.getClass()Answers the unique instance of java.lang.Class which represents the class of the receiver.inthashCode()Answers an integer hash code for the receiver.final voidnotify()Causes one thread which iswaiting on the receiver to be made ready to run.final voidCauses all threads which arewaiting on the receiver to be made ready to run.toString()Answers a string containing a concise, human-readable description of the receiver.final voidwait()Causes the thread which sent this message to be made not ready to run pending some change in the receiver (as indicated bynotifyornotifyAll).final voidwait(long time) Causes the thread which sent this message to be made not ready to run either pending some change in the receiver (as indicated bynotifyornotifyAll) or the expiration of the timeout.final voidwait(long time, int frac) Causes the thread which sent this message to be made not ready to run either pending some change in the receiver (as indicated bynotifyornotifyAll) or the expiration of the timeout.
-
Method Details
-
ikms
Returns an unmodifiableListof input keying material values in the order they were added. Returns an empty list if there are no input keying material values.Input keying material values added by
HKDFParameterSpec.Builder.addIKM(byte[])are converted to aSecretKeySpecobject. Empty arrays are discarded.- Implementation Note:
- An HKDF implementation should concatenate the input keying materials into a single value to be used in the HKDF-Extract phase.
- Returns:
- the unmodifiable
Listof input keying material values
-
salts
Returns an unmodifiableListof salt values in the order they were added. Returns an empty list if there are no salt values.Salt values added by
HKDFParameterSpec.Builder.addSalt(byte[])are converted to aSecretKeySpecobject. Empty arrays are discarded.- Implementation Note:
- An HKDF implementation should concatenate the salts into a single value to be used in the HKDF-Extract phase.
- Returns:
- the unmodifiable
Listof salt values
-
info
public byte[] info()Returns the optional context and application specific information.- Returns:
- a clone of the optional context and application specific
information, or
nullif not specified
-
length
public int length()Returns the length of the output keying material.- Returns:
- the length of the output keying material
-