Class AuthenticationRequest

java.lang.Object
com.webauthn4j.data.AuthenticationRequest

public class AuthenticationRequest extends Object
Data class that represents WebAuthn authentication request data
  • Constructor Summary

    Constructors
    Constructor
    Description
    AuthenticationRequest(@org.jetbrains.annotations.Nullable byte[] credentialId, @org.jetbrains.annotations.Nullable byte[] authenticatorData, @org.jetbrains.annotations.Nullable byte[] clientDataJSON, @org.jetbrains.annotations.Nullable byte[] signature)
    Constructor
    AuthenticationRequest(@org.jetbrains.annotations.Nullable byte[] credentialId, @org.jetbrains.annotations.Nullable byte[] userHandle, @org.jetbrains.annotations.Nullable byte[] authenticatorData, @org.jetbrains.annotations.Nullable byte[] clientDataJSON, @org.jetbrains.annotations.Nullable byte[] signature)
    Constructor
    AuthenticationRequest(@org.jetbrains.annotations.Nullable byte[] credentialId, @org.jetbrains.annotations.Nullable byte[] userHandle, @org.jetbrains.annotations.Nullable byte[] authenticatorData, @org.jetbrains.annotations.Nullable byte[] clientDataJSON, @Nullable String clientExtensionsJSON, @org.jetbrains.annotations.Nullable byte[] signature)
    Constructor
    AuthenticationRequest(@org.jetbrains.annotations.Nullable byte[] credentialId, @org.jetbrains.annotations.Nullable byte[] authenticatorData, @org.jetbrains.annotations.Nullable byte[] clientDataJSON, @Nullable String clientExtensionsJSON, @org.jetbrains.annotations.Nullable byte[] signature)
    Constructor
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    equals(@Nullable Object o)
     
    @org.jetbrains.annotations.Nullable byte[]
    Returns the authenticator data
    @org.jetbrains.annotations.Nullable byte[]
    Returns the ClientDataJSON
    @Nullable String
    Returns the ClientExtensionJSON
    @org.jetbrains.annotations.Nullable byte[]
    Returns the credential id
    @org.jetbrains.annotations.Nullable byte[]
    Returns the signature
    @org.jetbrains.annotations.Nullable byte[]
    Returns the user handle
    int
     
     

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • AuthenticationRequest

      public AuthenticationRequest(@Nullable @org.jetbrains.annotations.Nullable byte[] credentialId, @Nullable @org.jetbrains.annotations.Nullable byte[] userHandle, @Nullable @org.jetbrains.annotations.Nullable byte[] authenticatorData, @Nullable @org.jetbrains.annotations.Nullable byte[] clientDataJSON, @Nullable @Nullable String clientExtensionsJSON, @Nullable @org.jetbrains.annotations.Nullable byte[] signature)
      Constructor
      Parameters:
      credentialId - credential id
      userHandle - user handle
      authenticatorData - authenticator data
      clientDataJSON - ClientDataJSON
      clientExtensionsJSON - ClientExtensionJSON
      signature - signature
    • AuthenticationRequest

      public AuthenticationRequest(@Nullable @org.jetbrains.annotations.Nullable byte[] credentialId, @Nullable @org.jetbrains.annotations.Nullable byte[] authenticatorData, @Nullable @org.jetbrains.annotations.Nullable byte[] clientDataJSON, @Nullable @Nullable String clientExtensionsJSON, @Nullable @org.jetbrains.annotations.Nullable byte[] signature)
      Constructor
      Parameters:
      credentialId - credential id
      authenticatorData - authenticator data
      clientDataJSON - ClientDataJSON
      clientExtensionsJSON - ClientExtensionJSON
      signature - signature
    • AuthenticationRequest

      public AuthenticationRequest(@Nullable @org.jetbrains.annotations.Nullable byte[] credentialId, @Nullable @org.jetbrains.annotations.Nullable byte[] userHandle, @Nullable @org.jetbrains.annotations.Nullable byte[] authenticatorData, @Nullable @org.jetbrains.annotations.Nullable byte[] clientDataJSON, @Nullable @org.jetbrains.annotations.Nullable byte[] signature)
      Constructor
      Parameters:
      credentialId - credential id
      userHandle - user handle
      authenticatorData - authenticator data
      clientDataJSON - ClientDataJSON
      signature - signature
    • AuthenticationRequest

      public AuthenticationRequest(@Nullable @org.jetbrains.annotations.Nullable byte[] credentialId, @Nullable @org.jetbrains.annotations.Nullable byte[] authenticatorData, @Nullable @org.jetbrains.annotations.Nullable byte[] clientDataJSON, @Nullable @org.jetbrains.annotations.Nullable byte[] signature)
      Constructor
      Parameters:
      credentialId - credential id
      authenticatorData - authenticator data
      clientDataJSON - ClientDataJSON
      signature - signature
  • Method Details

    • getCredentialId

      @Nullable public @org.jetbrains.annotations.Nullable byte[] getCredentialId()
      Returns the credential id
      Returns:
      the credential id
    • getUserHandle

      @Nullable public @org.jetbrains.annotations.Nullable byte[] getUserHandle()
      Returns the user handle
      Returns:
      the user handle
    • getAuthenticatorData

      @Nullable public @org.jetbrains.annotations.Nullable byte[] getAuthenticatorData()
      Returns the authenticator data
      Returns:
      the authenticator data
    • getClientDataJSON

      @Nullable public @org.jetbrains.annotations.Nullable byte[] getClientDataJSON()
      Returns the ClientDataJSON
      Returns:
      the ClientDataJSON
    • getClientExtensionsJSON

      @Nullable public @Nullable String getClientExtensionsJSON()
      Returns the ClientExtensionJSON
      Returns:
      the ClientExtensionJSON
    • getSignature

      @Nullable public @org.jetbrains.annotations.Nullable byte[] getSignature()
      Returns the signature
      Returns:
      the signature
    • equals

      public boolean equals(@Nullable @Nullable 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