java.lang.Object
com.webauthn4j.data.AuthenticatorResponse
com.webauthn4j.data.AuthenticatorAttestationResponse
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.jetbrains.annotations.NotNull byte[] clientDataJSON, @org.jetbrains.annotations.NotNull byte[] attestationObject) AuthenticatorAttestationResponse(@org.jetbrains.annotations.NotNull byte[] clientDataJSON, @org.jetbrains.annotations.NotNull byte[] attestationObject, @Nullable Set<AuthenticatorTransport> transports) -
Method Summary
Modifier and TypeMethodDescriptionboolean@org.jetbrains.annotations.NotNull byte[]Returns an attestation object, which is opaque to, and cryptographically protected against tampering by, the client.@org.jetbrains.annotations.NotNull byte[]@org.jetbrains.annotations.NotNull byte[]getAuthenticatorData(ObjectConverter objectConverter) @org.jetbrains.annotations.Nullable byte[]@org.jetbrains.annotations.Nullable byte[]getPublicKey(ObjectConverter objectConverter) @Nullable COSEAlgorithmIdentifier@Nullable COSEAlgorithmIdentifiergetPublicKeyAlgorithm(ObjectConverter objectConverter) @NotNull 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(@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
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
-
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
-
equals
-
hashCode
public int hashCode() -
toString
- Overrides:
toStringin classAuthenticatorResponse
-