Class AuthenticationParameters

java.lang.Object
com.webauthn4j.data.CoreAuthenticationParameters
com.webauthn4j.data.AuthenticationParameters

public class AuthenticationParameters extends CoreAuthenticationParameters
WebAuthn authentication parameters
  • Constructor Details

    • AuthenticationParameters

      public AuthenticationParameters(@NotNull @NotNull ServerProperty serverProperty, @NotNull @NotNull CredentialRecord credentialRecord, @Nullable @Nullable List<byte[]> allowCredentials, boolean userVerificationRequired, boolean userPresenceRequired)
      Parameters:
      serverProperty - server property
      credentialRecord - credential record
      allowCredentials - allowed credentialId list. If all credentialId(s) are allowed, pass null
      userVerificationRequired - true if user verification is required. Otherwise, false
      userPresenceRequired - true if user presence is required. Otherwise, false
    • AuthenticationParameters

      public AuthenticationParameters(@NotNull @NotNull ServerProperty serverProperty, @NotNull @NotNull CredentialRecord credentialRecord, @Nullable @Nullable List<byte[]> allowCredentials, boolean userVerificationRequired)
      Parameters:
      serverProperty - server property
      credentialRecord - credential record
      allowCredentials - allowed credentialId list. If all credentialId(s) are allowed, pass null
      userVerificationRequired - true if user verification is required. Otherwise, false
    • AuthenticationParameters

      @Deprecated public AuthenticationParameters(@NotNull @NotNull ServerProperty serverProperty, @NotNull @NotNull Authenticator authenticator, @Nullable @Nullable List<byte[]> allowCredentials, boolean userVerificationRequired, boolean userPresenceRequired)
      Deprecated.
      Deprecated as Authenticator is replaced with CredentialRecord AuthenticationParameters constructor
      Parameters:
      serverProperty - server property
      authenticator - authenticator
      allowCredentials - allowed credentialId list. If all credentialId(s) are allowed, pass null
      userVerificationRequired - true if user verification is required. Otherwise, false
      userPresenceRequired - true if user presence is required. Otherwise, false
    • AuthenticationParameters

      @Deprecated public AuthenticationParameters(@NotNull @NotNull ServerProperty serverProperty, @NotNull @NotNull Authenticator authenticator, @Nullable @Nullable List<byte[]> allowCredentials, boolean userVerificationRequired)
      Deprecated.
      Deprecated as Authenticator is replaced with CredentialRecord AuthenticationParameters constructor
      Parameters:
      serverProperty - server property
      authenticator - authenticator
      allowCredentials - allowed credentialId list. If all credentialId(s) are allowed, pass null
      userVerificationRequired - true if user verification is required. Otherwise, false
    • AuthenticationParameters

      @Deprecated public AuthenticationParameters(@NotNull @NotNull ServerProperty serverProperty, @NotNull @NotNull Authenticator authenticator, boolean userVerificationRequired, boolean userPresenceRequired)
      Deprecated.
      Deprecated as allowCredentials verification was introduced from WebAuthn Level2.
    • AuthenticationParameters

      @Deprecated public AuthenticationParameters(@NotNull @NotNull ServerProperty serverProperty, @NotNull @NotNull Authenticator authenticator, boolean userVerificationRequired)
      Deprecated.
      Deprecated as allowCredentials verification was introduced from WebAuthn Level2.
  • Method Details