目录

AuthenticatorAssertionResponse

Class Info

public class AuthenticatorAssertionResponse

通过Fido2AuthenticationResponse的getAuthenticatorAssertionResponse()方法获得认证结果。

Public Method Summary

Qualifier and Type

Method Name and Description

public byte[]

getClientDataJson()

获取ClientData JSON数据。

public byte[]

getAuthenticatorData()

获取认证器返回的验证信息,直接返回服务器。

public byte[]

getSignature()

获取认证器最终的签名。

public byte[]

getCredentialId()

获取密钥id,服务器、client做密钥标识用。

public String

toJson()

将AuthenticatorAssertionResponse转换为JSON格式。

Public Methods

[h2]getClientDataJson

Method

byte[] getClientDataJson()

获取Client端返回的信息,直接传递服务器。

Returns

Type

Description

byte[]

Client端返回的信息,直接传递服务器。

[h2]getAuthenticatorData

Method

public byte[] getAuthenticatorData()

获取认证器返回的验证信息,直接返回服务器。

Returns

Type

Description

byte[]

认证器返回的验证信息,直接返回服务器。

[h2]getSignature

Method

public byte[] getSignature()

获取认证器最终的签名。

Returns

Type

Description

byte[]

认证器最终的签名。

[h2]getCredentialId

Method

public byte[] getCredentialId()

获取密钥id,服务器、client做密钥标识用。

Returns

Type

Description

byte[]

密钥id,服务器、client做密钥标识用。

[h2]toJson

Method

public String toJson()

将AuthenticatorAssertionResponse转换为JSON格式。

Returns

Type

Description

String

AuthenticatorAssertionResponse格式化为JSON字符串。