public static class StartAssertionOptions.StartAssertionOptionsBuilder
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
StartAssertionOptions |
build() |
StartAssertionOptions.StartAssertionOptionsBuilder |
extensions(@NonNull AssertionExtensionInputs extensions)
Extension inputs for this authentication operation.
|
StartAssertionOptions.StartAssertionOptionsBuilder |
timeout(long timeout)
The value for
PublicKeyCredentialRequestOptions.getTimeout() for this authentication
operation. |
StartAssertionOptions.StartAssertionOptionsBuilder |
timeout(@NonNull java.util.Optional<java.lang.Long> timeout)
The value for
PublicKeyCredentialRequestOptions.getTimeout() for this authentication
operation. |
java.lang.String |
toString() |
StartAssertionOptions.StartAssertionOptionsBuilder |
userHandle(ByteArray userHandle)
The user handle of the user to authenticate, if the user has already been identified.
|
StartAssertionOptions.StartAssertionOptionsBuilder |
userHandle(@NonNull java.util.Optional<ByteArray> userHandle)
The user handle of the user to authenticate, if the user has already been identified.
|
StartAssertionOptions.StartAssertionOptionsBuilder |
username(@NonNull java.util.Optional<java.lang.String> username)
The username of the user to authenticate, if the user has already been identified.
|
StartAssertionOptions.StartAssertionOptionsBuilder |
username(java.lang.String username)
The username of the user to authenticate, if the user has already been identified.
|
StartAssertionOptions.StartAssertionOptionsBuilder |
userVerification(@NonNull java.util.Optional<UserVerificationRequirement> userVerification)
The value for
PublicKeyCredentialRequestOptions.getUserVerification() for this
authentication operation. |
StartAssertionOptions.StartAssertionOptionsBuilder |
userVerification(UserVerificationRequirement userVerification)
The value for
PublicKeyCredentialRequestOptions.getUserVerification() for this
authentication operation. |
public StartAssertionOptions.StartAssertionOptionsBuilder username(@NonNull @NonNull java.util.Optional<java.lang.String> username)
Mutually exclusive with userHandle(Optional). Setting this to a present value
will set userHandle(Optional) to empty.
If this or userHandle(Optional) is present, then RelyingParty.startAssertion(StartAssertionOptions) will set PublicKeyCredentialRequestOptions.getAllowCredentials() to the list of that user's
credentials.
If this and StartAssertionOptions.getUserHandle() are both 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).
public StartAssertionOptions.StartAssertionOptionsBuilder username(java.lang.String username)
Mutually exclusive with userHandle(Optional). Setting this to a non-null value
will set userHandle(Optional) to empty.
If this or userHandle(Optional) is present, then RelyingParty.startAssertion(StartAssertionOptions) will set PublicKeyCredentialRequestOptions.getAllowCredentials() to the list of that user's
credentials.
If this and StartAssertionOptions.getUserHandle() are both 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).
public StartAssertionOptions.StartAssertionOptionsBuilder userHandle(@NonNull @NonNull java.util.Optional<ByteArray> userHandle)
Mutually exclusive with username(Optional). Setting this to a present value will
set username(Optional) to empty.
If this or username(Optional) is present, then RelyingParty.startAssertion(StartAssertionOptions) will set PublicKeyCredentialRequestOptions.getAllowCredentials() to the list of that user's
credentials.
If this and StartAssertionOptions.getUsername() are both 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).
public StartAssertionOptions.StartAssertionOptionsBuilder userHandle(ByteArray userHandle)
Mutually exclusive with username(Optional). Setting this to a non-null value will
set username(Optional) to empty.
If this or username(Optional) is present, then RelyingParty.startAssertion(StartAssertionOptions) will set PublicKeyCredentialRequestOptions.getAllowCredentials() to the list of that user's
credentials.
If this and StartAssertionOptions.getUsername() are both 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).
public StartAssertionOptions.StartAssertionOptionsBuilder userVerification(@NonNull @NonNull java.util.Optional<UserVerificationRequirement> userVerification)
PublicKeyCredentialRequestOptions.getUserVerification() for this
authentication operation.
If set to UserVerificationRequirement.REQUIRED, then RelyingParty.finishAssertion(FinishAssertionOptions) will enforce that user
verificationwas performed in this authentication ceremony.
The default is UserVerificationRequirement.PREFERRED.
public StartAssertionOptions.StartAssertionOptionsBuilder userVerification(UserVerificationRequirement userVerification)
PublicKeyCredentialRequestOptions.getUserVerification() for this
authentication operation.
If set to UserVerificationRequirement.REQUIRED, then RelyingParty.finishAssertion(FinishAssertionOptions) will enforce that user
verificationwas performed in this authentication ceremony.
The default is UserVerificationRequirement.PREFERRED.
public StartAssertionOptions.StartAssertionOptionsBuilder timeout(@NonNull @NonNull java.util.Optional<java.lang.Long> timeout)
PublicKeyCredentialRequestOptions.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 to
navigator.credentials.get() on the client side.
The default is empty.
public StartAssertionOptions.StartAssertionOptionsBuilder timeout(long timeout)
PublicKeyCredentialRequestOptions.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 to
navigator.credentials.get() on the client side.
The default is empty.
public StartAssertionOptions.StartAssertionOptionsBuilder extensions(@NonNull @NonNull AssertionExtensionInputs extensions)
If RelyingParty.getAppId() is set, RelyingParty.startAssertion(StartAssertionOptions) will overwrite any appId extension input set herein.
The default specifies no extension inputs.
this.public StartAssertionOptions build()
public java.lang.String toString()
toString in class java.lang.Object