Package com.webauthn4j.data
Class AuthenticatorAttestationResponse
java.lang.Object
com.webauthn4j.data.AuthenticatorResponse
com.webauthn4j.data.AuthenticatorAttestationResponse
- All Implemented Interfaces:
Serializable
The
AuthenticatorAttestationResponse represents the authenticator's response to a client’s request
for the creation of a new public key credential.-
Constructor Summary
ConstructorsConstructorDescriptionAuthenticatorAttestationResponse(@org.checkerframework.checker.nullness.qual.NonNull byte[] clientDataJSON, @org.checkerframework.checker.nullness.qual.NonNull byte[] attestationObject) AuthenticatorAttestationResponse(@org.checkerframework.checker.nullness.qual.NonNull byte[] clientDataJSON, @org.checkerframework.checker.nullness.qual.NonNull byte[] attestationObject, @Nullable Set<AuthenticatorTransport> transports) -
Method Summary
Modifier and TypeMethodDescriptionboolean@org.checkerframework.checker.nullness.qual.NonNull byte[]Returns an attestation object, which is opaque to, and cryptographically protected against tampering by, the client.@NonNull Set<AuthenticatorTransport>Returns a sequence of zero or more uniqueAuthenticatorTransportvalues in lexicographical order.inthashCode()toString()Methods inherited from class com.webauthn4j.data.AuthenticatorResponse
getClientDataJSON
-
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
Returns a sequence of zero or more uniqueAuthenticatorTransportvalues 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
-
hashCode
public int hashCode() -
toString
- Overrides:
toStringin classAuthenticatorResponse
-