Class AuthenticatorAttestationResponse

java.lang.Object
com.webauthn4j.data.AuthenticatorResponse
com.webauthn4j.data.AuthenticatorAttestationResponse
All Implemented Interfaces:
Serializable

public class AuthenticatorAttestationResponse extends AuthenticatorResponse
The AuthenticatorAttestationResponse represents the authenticator's response to a client’s request for the creation of a new public key credential.
See Also:
  • Constructor Details

    • AuthenticatorAttestationResponse

      public AuthenticatorAttestationResponse(@org.checkerframework.checker.nullness.qual.NonNull byte[] clientDataJSON, @org.checkerframework.checker.nullness.qual.NonNull byte[] attestationObject)
    • AuthenticatorAttestationResponse

      public AuthenticatorAttestationResponse(@org.checkerframework.checker.nullness.qual.NonNull byte[] clientDataJSON, @org.checkerframework.checker.nullness.qual.NonNull byte[] attestationObject, @Nullable Set<AuthenticatorTransport> transports)
  • Method Details

    • getAttestationObject

      public @org.checkerframework.checker.nullness.qual.NonNull byte[] getAttestationObject()
      Returns an attestation object, which is opaque to, and cryptographically protected against tampering by, the client.
      Returns:
      byte array representation of AttestationObject
    • getTransports

      public @NonNull Set<AuthenticatorTransport> getTransports()
      Returns a sequence of zero or more unique AuthenticatorTransport values in lexicographical order. These values are the transports that the authenticator is believed to support, or an empty sequence if the information is unavailable.
      Returns:
      list of AuthenticatorTransport
    • equals

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