Class AuthenticatorAttestationResponse

java.lang.Object
com.webauthn4j.data.AuthenticatorResponse
com.webauthn4j.data.AuthenticatorAttestationResponse

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(@NotNull @org.jetbrains.annotations.NotNull byte[] clientDataJSON, @NotNull @org.jetbrains.annotations.NotNull byte[] attestationObject)
    • AuthenticatorAttestationResponse

      public AuthenticatorAttestationResponse(@NotNull @org.jetbrains.annotations.NotNull byte[] clientDataJSON, @NotNull @org.jetbrains.annotations.NotNull byte[] attestationObject, @Nullable @Nullable Set<AuthenticatorTransport> transports)
  • Method Details

    • getAttestationObject

      @NotNull public @org.jetbrains.annotations.NotNull 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

      @NotNull public @NotNull 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
    • getAuthenticatorData

      @NotNull public @org.jetbrains.annotations.NotNull byte[] getAuthenticatorData(ObjectConverter objectConverter)
    • getAuthenticatorData

      @NotNull public @org.jetbrains.annotations.NotNull byte[] getAuthenticatorData()
    • getPublicKey

      @Nullable public @org.jetbrains.annotations.Nullable byte[] getPublicKey(ObjectConverter objectConverter)
    • getPublicKey

      @Nullable public @org.jetbrains.annotations.Nullable byte[] getPublicKey()
    • getPublicKeyAlgorithm

      @Nullable public @Nullable COSEAlgorithmIdentifier getPublicKeyAlgorithm(ObjectConverter objectConverter)
    • getPublicKeyAlgorithm

      @Nullable public @Nullable COSEAlgorithmIdentifier getPublicKeyAlgorithm()
    • 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 AuthenticatorResponse