-
public final class WebAuthnDomainThis domain allows configuring virtual authenticators to test the WebAuthn API.
-
-
Method Summary
Modifier and Type Method Description final Unitenable()Enable the WebAuthn domain and start intercepting credential storage and retrieval with a virtual authenticator. final Unitdisable()Disable the WebAuthn domain. final AddVirtualAuthenticatorResponseaddVirtualAuthenticator(AddVirtualAuthenticatorRequest input)Creates and adds a virtual authenticator. final UnitremoveVirtualAuthenticator(RemoveVirtualAuthenticatorRequest input)Removes the given authenticator. final UnitaddCredential(AddCredentialRequest input)Adds the credential to the specified authenticator. final GetCredentialResponsegetCredential(GetCredentialRequest input)Returns a single credential stored in the given virtual authenticator that matches the credential ID. final GetCredentialsResponsegetCredentials(GetCredentialsRequest input)Returns all the credentials stored in the given virtual authenticator. final UnitremoveCredential(RemoveCredentialRequest input)Removes a credential from the authenticator. final UnitclearCredentials(ClearCredentialsRequest input)Clears all the credentials from the specified device. final UnitsetUserVerified(SetUserVerifiedRequest input)Sets whether User Verification succeeds or fails for an authenticator. final UnitsetAutomaticPresenceSimulation(SetAutomaticPresenceSimulationRequest input)Sets whether tests of user presence will succeed immediately (if true) or fail to resolve (if false) for an authenticator. -
-
Method Detail
-
enable
final Unit enable()
Enable the WebAuthn domain and start intercepting credential storage and retrieval with a virtual authenticator.
-
addVirtualAuthenticator
final AddVirtualAuthenticatorResponse addVirtualAuthenticator(AddVirtualAuthenticatorRequest input)
Creates and adds a virtual authenticator.
-
removeVirtualAuthenticator
final Unit removeVirtualAuthenticator(RemoveVirtualAuthenticatorRequest input)
Removes the given authenticator.
-
addCredential
final Unit addCredential(AddCredentialRequest input)
Adds the credential to the specified authenticator.
-
getCredential
final GetCredentialResponse getCredential(GetCredentialRequest input)
Returns a single credential stored in the given virtual authenticator that matches the credential ID.
-
getCredentials
final GetCredentialsResponse getCredentials(GetCredentialsRequest input)
Returns all the credentials stored in the given virtual authenticator.
-
removeCredential
final Unit removeCredential(RemoveCredentialRequest input)
Removes a credential from the authenticator.
-
clearCredentials
final Unit clearCredentials(ClearCredentialsRequest input)
Clears all the credentials from the specified device.
-
setUserVerified
final Unit setUserVerified(SetUserVerifiedRequest input)
Sets whether User Verification succeeds or fails for an authenticator. The default is true.
-
setAutomaticPresenceSimulation
final Unit setAutomaticPresenceSimulation(SetAutomaticPresenceSimulationRequest input)
Sets whether tests of user presence will succeed immediately (if true) or fail to resolve (if false) for an authenticator. The default is true.
-
-
-
-