java.lang.Object
com.webauthn4j.data.AuthenticationRequest
Data class that represents WebAuthn authentication request data
-
Constructor Summary
ConstructorsConstructorDescriptionAuthenticationRequest(@org.jetbrains.annotations.Nullable byte[] credentialId, @org.jetbrains.annotations.Nullable byte[] authenticatorData, @org.jetbrains.annotations.Nullable byte[] clientDataJSON, @org.jetbrains.annotations.Nullable byte[] signature) ConstructorAuthenticationRequest(@org.jetbrains.annotations.Nullable byte[] credentialId, @org.jetbrains.annotations.Nullable byte[] userHandle, @org.jetbrains.annotations.Nullable byte[] authenticatorData, @org.jetbrains.annotations.Nullable byte[] clientDataJSON, @org.jetbrains.annotations.Nullable byte[] signature) ConstructorAuthenticationRequest(@org.jetbrains.annotations.Nullable byte[] credentialId, @org.jetbrains.annotations.Nullable byte[] userHandle, @org.jetbrains.annotations.Nullable byte[] authenticatorData, @org.jetbrains.annotations.Nullable byte[] clientDataJSON, @Nullable String clientExtensionsJSON, @org.jetbrains.annotations.Nullable byte[] signature) ConstructorAuthenticationRequest(@org.jetbrains.annotations.Nullable byte[] credentialId, @org.jetbrains.annotations.Nullable byte[] authenticatorData, @org.jetbrains.annotations.Nullable byte[] clientDataJSON, @Nullable String clientExtensionsJSON, @org.jetbrains.annotations.Nullable byte[] signature) Constructor -
Method Summary
Modifier and TypeMethodDescriptionboolean@org.jetbrains.annotations.Nullable byte[]Returns the authenticator data@org.jetbrains.annotations.Nullable byte[]Returns the ClientDataJSON@Nullable StringReturns the ClientExtensionJSON@org.jetbrains.annotations.Nullable byte[]Returns the credential id@org.jetbrains.annotations.Nullable byte[]Returns the signature@org.jetbrains.annotations.Nullable byte[]Returns the user handleinthashCode()toString()
-
Constructor Details
-
AuthenticationRequest
public AuthenticationRequest(@Nullable @org.jetbrains.annotations.Nullable byte[] credentialId, @Nullable @org.jetbrains.annotations.Nullable byte[] userHandle, @Nullable @org.jetbrains.annotations.Nullable byte[] authenticatorData, @Nullable @org.jetbrains.annotations.Nullable byte[] clientDataJSON, @Nullable @Nullable String clientExtensionsJSON, @Nullable @org.jetbrains.annotations.Nullable byte[] signature) Constructor- Parameters:
credentialId- credential iduserHandle- user handleauthenticatorData- authenticator dataclientDataJSON- ClientDataJSONclientExtensionsJSON- ClientExtensionJSONsignature- signature
-
AuthenticationRequest
public AuthenticationRequest(@Nullable @org.jetbrains.annotations.Nullable byte[] credentialId, @Nullable @org.jetbrains.annotations.Nullable byte[] authenticatorData, @Nullable @org.jetbrains.annotations.Nullable byte[] clientDataJSON, @Nullable @Nullable String clientExtensionsJSON, @Nullable @org.jetbrains.annotations.Nullable byte[] signature) Constructor- Parameters:
credentialId- credential idauthenticatorData- authenticator dataclientDataJSON- ClientDataJSONclientExtensionsJSON- ClientExtensionJSONsignature- signature
-
AuthenticationRequest
public AuthenticationRequest(@Nullable @org.jetbrains.annotations.Nullable byte[] credentialId, @Nullable @org.jetbrains.annotations.Nullable byte[] userHandle, @Nullable @org.jetbrains.annotations.Nullable byte[] authenticatorData, @Nullable @org.jetbrains.annotations.Nullable byte[] clientDataJSON, @Nullable @org.jetbrains.annotations.Nullable byte[] signature) Constructor- Parameters:
credentialId- credential iduserHandle- user handleauthenticatorData- authenticator dataclientDataJSON- ClientDataJSONsignature- signature
-
AuthenticationRequest
public AuthenticationRequest(@Nullable @org.jetbrains.annotations.Nullable byte[] credentialId, @Nullable @org.jetbrains.annotations.Nullable byte[] authenticatorData, @Nullable @org.jetbrains.annotations.Nullable byte[] clientDataJSON, @Nullable @org.jetbrains.annotations.Nullable byte[] signature) Constructor- Parameters:
credentialId- credential idauthenticatorData- authenticator dataclientDataJSON- ClientDataJSONsignature- signature
-
-
Method Details
-
getCredentialId
@Nullable public @org.jetbrains.annotations.Nullable byte[] getCredentialId()Returns the credential id- Returns:
- the credential id
-
getUserHandle
@Nullable public @org.jetbrains.annotations.Nullable byte[] getUserHandle()Returns the user handle- Returns:
- the user handle
-
getAuthenticatorData
@Nullable public @org.jetbrains.annotations.Nullable byte[] getAuthenticatorData()Returns the authenticator data- Returns:
- the authenticator data
-
getClientDataJSON
@Nullable public @org.jetbrains.annotations.Nullable byte[] getClientDataJSON()Returns the ClientDataJSON- Returns:
- the ClientDataJSON
-
getClientExtensionsJSON
Returns the ClientExtensionJSON- Returns:
- the ClientExtensionJSON
-
getSignature
@Nullable public @org.jetbrains.annotations.Nullable byte[] getSignature()Returns the signature- Returns:
- the signature
-
equals
-
hashCode
public int hashCode() -
toString
-