public class WebAuthnAuthenticatorBuilder
extends java.lang.Object
WebAuthnAuthenticator.| Constructor and Description |
|---|
WebAuthnAuthenticatorBuilder() |
| Modifier and Type | Method and Description |
|---|---|
WebAuthnAuthenticatorBuilder |
aaguid(byte[] aaguid)
The aaguid of the resulting authenticator.
|
WebAuthnAuthenticatorBuilder |
attachment(com.yubico.webauthn.data.AuthenticatorAttachment attachment)
Set the attachment of this authenticator.
|
WebAuthnAuthenticator |
build()
Build the
WebAuthnAuthenticator object using the parameters configured in this builder. |
WebAuthnAuthenticatorBuilder |
credentialSelection(java.util.function.Function<? super java.util.Set<PublicKeyCredentialSource>,PublicKeyCredentialSource> credentialSelection)
Set the function that will be called if multiple credentials have been found that match the requirements set by the relying party.
|
WebAuthnAuthenticatorBuilder |
signatureCounter(SignatureCounter signatureCounter)
Set the signature counter style that should be used by the authenticator.
|
WebAuthnAuthenticatorBuilder |
supportAlgorithms(java.util.Collection<com.yubico.webauthn.data.COSEAlgorithmIdentifier> supportedAlgorithms)
Set the list of supported cryptographic algorithms for this authenticator.
|
WebAuthnAuthenticatorBuilder |
supportAlgorithms(com.yubico.webauthn.data.COSEAlgorithmIdentifier... algorithms)
Set the list of supported cryptographic algorithms for this authenticator.
|
WebAuthnAuthenticatorBuilder |
supportClientSideDiscoverablePublicKeyCredentialSources(boolean supportsClientSideDiscoverablePublicKeyCredentialSources)
Set whether this authenticator should support client side discoverable credentials aka resident keys,
i.e.
|
WebAuthnAuthenticatorBuilder |
supportUserVerification(boolean supportsUserVerification)
Set whether this authenticator should support user verification.
|
public WebAuthnAuthenticatorBuilder aaguid(byte[] aaguid)
aaguid - a length-16 byte array identifying the authenticator model. Default: 16 0-bytes.public WebAuthnAuthenticatorBuilder attachment(com.yubico.webauthn.data.AuthenticatorAttachment attachment)
attachment - the attachment. Default: AuthenticatorAttachment.CROSS_PLATFORM.public WebAuthnAuthenticatorBuilder supportAlgorithms(com.yubico.webauthn.data.COSEAlgorithmIdentifier... algorithms)
algorithms - The list of algorithms. Default: All supported algorithms.public WebAuthnAuthenticatorBuilder supportAlgorithms(java.util.Collection<com.yubico.webauthn.data.COSEAlgorithmIdentifier> supportedAlgorithms)
supportedAlgorithms - The new collection of algorithms. Default: All supported algorithms.public WebAuthnAuthenticatorBuilder supportClientSideDiscoverablePublicKeyCredentialSources(boolean supportsClientSideDiscoverablePublicKeyCredentialSources)
supportsClientSideDiscoverablePublicKeyCredentialSources - The setting. Default: true.public WebAuthnAuthenticatorBuilder supportUserVerification(boolean supportsUserVerification)
supportsUserVerification - The setting. Default: true.public WebAuthnAuthenticatorBuilder signatureCounter(SignatureCounter signatureCounter)
signatureCounter - the signature counter object. Default: new PerCredentialSignatureCounter().public WebAuthnAuthenticatorBuilder credentialSelection(java.util.function.Function<? super java.util.Set<PublicKeyCredentialSource>,PublicKeyCredentialSource> credentialSelection)
credentialSelection - A function that takes a set of credential sources and emulates the selection of one by the user.
Default: always select the first authenticator in the set (i.e., no defined priority)public WebAuthnAuthenticator build()
WebAuthnAuthenticator object using the parameters configured in this builder.