Package com.yubico.webauthn
Class StartAssertionOptions
- java.lang.Object
-
- com.yubico.webauthn.StartAssertionOptions
-
public final class StartAssertionOptions extends java.lang.Object
Parameters forRelyingParty.startAssertion(StartAssertionOptions)
.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
StartAssertionOptions.StartAssertionOptionsBuilder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static StartAssertionOptions.StartAssertionOptionsBuilder
builder()
boolean
equals(java.lang.Object o)
@NonNull AssertionExtensionInputs
getExtensions()
Extension inputs for this authentication operation.java.util.Optional<java.lang.Long>
getTimeout()
The value forPublicKeyCredentialRequestOptions.getTimeout()
for this authentication operation.java.util.Optional<java.lang.String>
getUsername()
The username of the user to authenticate, if the user has already been identified.java.util.Optional<UserVerificationRequirement>
getUserVerification()
The value forPublicKeyCredentialRequestOptions.getUserVerification()
for this authentication operation.int
hashCode()
StartAssertionOptions.StartAssertionOptionsBuilder
toBuilder()
java.lang.String
toString()
-
-
-
Method Detail
-
getUsername
public java.util.Optional<java.lang.String> getUsername()
The username of the user to authenticate, if the user has already been identified.If this is absent, that implies a first-factor authentication operation - meaning identification of the user is deferred until after receiving the response from the client.
The default is empty (absent).
- See Also:
- Client-side-resident credential
-
getUserVerification
public java.util.Optional<UserVerificationRequirement> getUserVerification()
The value forPublicKeyCredentialRequestOptions.getUserVerification()
for this authentication operation.The default is
UserVerificationRequirement.PREFERRED
.
-
getTimeout
public java.util.Optional<java.lang.Long> getTimeout()
The value forPublicKeyCredentialRequestOptions.getTimeout()
for this authentication operation.This library does not take the timeout into account in any way, other than passing it through to the
PublicKeyCredentialRequestOptions
so it can be used as an argument tonavigator.credentials.get()
on the client side.The default is empty.
-
builder
public static StartAssertionOptions.StartAssertionOptionsBuilder builder()
-
toBuilder
public StartAssertionOptions.StartAssertionOptionsBuilder toBuilder()
-
getExtensions
@NonNull public @NonNull AssertionExtensionInputs getExtensions()
Extension inputs for this authentication operation.If
RelyingParty.getAppId()
is set,RelyingParty.startAssertion(StartAssertionOptions)
will overwrite anyappId
extension input set herein.The default specifies no extension inputs.
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-