Class CoreAuthenticationParameters

java.lang.Object
com.webauthn4j.data.CoreAuthenticationParameters
Direct Known Subclasses:
AuthenticationParameters

public class CoreAuthenticationParameters extends Object
  • Constructor Details

    • CoreAuthenticationParameters

      public CoreAuthenticationParameters(@NotNull @NotNull CoreServerProperty serverProperty, @NotNull @NotNull CoreCredentialRecord coreCredentialRecord, @Nullable @Nullable List<byte[]> allowCredentials, boolean userVerificationRequired, boolean userPresenceRequired)
      Parameters:
      serverProperty - server property
      coreCredentialRecord - core 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
    • CoreAuthenticationParameters

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

      @Deprecated public CoreAuthenticationParameters(@NotNull @NotNull CoreServerProperty serverProperty, @NotNull @NotNull CoreAuthenticator authenticator, @Nullable @Nullable List<byte[]> allowCredentials, boolean userVerificationRequired, boolean userPresenceRequired)
      Deprecated.
      Deprecated as CoreAuthenticator is replaced with CoreCredentialRecord CoreAuthenticationParameters 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
    • CoreAuthenticationParameters

      @Deprecated public CoreAuthenticationParameters(@NotNull @NotNull CoreServerProperty serverProperty, @NotNull @NotNull CoreAuthenticator authenticator, @Nullable @Nullable List<byte[]> allowCredentials, boolean userVerificationRequired)
      Deprecated.
      Deprecated as CoreAuthenticator is replaced with CoreCredentialRecord CoreAuthenticationParameters 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
    • CoreAuthenticationParameters

      @Deprecated public CoreAuthenticationParameters(@NotNull @NotNull CoreServerProperty serverProperty, @NotNull @NotNull CoreAuthenticator authenticator, boolean userVerificationRequired, boolean userPresenceRequired)
      Deprecated.
      Deprecated as pubKeyCredParams verification was introduced from WebAuthn Level2.
    • CoreAuthenticationParameters

      @Deprecated public CoreAuthenticationParameters(@NotNull @NotNull CoreServerProperty serverProperty, @NotNull @NotNull CoreAuthenticator authenticator, boolean userVerificationRequired)
      Deprecated.
      Deprecated as pubKeyCredParams verification was introduced from WebAuthn Level2.
  • Method Details

    • getServerProperty

      @NotNull public @NotNull CoreServerProperty getServerProperty()
    • getAuthenticator

      @NotNull public @NotNull CoreAuthenticator getAuthenticator()
    • getAllowCredentials

      @Nullable public @Nullable List<byte[]> getAllowCredentials()
    • isUserVerificationRequired

      public boolean isUserVerificationRequired()
    • isUserPresenceRequired

      public boolean isUserPresenceRequired()
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object