WebAuthnAuthenticationToken extends AbstractAuthenticationToken { public WebAuthnAuthenticationToken(Object principal, WebAuthnAuthenticationRequest credentials, Collection<? extends GrantedAuthority> authorities) { super(authorities); this.principal = principal; this.credentials = credentials; this.setAuthenticated(true); } WebAuthnAuthenticationToken(Object principal, WebAuthnAuthenticationRequest credentials, Collection<? extends GrantedAuthority> authorities); @Override Object getPrincipal(); @Override WebAuthnAuthenticationRequest getCredentials(); @Override boolean equals(Object o); @Override int hashCode();  }
@Test public void webAuthnAuthenticationToken() { WebAuthnAuthenticationToken webAuthnAuthenticationToken = new WebAuthnAuthenticationToken(null, null, null); assertThat(webAuthnAuthenticationToken.isAuthenticated()).isTrue(); }