Class AuthenticationData

java.lang.Object
com.webauthn4j.data.CoreAuthenticationData
com.webauthn4j.data.AuthenticationData

public class AuthenticationData extends CoreAuthenticationData
WebAuthn authentication data
  • Constructor Details

    • AuthenticationData

      public AuthenticationData(@Nullable @org.jetbrains.annotations.Nullable byte[] credentialId, @Nullable @org.jetbrains.annotations.Nullable byte[] userHandle, @Nullable @Nullable AuthenticatorData<AuthenticationExtensionAuthenticatorOutput> authenticatorData, @Nullable @org.jetbrains.annotations.Nullable byte[] authenticatorDataBytes, @Nullable @Nullable CollectedClientData collectedClientData, @Nullable @org.jetbrains.annotations.Nullable byte[] collectedClientDataBytes, @Nullable @Nullable AuthenticationExtensionsClientOutputs<AuthenticationExtensionClientOutput> clientExtensions, @Nullable @org.jetbrains.annotations.Nullable byte[] signature)
      AuthenticationData constructor
      Parameters:
      credentialId - credential id
      userHandle - user handle
      authenticatorData - authenticator data
      authenticatorDataBytes - raw authenticator data bytes
      collectedClientData - collected client data
      collectedClientDataBytes - raw collected client data bytes
      clientExtensions - client extensions
      signature - signature
  • Method Details

    • getUserHandle

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

      @Nullable public @Nullable CollectedClientData getCollectedClientData()
      Returns the collected client data
      Returns:
      the collected client data
    • getCollectedClientDataBytes

      @Nullable public @org.jetbrains.annotations.Nullable byte[] getCollectedClientDataBytes()
      Returns the raw collected client data bytes
      Returns:
      the raw collected client data bytes
    • getClientExtensions

      @Nullable public @Nullable AuthenticationExtensionsClientOutputs<AuthenticationExtensionClientOutput> getClientExtensions()
      Returns the client extensions
      Returns:
      the client extensions
    • equals

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

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

      public String toString()
      Overrides:
      toString in class CoreAuthenticationData