java.lang.Object
com.webauthn4j.data.CoreAuthenticationData
- Direct Known Subclasses:
AuthenticationData
Core authentication data
This class is a subset of
AuthenticationData containing only the core authentication data fields-
Constructor Summary
ConstructorsConstructorDescriptionCoreAuthenticationData(@org.jetbrains.annotations.Nullable byte[] credentialId, @Nullable AuthenticatorData<AuthenticationExtensionAuthenticatorOutput> authenticatorData, @org.jetbrains.annotations.Nullable byte[] authenticatorDataBytes, @org.jetbrains.annotations.Nullable byte[] clientDataHash, @org.jetbrains.annotations.Nullable byte[] signature) CoreAuthenticationDataconstructor -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns the authenticator data@org.jetbrains.annotations.Nullable byte[]Returns the raw authenticator data bytes@org.jetbrains.annotations.Nullable byte[]Returns the hash of the client data@org.jetbrains.annotations.Nullable byte[]Returns the credential id@org.jetbrains.annotations.Nullable byte[]Returns the signatureinthashCode()toString()
-
Constructor Details
-
CoreAuthenticationData
public CoreAuthenticationData(@Nullable @org.jetbrains.annotations.Nullable byte[] credentialId, @Nullable @Nullable AuthenticatorData<AuthenticationExtensionAuthenticatorOutput> authenticatorData, @Nullable @org.jetbrains.annotations.Nullable byte[] authenticatorDataBytes, @Nullable @org.jetbrains.annotations.Nullable byte[] clientDataHash, @Nullable @org.jetbrains.annotations.Nullable byte[] signature) CoreAuthenticationDataconstructor- Parameters:
credentialId- credential idauthenticatorData- authenticator dataauthenticatorDataBytes- raw authenticator data bytesclientDataHash- hash of the client datasignature- signature
-
-
Method Details
-
getCredentialId
@Nullable public @org.jetbrains.annotations.Nullable byte[] getCredentialId()Returns the credential id- Returns:
- the credential id
-
getAuthenticatorData
@Nullable public @Nullable AuthenticatorData<AuthenticationExtensionAuthenticatorOutput> getAuthenticatorData()Returns the authenticator data- Returns:
- the authenticator data
-
getAuthenticatorDataBytes
@Nullable public @org.jetbrains.annotations.Nullable byte[] getAuthenticatorDataBytes()Returns the raw authenticator data bytes- Returns:
- the raw authenticator data bytes
-
getClientDataHash
@Nullable public @org.jetbrains.annotations.Nullable byte[] getClientDataHash()Returns the hash of the client data- Returns:
- the hash of the client data
-
getSignature
@Nullable public @org.jetbrains.annotations.Nullable byte[] getSignature()Returns the signature- Returns:
- the signature
-
equals
-
hashCode
public int hashCode() -
toString
-