类 FidoAuthenticationCallback
- java.lang.Object
-
- com.mysql.cj.callback.FidoAuthenticationCallback
-
- 所有已实现的接口:
MysqlCallback
public class FidoAuthenticationCallback extends Object implements MysqlCallback
The callback object used by the authentication plugin AuthenticationFidoClient to exchange authenticator data between the driver and the client application. Applications must implement a MysqlCallbackHandler to manage the interaction with authenticator devices and provide the data required to proceed with FIDO authentication. Such handler receives an instance of this class, which must then be used to obtain the data to send to the device and to submit the produced authenticator data and signature into the driver.
-
-
构造器概要
构造器 构造器 说明 FidoAuthenticationCallback(byte[] scramble, String relyingPartyId, byte[] credentialId)Instances of this object are used to exchange FIDO data between the client application and the driver and is responsible for managing all the interactions with the FIDO authenticator devices.
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 byte[]getAuthenticatorData()Returns the FIDO Authenticator Data produced by the authenticator interaction.byte[]getCredentialId()Returns the FIDO Credential ID for the coming authenticator interaction.StringgetRelyingPartyId()Returns the FIDO Relying Party ID for the coming authenticator interaction.byte[]getScramble()Returns the FIDO Client Data Hash (scramble) for the coming authenticator interaction.byte[]getSignature()Returns the FIDO Signature produced by the authenticator interactionvoidsetAuthenticatorData(byte[] authenticatorData)Sets the FIDO Authenticator Data produced by the authenticator interaction.voidsetSignature(byte[] signature)Sets the FIDO Signature produced by the authenticator interaction.
-
-
-
构造器详细资料
-
FidoAuthenticationCallback
public FidoAuthenticationCallback(byte[] scramble, String relyingPartyId, byte[] credentialId)Instances of this object are used to exchange FIDO data between the client application and the driver and is responsible for managing all the interactions with the FIDO authenticator devices.- 参数:
scramble-relyingPartyId-credentialId-
-
-
方法详细资料
-
getScramble
public byte[] getScramble()
Returns the FIDO Client Data Hash (scramble) for the coming authenticator interaction.- 返回:
- the scramble
-
getRelyingPartyId
public String getRelyingPartyId()
Returns the FIDO Relying Party ID for the coming authenticator interaction.- 返回:
- the relying party id
-
getCredentialId
public byte[] getCredentialId()
Returns the FIDO Credential ID for the coming authenticator interaction.- 返回:
- the credential id
-
setAuthenticatorData
public void setAuthenticatorData(byte[] authenticatorData)
Sets the FIDO Authenticator Data produced by the authenticator interaction.- 参数:
authenticatorData- the authenticator data
-
getAuthenticatorData
public byte[] getAuthenticatorData()
Returns the FIDO Authenticator Data produced by the authenticator interaction.- 返回:
- the authenticator data
-
setSignature
public void setSignature(byte[] signature)
Sets the FIDO Signature produced by the authenticator interaction.- 参数:
signature- the signature
-
getSignature
public byte[] getSignature()
Returns the FIDO Signature produced by the authenticator interaction- 返回:
- the signature
-
-