Package com.yubico.webauthn
Class StartAssertionOptions
- java.lang.Object
-
- com.yubico.webauthn.StartAssertionOptions
-
public final class StartAssertionOptions extends java.lang.ObjectParameters forRelyingParty.startAssertion(StartAssertionOptions).
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classStartAssertionOptions.StartAssertionOptionsBuilder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static StartAssertionOptions.StartAssertionOptionsBuilderbuilder()booleanequals(java.lang.Object o)@NonNull AssertionExtensionInputsgetExtensions()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.inthashCode()StartAssertionOptions.StartAssertionOptionsBuildertoBuilder()java.lang.StringtoString()
-
-
-
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
PublicKeyCredentialRequestOptionsso 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 anyappIdextension input set herein.The default specifies no extension inputs.
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-