Class CoreAuthenticationData

java.lang.Object
com.webauthn4j.data.CoreAuthenticationData
Direct Known Subclasses:
AuthenticationData

public class CoreAuthenticationData extends Object
Core authentication data This class is a subset of AuthenticationData containing only the core authentication data fields
  • Constructor Details

    • CoreAuthenticationData

      public CoreAuthenticationData(@Nullable @org.jetbrains.annotations.Nullable byte[] credentialId, @Nullable @Nullable AuthenticatorData<AuthenticationExtensionAuthenticatorOutput> authenticatorData, @Nullable @org.jetbrains.annotations.Nullable byte[] authenticatorDataBytes, @Nullable @org.jetbrains.annotations.Nullable byte[] clientDataHash, @Nullable @org.jetbrains.annotations.Nullable byte[] signature)
      Parameters:
      credentialId - credential id
      authenticatorData - authenticator data
      authenticatorDataBytes - raw authenticator data bytes
      clientDataHash - hash of the client data
      signature - signature
  • Method Details

    • getCredentialId

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

      @Nullable public @Nullable AuthenticatorData<AuthenticationExtensionAuthenticatorOutput> getAuthenticatorData()
      Returns the authenticator data
      Returns:
      the authenticator data
    • getAuthenticatorDataBytes

      @Nullable public @org.jetbrains.annotations.Nullable byte[] getAuthenticatorDataBytes()
      Returns the raw authenticator data bytes
      Returns:
      the raw authenticator data bytes
    • getClientDataHash

      @Nullable public @org.jetbrains.annotations.Nullable byte[] getClientDataHash()
      Returns the hash of the client data
      Returns:
      the hash of the client data
    • 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