public final class PublicKeyCredentialCreationOptions
extends java.lang.Object
navigator.credentials.create()
.Modifier and Type | Class and Description |
---|---|
static class |
PublicKeyCredentialCreationOptions.PublicKeyCredentialCreationOptionsBuilder |
Modifier and Type | Method and Description |
---|---|
static PublicKeyCredentialCreationOptions.PublicKeyCredentialCreationOptionsBuilder.MandatoryStages |
builder() |
boolean |
equals(java.lang.Object o) |
@NonNull AttestationConveyancePreference |
getAttestation()
Intended for use by Relying Parties that wish to express their preference for attestation conveyance.
|
@NonNull java.util.Optional<AuthenticatorSelectionCriteria> |
getAuthenticatorSelection()
Intended for use by Relying Parties that wish to select the appropriate authenticators to participate in the
create() operation.
|
@NonNull ByteArray |
getChallenge()
A challenge intended to be used for generating the newly created credential’s attestation object.
|
@NonNull java.util.Optional<java.util.Set<PublicKeyCredentialDescriptor>> |
getExcludeCredentials()
Intended for use by Relying Parties that wish to limit the creation of multiple credentials for the same account
on a single authenticator.
|
@NonNull RegistrationExtensionInputs |
getExtensions()
Additional parameters requesting additional processing by the client and authenticator.
|
@NonNull java.util.List<PublicKeyCredentialParameters> |
getPubKeyCredParams()
Information about the desired properties of the credential to be created.
|
@NonNull RelyingPartyIdentity |
getRp()
Contains data about the Relying Party responsible for the request.
|
@NonNull java.util.Optional<java.lang.Long> |
getTimeout()
A time, in milliseconds, that the caller is willing to wait for the call to complete.
|
@NonNull UserIdentity |
getUser()
Contains data about the user account for which the Relying Party is requesting attestation.
|
int |
hashCode() |
PublicKeyCredentialCreationOptions.PublicKeyCredentialCreationOptionsBuilder |
toBuilder() |
java.lang.String |
toString() |
public static PublicKeyCredentialCreationOptions.PublicKeyCredentialCreationOptionsBuilder.MandatoryStages builder()
public PublicKeyCredentialCreationOptions.PublicKeyCredentialCreationOptionsBuilder toBuilder()
@NonNull public @NonNull RelyingPartyIdentity getRp()
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.
@NonNull public @NonNull UserIdentity getUser()
@NonNull public @NonNull ByteArray getChallenge()
@NonNull public @NonNull java.util.List<PublicKeyCredentialParameters> getPubKeyCredParams()
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.
@NonNull public @NonNull java.util.Optional<java.lang.Long> getTimeout()
@NonNull public @NonNull java.util.Optional<java.util.Set<PublicKeyCredentialDescriptor>> getExcludeCredentials()
@NonNull public @NonNull java.util.Optional<AuthenticatorSelectionCriteria> getAuthenticatorSelection()
@NonNull public @NonNull AttestationConveyancePreference getAttestation()
AttestationConveyancePreference.NONE
.@NonNull public @NonNull RegistrationExtensionInputs getExtensions()
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 boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object