public static class PublicKeyCredentialCreationOptions.PublicKeyCredentialCreationOptionsBuilder
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
PublicKeyCredentialCreationOptions.PublicKeyCredentialCreationOptionsBuilder.MandatoryStages |
Modifier and Type | Method and Description |
---|---|
PublicKeyCredentialCreationOptions.PublicKeyCredentialCreationOptionsBuilder |
attestation(@NonNull AttestationConveyancePreference attestation)
Intended for use by Relying Parties that wish to express their preference for attestation conveyance.
|
PublicKeyCredentialCreationOptions.PublicKeyCredentialCreationOptionsBuilder |
authenticatorSelection(@NonNull AuthenticatorSelectionCriteria authenticatorSelection)
Intended for use by Relying Parties that wish to select the appropriate authenticators to participate in the
create() operation.
|
PublicKeyCredentialCreationOptions.PublicKeyCredentialCreationOptionsBuilder |
authenticatorSelection(@NonNull java.util.Optional<AuthenticatorSelectionCriteria> authenticatorSelection)
Intended for use by Relying Parties that wish to select the appropriate authenticators to participate in the
create() operation.
|
PublicKeyCredentialCreationOptions |
build() |
PublicKeyCredentialCreationOptions.PublicKeyCredentialCreationOptionsBuilder |
challenge(@NonNull ByteArray challenge)
A challenge intended to be used for generating the newly created credential’s attestation object.
|
PublicKeyCredentialCreationOptions.PublicKeyCredentialCreationOptionsBuilder |
excludeCredentials(@NonNull java.util.Optional<java.util.Set<PublicKeyCredentialDescriptor>> excludeCredentials)
Intended for use by Relying Parties that wish to limit the creation of multiple credentials for the same account
on a single authenticator.
|
PublicKeyCredentialCreationOptions.PublicKeyCredentialCreationOptionsBuilder |
excludeCredentials(@NonNull java.util.Set<PublicKeyCredentialDescriptor> excludeCredentials)
Intended for use by Relying Parties that wish to limit the creation of multiple credentials for the same account
on a single authenticator.
|
PublicKeyCredentialCreationOptions.PublicKeyCredentialCreationOptionsBuilder |
extensions(@NonNull RegistrationExtensionInputs extensions)
Additional parameters requesting additional processing by the client and authenticator.
|
PublicKeyCredentialCreationOptions.PublicKeyCredentialCreationOptionsBuilder |
pubKeyCredParams(@NonNull java.util.List<PublicKeyCredentialParameters> pubKeyCredParams)
Information about the desired properties of the credential to be created.
|
PublicKeyCredentialCreationOptions.PublicKeyCredentialCreationOptionsBuilder |
rp(@NonNull RelyingPartyIdentity rp)
Contains data about the Relying Party responsible for the request.
|
PublicKeyCredentialCreationOptions.PublicKeyCredentialCreationOptionsBuilder |
timeout(long timeout)
A time, in milliseconds, that the caller is willing to wait for the call to complete.
|
PublicKeyCredentialCreationOptions.PublicKeyCredentialCreationOptionsBuilder |
timeout(@NonNull java.util.Optional<java.lang.Long> timeout)
A time, in milliseconds, that the caller is willing to wait for the call to complete.
|
java.lang.String |
toString() |
PublicKeyCredentialCreationOptions.PublicKeyCredentialCreationOptionsBuilder |
user(@NonNull UserIdentity user)
Contains data about the user account for which the Relying Party is requesting attestation.
|
public PublicKeyCredentialCreationOptions.PublicKeyCredentialCreationOptionsBuilder timeout(@NonNull @NonNull java.util.Optional<java.lang.Long> timeout)
public PublicKeyCredentialCreationOptions.PublicKeyCredentialCreationOptionsBuilder timeout(long timeout)
public PublicKeyCredentialCreationOptions.PublicKeyCredentialCreationOptionsBuilder excludeCredentials(@NonNull @NonNull java.util.Optional<java.util.Set<PublicKeyCredentialDescriptor>> excludeCredentials)
public PublicKeyCredentialCreationOptions.PublicKeyCredentialCreationOptionsBuilder excludeCredentials(@NonNull @NonNull java.util.Set<PublicKeyCredentialDescriptor> excludeCredentials)
public PublicKeyCredentialCreationOptions.PublicKeyCredentialCreationOptionsBuilder authenticatorSelection(@NonNull @NonNull java.util.Optional<AuthenticatorSelectionCriteria> authenticatorSelection)
public PublicKeyCredentialCreationOptions.PublicKeyCredentialCreationOptionsBuilder authenticatorSelection(@NonNull @NonNull AuthenticatorSelectionCriteria authenticatorSelection)
public PublicKeyCredentialCreationOptions.PublicKeyCredentialCreationOptionsBuilder rp(@NonNull @NonNull RelyingPartyIdentity rp)
Its value's id
member specifies the RP
ID the credential should be scoped to. If omitted, its value will be set by the client. See RelyingPartyIdentity
for further details.
public PublicKeyCredentialCreationOptions.PublicKeyCredentialCreationOptionsBuilder user(@NonNull @NonNull UserIdentity user)
public PublicKeyCredentialCreationOptions.PublicKeyCredentialCreationOptionsBuilder challenge(@NonNull @NonNull ByteArray challenge)
public PublicKeyCredentialCreationOptions.PublicKeyCredentialCreationOptionsBuilder pubKeyCredParams(@NonNull @NonNull java.util.List<PublicKeyCredentialParameters> pubKeyCredParams)
The sequence is ordered from most preferred to least preferred. The client makes a best-effort to create the most preferred credential that it can.
public PublicKeyCredentialCreationOptions.PublicKeyCredentialCreationOptionsBuilder attestation(@NonNull @NonNull AttestationConveyancePreference attestation)
AttestationConveyancePreference.NONE
.public PublicKeyCredentialCreationOptions.PublicKeyCredentialCreationOptionsBuilder extensions(@NonNull @NonNull RegistrationExtensionInputs extensions)
For example, the caller may request that only authenticators with certain capabilities be used to create the credential, or that particular information be returned in the attestation object. Some extensions are defined in §9 WebAuthn Extensions; consult the IANA "WebAuthn Extension Identifier" registry established by [WebAuthn-Registries] for an up-to-date list of registered WebAuthn Extensions.
public PublicKeyCredentialCreationOptions build()
public java.lang.String toString()
toString
in class java.lang.Object