Class CoreAuthenticationParameters

java.lang.Object
com.webauthn4j.data.CoreAuthenticationParameters
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
AuthenticationParameters

public class CoreAuthenticationParameters extends Object implements Serializable
See Also:
  • Constructor Details

    • CoreAuthenticationParameters

      public CoreAuthenticationParameters(@NonNull CoreServerProperty serverProperty, @NonNull CoreAuthenticator authenticator, @Nullable List<byte[]> allowCredentials, boolean userVerificationRequired, boolean userPresenceRequired)
      Parameters:
      serverProperty - server property
      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(@NonNull CoreServerProperty serverProperty, @NonNull CoreAuthenticator authenticator, @Nullable List<byte[]> allowCredentials, boolean userVerificationRequired)
      Parameters:
      serverProperty - server property
      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(@NonNull CoreServerProperty serverProperty, @NonNull CoreAuthenticator authenticator, boolean userVerificationRequired, boolean userPresenceRequired)
      Deprecated.
      Deprecated as pubKeyCredParams verification was introduced from WebAuthn Level2.
    • CoreAuthenticationParameters

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

    • getServerProperty

      public @NonNull CoreServerProperty getServerProperty()
    • getAuthenticator

      public @NonNull CoreAuthenticator getAuthenticator()
    • getAllowCredentials

      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