public class CredentialsContainer
extends java.lang.Object
navigator.credentials... in a browser.store() does not have any functionality in WebAuthn.preventSilentAccess() has no use in this library's scope.| Constructor and Description |
|---|
CredentialsContainer(Origin origin,
java.util.List<? extends Authenticator> authenticators)
Creates a new CredentialsContainer with the specified
Origin and a list of "known" authenticators. |
| Modifier and Type | Method and Description |
|---|---|
com.yubico.webauthn.data.PublicKeyCredential<com.yubico.webauthn.data.AuthenticatorAttestationResponse,com.yubico.webauthn.data.ClientRegistrationExtensionOutputs> |
create(com.yubico.webauthn.data.PublicKeyCredentialCreationOptions publicKey)
Implementation of CredentialsContainer.create()
for WebAuthn.
|
com.yubico.webauthn.data.PublicKeyCredential<com.yubico.webauthn.data.AuthenticatorAssertionResponse,com.yubico.webauthn.data.ClientAssertionExtensionOutputs> |
get(com.yubico.webauthn.data.PublicKeyCredentialRequestOptions publicKey)
Implementation of CredentialsContainer.get()
for WebAuthn.
|
public CredentialsContainer(Origin origin, java.util.List<? extends Authenticator> authenticators)
Origin and a list of "known" authenticators.origin - The origin of the emulated "context".authenticators - A list of authenticators that are available to this container.
This list will be queried to create/get WebAuthn credentials.public com.yubico.webauthn.data.PublicKeyCredential<com.yubico.webauthn.data.AuthenticatorAttestationResponse,com.yubico.webauthn.data.ClientRegistrationExtensionOutputs> create(com.yubico.webauthn.data.PublicKeyCredentialCreationOptions publicKey)
publicKey - The PublicKeyCredentialOptions
provided by the Relying Party.java.lang.IllegalArgumentException - if the parameters are malformed in any way or some security check failsjava.lang.IllegalStateException - if an authenticator throws one.public com.yubico.webauthn.data.PublicKeyCredential<com.yubico.webauthn.data.AuthenticatorAssertionResponse,com.yubico.webauthn.data.ClientAssertionExtensionOutputs> get(com.yubico.webauthn.data.PublicKeyCredentialRequestOptions publicKey)
publicKey - The PublicKeyCredentialRequestOptions
provided by the Relying Party.java.lang.IllegalArgumentException - if any of the parameters are malformed in any way or a security check fails.java.lang.RuntimeException - if any other unexpected exception occurs during the assertion process.