java.lang.Object
com.webauthn4j.data.CoreAuthenticationData
com.webauthn4j.data.AuthenticationData
WebAuthn authentication data
-
Constructor Summary
ConstructorsConstructorDescriptionAuthenticationData(@org.jetbrains.annotations.Nullable byte[] credentialId, @org.jetbrains.annotations.Nullable byte[] userHandle, @Nullable AuthenticatorData<AuthenticationExtensionAuthenticatorOutput> authenticatorData, @org.jetbrains.annotations.Nullable byte[] authenticatorDataBytes, @Nullable CollectedClientData collectedClientData, @org.jetbrains.annotations.Nullable byte[] collectedClientDataBytes, @Nullable AuthenticationExtensionsClientOutputs<AuthenticationExtensionClientOutput> clientExtensions, @org.jetbrains.annotations.Nullable byte[] signature) AuthenticationDataconstructor -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns the client extensions@Nullable CollectedClientDataReturns the collected client data@org.jetbrains.annotations.Nullable byte[]Returns the raw collected client data bytes@org.jetbrains.annotations.Nullable byte[]Returns the user handleinthashCode()toString()Methods inherited from class com.webauthn4j.data.CoreAuthenticationData
getAuthenticatorData, getAuthenticatorDataBytes, getClientDataHash, getCredentialId, getSignature
-
Constructor Details
-
AuthenticationData
public AuthenticationData(@Nullable @org.jetbrains.annotations.Nullable byte[] credentialId, @Nullable @org.jetbrains.annotations.Nullable byte[] userHandle, @Nullable @Nullable AuthenticatorData<AuthenticationExtensionAuthenticatorOutput> authenticatorData, @Nullable @org.jetbrains.annotations.Nullable byte[] authenticatorDataBytes, @Nullable @Nullable CollectedClientData collectedClientData, @Nullable @org.jetbrains.annotations.Nullable byte[] collectedClientDataBytes, @Nullable @Nullable AuthenticationExtensionsClientOutputs<AuthenticationExtensionClientOutput> clientExtensions, @Nullable @org.jetbrains.annotations.Nullable byte[] signature) AuthenticationDataconstructor- Parameters:
credentialId- credential iduserHandle- user handleauthenticatorData- authenticator dataauthenticatorDataBytes- raw authenticator data bytescollectedClientData- collected client datacollectedClientDataBytes- raw collected client data bytesclientExtensions- client extensionssignature- signature
-
-
Method Details
-
getUserHandle
@Nullable public @org.jetbrains.annotations.Nullable byte[] getUserHandle()Returns the user handle- Returns:
- the user handle
-
getCollectedClientData
Returns the collected client data- Returns:
- the collected client data
-
getCollectedClientDataBytes
@Nullable public @org.jetbrains.annotations.Nullable byte[] getCollectedClientDataBytes()Returns the raw collected client data bytes- Returns:
- the raw collected client data bytes
-
getClientExtensions
@Nullable public @Nullable AuthenticationExtensionsClientOutputs<AuthenticationExtensionClientOutput> getClientExtensions()Returns the client extensions- Returns:
- the client extensions
-
equals
- Overrides:
equalsin classCoreAuthenticationData
-
hashCode
public int hashCode()- Overrides:
hashCodein classCoreAuthenticationData
-
toString
- Overrides:
toStringin classCoreAuthenticationData
-