Package com.yubico.yubikit.fido.ctap
Class Ctap2Session.AssertionData
java.lang.Object
com.yubico.yubikit.fido.ctap.Ctap2Session.AssertionData
- Enclosing class:
- Ctap2Session
Data class holding the result of getAssertion.
-
Method Summary
Modifier and TypeMethodDescriptionbyte[]
The AuthenticatorData object.The credential identifier whose private key was used to generate the assertion.byte[]
getCredentialId
(List<PublicKeyCredentialDescriptor> allowCredentials) Helper function for obtaining credential id for AssertionData with help of allowCredentials.byte[]
The assertion signature produced by the authenticatorgetUser()
The user structure containing account information.
-
Method Details
-
getUser
The user structure containing account information.- Returns:
- the user structure for the assertion
-
getCredential
The credential identifier whose private key was used to generate the assertion.- Returns:
- the credential descriptor for the assertion
-
getSignature
public byte[] getSignature()The assertion signature produced by the authenticator- Returns:
- the signature for the assertion
-
getAuthenticatorData
public byte[] getAuthenticatorData()The AuthenticatorData object.- Returns:
- the AuthenticatorData
- See Also:
-
getCredentialId
Helper function for obtaining credential id for AssertionData with help of allowCredentials.- Parameters:
allowCredentials
- list of allowed credentials which might help to get correct credential id- Returns:
- credentialId for assertion
- Throws:
RuntimeException
- if credential id could not be computed
-