Class WebAuthn


  • @Beta
    public class WebAuthn
    extends java.lang.Object
    This domain allows configuring virtual authenticators to test the WebAuthn API.
    • Constructor Summary

      Constructors 
      Constructor Description
      WebAuthn()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static org.openqa.selenium.devtools.Command<java.lang.Void> addCredential​(AuthenticatorId authenticatorId, Credential credential)
      Adds the credential to the specified authenticator.
      static org.openqa.selenium.devtools.Command<AuthenticatorId> addVirtualAuthenticator​(VirtualAuthenticatorOptions options)
      Creates and adds a virtual authenticator.
      static org.openqa.selenium.devtools.Command<java.lang.Void> clearCredentials​(AuthenticatorId authenticatorId)
      Clears all the credentials from the specified device.
      static org.openqa.selenium.devtools.Command<java.lang.Void> disable()
      Disable the WebAuthn domain.
      static org.openqa.selenium.devtools.Command<java.lang.Void> enable()
      Enable the WebAuthn domain and start intercepting credential storage and retrieval with a virtual authenticator.
      static org.openqa.selenium.devtools.Command<Credential> getCredential​(AuthenticatorId authenticatorId, java.lang.String credentialId)
      Returns a single credential stored in the given virtual authenticator that matches the credential ID.
      static org.openqa.selenium.devtools.Command<java.util.List<Credential>> getCredentials​(AuthenticatorId authenticatorId)
      Returns all the credentials stored in the given virtual authenticator.
      static org.openqa.selenium.devtools.Command<java.lang.Void> removeCredential​(AuthenticatorId authenticatorId, java.lang.String credentialId)
      Removes a credential from the authenticator.
      static org.openqa.selenium.devtools.Command<java.lang.Void> removeVirtualAuthenticator​(AuthenticatorId authenticatorId)
      Removes the given authenticator.
      static org.openqa.selenium.devtools.Command<java.lang.Void> setUserVerified​(AuthenticatorId authenticatorId, java.lang.Boolean isUserVerified)
      Sets whether User Verification succeeds or fails for an authenticator.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • WebAuthn

        public WebAuthn()
    • Method Detail

      • enable

        public static org.openqa.selenium.devtools.Command<java.lang.Void> enable()
        Enable the WebAuthn domain and start intercepting credential storage and retrieval with a virtual authenticator.
      • disable

        public static org.openqa.selenium.devtools.Command<java.lang.Void> disable()
        Disable the WebAuthn domain.
      • removeVirtualAuthenticator

        public static org.openqa.selenium.devtools.Command<java.lang.Void> removeVirtualAuthenticator​(AuthenticatorId authenticatorId)
        Removes the given authenticator.
      • addCredential

        public static org.openqa.selenium.devtools.Command<java.lang.Void> addCredential​(AuthenticatorId authenticatorId,
                                                                                         Credential credential)
        Adds the credential to the specified authenticator.
      • getCredential

        public static org.openqa.selenium.devtools.Command<Credential> getCredential​(AuthenticatorId authenticatorId,
                                                                                     java.lang.String credentialId)
        Returns a single credential stored in the given virtual authenticator that matches the credential ID.
      • getCredentials

        public static org.openqa.selenium.devtools.Command<java.util.List<Credential>> getCredentials​(AuthenticatorId authenticatorId)
        Returns all the credentials stored in the given virtual authenticator.
      • removeCredential

        public static org.openqa.selenium.devtools.Command<java.lang.Void> removeCredential​(AuthenticatorId authenticatorId,
                                                                                            java.lang.String credentialId)
        Removes a credential from the authenticator.
      • clearCredentials

        public static org.openqa.selenium.devtools.Command<java.lang.Void> clearCredentials​(AuthenticatorId authenticatorId)
        Clears all the credentials from the specified device.
      • setUserVerified

        public static org.openqa.selenium.devtools.Command<java.lang.Void> setUserVerified​(AuthenticatorId authenticatorId,
                                                                                           java.lang.Boolean isUserVerified)
        Sets whether User Verification succeeds or fails for an authenticator. The default is true.