Package com.yubico.webauthn.data
Class Extensions.Prf.PrfValues
java.lang.Object
com.yubico.webauthn.data.Extensions.Prf.PrfValues
- Enclosing class:
- Extensions.Prf
One or two inputs to or outputs from the pseudo-random function (PRF) associated with a
credential.
getFirst()
is always present, but getSecond()
is empty when only one
input or output was given.
-
Method Summary
Modifier and TypeMethodDescriptionboolean
@NonNull ByteArray
getFirst()
The first PRF input to evaluate, or the result of that evaluation.The second PRF input to evaluate, if any, or the result of that evaluation.int
hashCode()
static Extensions.Prf.PrfValues
Construct aExtensions.Prf.PrfValues
with a single PRF input or output.static Extensions.Prf.PrfValues
Construct aExtensions.Prf.PrfValues
with two PRF inputs or outputs ifsecond
is present, otherwise aExtensions.Prf.PrfValues
with one inputs or output.toString()
static Extensions.Prf.PrfValues
Construct aExtensions.Prf.PrfValues
with two PRF inputs or outputs.
-
Method Details
-
getSecond
The second PRF input to evaluate, if any, or the result of that evaluation.- Since:
- 2.7.0
- See Also:
-
one
Construct aExtensions.Prf.PrfValues
with a single PRF input or output.- Parameters:
first
- the PRF input or output. Must not be null.- Since:
- 2.7.0
- See Also:
-
two
public static Extensions.Prf.PrfValues two(@NonNull @NonNull ByteArray first, @NonNull @NonNull ByteArray second) Construct aExtensions.Prf.PrfValues
with two PRF inputs or outputs.- Parameters:
first
- the first PRF input or output. Must not be null.second
- the second PRF input or output. Must not be null.- Since:
- 2.7.0
- See Also:
-
oneOrTwo
public static Extensions.Prf.PrfValues oneOrTwo(@NonNull @NonNull ByteArray first, @NonNull @NonNull Optional<ByteArray> second) Construct aExtensions.Prf.PrfValues
with two PRF inputs or outputs ifsecond
is present, otherwise aExtensions.Prf.PrfValues
with one inputs or output.- Parameters:
first
- the first PRF input or output. Must not be null.second
- the second PRF input or output, if any. Must not be null, but may be empty.- Since:
- 2.7.0
- See Also:
-
getFirst
The first PRF input to evaluate, or the result of that evaluation.- Since:
- 2.7.0
- See Also:
-
equals
-
hashCode
public int hashCode() -
toString
-