Interface WebAuthn

All Known Implementing Classes:
WebAuthnImpl

public interface WebAuthn
This domain allows configuring virtual authenticators to test the WebAuthn API
  • Method Summary

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

    • enable

      void enable()
      Enable the WebAuthn domain and start intercepting credential storage and retrieval with a virtual authenticator.
    • disable

      void disable()
      Disable the WebAuthn domain.
    • addVirtualAuthenticator

      java.lang.String addVirtualAuthenticator​(VirtualAuthenticatorOptions options)
      Creates and adds a virtual authenticator.
    • removeVirtualAuthenticator

      void removeVirtualAuthenticator​(java.lang.String authenticatorId)
      Removes the given authenticator.
    • addCredential

      void addCredential​(java.lang.String authenticatorId, Credential credential)
      Adds the credential to the specified authenticator.
    • getCredential

      Credential getCredential​(java.lang.String authenticatorId, java.lang.String credentialId)
      Returns a single credential stored in the given virtual authenticator that matches the credential ID.
    • getCredentials

      java.util.List<Credential> getCredentials​(java.lang.String authenticatorId)
      Returns all the credentials stored in the given virtual authenticator.
    • removeCredential

      void removeCredential​(java.lang.String authenticatorId, java.lang.String credentialId)
      Removes a credential from the authenticator.
    • clearCredentials

      void clearCredentials​(java.lang.String authenticatorId)
      Clears all the credentials from the specified device.
    • setUserVerified

      void setUserVerified​(java.lang.String authenticatorId, java.lang.Boolean isUserVerified)
      Sets whether User Verification succeeds or fails for an authenticator. The default is true.