Class Ctap2Session.AssertionData

java.lang.Object
com.yubico.yubikit.fido.ctap.Ctap2Session.AssertionData
Enclosing class:
Ctap2Session

public static class Ctap2Session.AssertionData extends Object
Data class holding the result of getAssertion.
  • Method Details

    • getUser

      @Nullable public Map<String,?> getUser()
      The user structure containing account information.
      Returns:
      the user structure for the assertion
    • getCredential

      @Nullable public Map<String,?> 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

      public byte[] getCredentialId(@Nullable List<PublicKeyCredentialDescriptor> allowCredentials)
      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