public class WebAuthnAuthenticationCallback extends Object implements MysqlCallback
| Modifier and Type | Field | Description |
|---|---|---|
private List<byte[]> |
authenticatorDataEntries |
|
private byte[] |
clientDataHash |
|
private byte[] |
credentialId |
|
private String |
relyingPartyId |
|
private List<byte[]> |
signatureEntries |
|
private boolean |
supportsCredentialManagement |
| Constructor | Description |
|---|---|
WebAuthnAuthenticationCallback(byte[] clientDataHash,
String relyingPartyId,
byte[] credentialId) |
Instances of this object are used to exchange FIDO data between the client application and the driver and are responsible for managing all the
interactions with the FIDO authenticator devices.
|
| Modifier and Type | Method | Description |
|---|---|---|
void |
addAuthenticatorData(byte[] authenticatorData) |
Adds a FIDO Authenticator Data produced by the authenticator interaction.
|
void |
addSignature(byte[] signature) |
Adds a FIDO Signature produced by the authenticator interaction.
|
int |
getAssertCount() |
Returns the number of assertions produced by the authenticator interaction
|
byte[] |
getAuthenticatorData(int idx) |
Returns one of FIDO Authenticator Data produced by the authenticator interaction.
|
byte[] |
getClientDataHash() |
Returns the FIDO Client Data Hash (an SHA-256 hash computed from the Client Data JSON) for the upcoming authenticator interaction.
|
byte[] |
getCredentialId() |
Returns the FIDO Credential Id for the upcoming authenticator interaction.
|
String |
getRelyingPartyId() |
Returns the FIDO Relying Party Id for the upcoming authenticator interaction.
|
byte[] |
getSignature(int idx) |
Returns one of the FIDO Signatures produced by the authenticator interaction
|
boolean |
getSupportsCredentialManagement() |
Returns whether this FIDO Authenticator device supports Credential Management.
|
void |
setSupportsCredentialManagement(boolean supportsCredMan) |
Sets whether this FIDO Authenticator device supports Credential Management.
|
private byte[] clientDataHash
private String relyingPartyId
private byte[] credentialId
private boolean supportsCredentialManagement
private List<byte[]> authenticatorDataEntries
private List<byte[]> signatureEntries
public WebAuthnAuthenticationCallback(byte[] clientDataHash,
String relyingPartyId,
byte[] credentialId)
clientDataHash - the client data hashrelyingPartyId - the relying party idcredentialId - the credential idpublic byte[] getClientDataHash()
public String getRelyingPartyId()
public byte[] getCredentialId()
public void setSupportsCredentialManagement(boolean supportsCredMan)
supportsCredMan - is credential management supported?public boolean getSupportsCredentialManagement()
public void addAuthenticatorData(byte[] authenticatorData)
authenticatorData - the authenticator datapublic byte[] getAuthenticatorData(int idx)
idx - the index of the Authenticator Data to returnpublic void addSignature(byte[] signature)
signature - the signaturepublic byte[] getSignature(int idx)
idx - the index of the Signature to returnpublic int getAssertCount()