@Test public void isWebAuthnAuthenticated_test(){ WebAuthnSecurityExpression target = new WebAuthnSecurityExpression(); assertThat(target.isWebAuthnAuthenticated(null)).isFalse(); assertThat(target.isWebAuthnAuthenticated(new WebAuthnAuthenticationToken(null, null, null))).isTrue(); assertThat(target.isWebAuthnAuthenticated(new AnonymousAuthenticationToken("dummy", "dummy", Collections.singletonList(new SimpleGrantedAuthority("dummy"))))).isFalse(); }
public boolean isWebAuthnAuthenticated(Authentication authentication) { if (authentication == null) { return false; } else { return WebAuthnAuthenticationToken.class.isAssignableFrom(authentication.getClass()); } }
WebAuthnSecurityExpression { public boolean isWebAuthnAuthenticated(Authentication authentication) { if (authentication == null) { return false; } else { return WebAuthnAuthenticationToken.class.isAssignableFrom(authentication.getClass()); } } }
WebAuthnSecurityExpression { public boolean isWebAuthnAuthenticated(Authentication authentication) { if (authentication == null) { return false; } else { return WebAuthnAuthenticationToken.class.isAssignableFrom(authentication.getClass()); } }  }
WebAuthnSecurityExpression { public boolean isWebAuthnAuthenticated(Authentication authentication) { if (authentication == null) { return false; } else { return WebAuthnAuthenticationToken.class.isAssignableFrom(authentication.getClass()); } }  boolean isWebAuthnAuthenticated(Authentication authentication); }
WebAuthnSecurityExpression { public boolean isWebAuthnAuthenticated(Authentication authentication) { if (authentication == null) { return false; } else { return WebAuthnAuthenticationToken.class.isAssignableFrom(authentication.getClass()); } }  boolean isWebAuthnAuthenticated(Authentication authentication);  }