@Generated(value="org.realityforge.webtack")
@JsType(isNative=true,
namespace="<global>",
name="PublicKeyCredentialCreationOptions")
public interface PublicKeyCredentialCreationOptions
| Modifier and Type | Interface and Description |
|---|---|
static interface |
PublicKeyCredentialCreationOptions.Builder
The PublicKeyCredentialCreationOptions dictionary of the Web Authentication API holds options passed to navigators.credentials.create() in order to create a PublicKeyCredential.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
attestation()
attestation is an optional property of the PublicKeyCredentialCreationOptions dictionary.
|
AuthenticatorSelectionCriteria |
authenticatorSelection()
authenticatorSelection, an optional property of the PublicKeyCredentialCreationOptions dictionary, is an object giving criteria to filter out the authenticators to be used for the creation operation.
|
BufferSource |
challenge()
The challenge property of the PublicKeyCredentialCreationOptions dictionary is a BufferSource used as a cryptographic challenge.
|
static PublicKeyCredentialCreationOptions.Builder |
create(BufferSource challenge,
JsArray<PublicKeyCredentialParameters> pubKeyCredParams,
PublicKeyCredentialRpEntity rp,
PublicKeyCredentialUserEntity user) |
static PublicKeyCredentialCreationOptions.Builder |
create(BufferSource challenge,
PublicKeyCredentialParameters[] pubKeyCredParams,
PublicKeyCredentialRpEntity rp,
PublicKeyCredentialUserEntity user) |
JsArray<PublicKeyCredentialDescriptor> |
excludeCredentials()
excludeCredentials, an optional property of the PublicKeyCredentialCreationOptions dictionary, is an Array whose elements are descriptors for the public keys already existing for a given user.
|
AuthenticationExtensionsClientInputs |
extensions()
extensions, an optional property of the PublicKeyCredentialCreationOptions dictionary, is an object providing the client extensions and their input values.
|
JsArray<PublicKeyCredentialParameters> |
pubKeyCredParams()
The pubKeyCredParams property of the PublicKeyCredentialCreationOptions dictionary is an Array whose elements are objects describing the desired features of the credential to be created.
|
PublicKeyCredentialRpEntity |
rp()
The rp property of the PublicKeyCredentialCreationOptions dictionary is an object describing the relying party which requested the credential creation (via navigator.credentials.create()).
|
void |
setAttestation(java.lang.String attestation)
attestation is an optional property of the PublicKeyCredentialCreationOptions dictionary.
|
void |
setAuthenticatorSelection(AuthenticatorSelectionCriteria authenticatorSelection)
authenticatorSelection, an optional property of the PublicKeyCredentialCreationOptions dictionary, is an object giving criteria to filter out the authenticators to be used for the creation operation.
|
void |
setChallenge(BufferSource challenge)
The challenge property of the PublicKeyCredentialCreationOptions dictionary is a BufferSource used as a cryptographic challenge.
|
void |
setExcludeCredentials(JsArray<PublicKeyCredentialDescriptor> excludeCredentials)
excludeCredentials, an optional property of the PublicKeyCredentialCreationOptions dictionary, is an Array whose elements are descriptors for the public keys already existing for a given user.
|
default void |
setExcludeCredentials(PublicKeyCredentialDescriptor... excludeCredentials)
excludeCredentials, an optional property of the PublicKeyCredentialCreationOptions dictionary, is an Array whose elements are descriptors for the public keys already existing for a given user.
|
void |
setExtensions(AuthenticationExtensionsClientInputs extensions)
extensions, an optional property of the PublicKeyCredentialCreationOptions dictionary, is an object providing the client extensions and their input values.
|
void |
setPubKeyCredParams(JsArray<PublicKeyCredentialParameters> pubKeyCredParams)
The pubKeyCredParams property of the PublicKeyCredentialCreationOptions dictionary is an Array whose elements are objects describing the desired features of the credential to be created.
|
default void |
setPubKeyCredParams(PublicKeyCredentialParameters... pubKeyCredParams)
The pubKeyCredParams property of the PublicKeyCredentialCreationOptions dictionary is an Array whose elements are objects describing the desired features of the credential to be created.
|
void |
setRp(PublicKeyCredentialRpEntity rp)
The rp property of the PublicKeyCredentialCreationOptions dictionary is an object describing the relying party which requested the credential creation (via navigator.credentials.create()).
|
void |
setTimeout(int timeout)
The timeout property, of the PublicKeyCredentialCreationOptions dictionary, represents an hint, given in milliseconds, for the time the script is willing to wait for the completion of the creation operation.
|
void |
setUser(PublicKeyCredentialUserEntity user)
The user property of the PublicKeyCredentialCreationOptions dictionary is an object describing the user account for which the credentials are generated (via navigator.credentials.create()).
|
int |
timeout()
The timeout property, of the PublicKeyCredentialCreationOptions dictionary, represents an hint, given in milliseconds, for the time the script is willing to wait for the completion of the creation operation.
|
PublicKeyCredentialUserEntity |
user()
The user property of the PublicKeyCredentialCreationOptions dictionary is an object describing the user account for which the credentials are generated (via navigator.credentials.create()).
|
@JsOverlay @Nonnull static PublicKeyCredentialCreationOptions.Builder create(@Nonnull BufferSource challenge, @Nonnull JsArray<PublicKeyCredentialParameters> pubKeyCredParams, @Nonnull PublicKeyCredentialRpEntity rp, @Nonnull PublicKeyCredentialUserEntity user)
@JsOverlay @Nonnull static PublicKeyCredentialCreationOptions.Builder create(@Nonnull BufferSource challenge, @Nonnull PublicKeyCredentialParameters[] pubKeyCredParams, @Nonnull PublicKeyCredentialRpEntity rp, @Nonnull PublicKeyCredentialUserEntity user)
@JsProperty(name="attestation") java.lang.String attestation()
@JsProperty
void setAttestation(@Nonnull
java.lang.String attestation)
@JsProperty(name="authenticatorSelection") AuthenticatorSelectionCriteria authenticatorSelection()
@JsProperty
void setAuthenticatorSelection(@Nonnull
AuthenticatorSelectionCriteria authenticatorSelection)
@JsProperty(name="challenge") @Nonnull BufferSource challenge()
@JsProperty
void setChallenge(@Nonnull
BufferSource challenge)
@JsProperty(name="excludeCredentials") JsArray<PublicKeyCredentialDescriptor> excludeCredentials()
@JsProperty
void setExcludeCredentials(@Nonnull
JsArray<PublicKeyCredentialDescriptor> excludeCredentials)
@JsOverlay
default void setExcludeCredentials(@Nonnull
PublicKeyCredentialDescriptor... excludeCredentials)
@JsProperty(name="extensions") AuthenticationExtensionsClientInputs extensions()
@JsProperty
void setExtensions(@Nonnull
AuthenticationExtensionsClientInputs extensions)
@JsProperty(name="pubKeyCredParams") @Nonnull JsArray<PublicKeyCredentialParameters> pubKeyCredParams()
@JsProperty
void setPubKeyCredParams(@Nonnull
JsArray<PublicKeyCredentialParameters> pubKeyCredParams)
@JsOverlay
default void setPubKeyCredParams(@Nonnull
PublicKeyCredentialParameters... pubKeyCredParams)
@JsProperty(name="rp") @Nonnull PublicKeyCredentialRpEntity rp()
@JsProperty
void setRp(@Nonnull
PublicKeyCredentialRpEntity rp)
@JsProperty(name="timeout") int timeout()
@JsProperty void setTimeout(int timeout)
@JsProperty(name="user") @Nonnull PublicKeyCredentialUserEntity user()
@JsProperty
void setUser(@Nonnull
PublicKeyCredentialUserEntity user)