use of com.yubico.webauthn.attestation.AttestationTrustSource in project java-webauthn-server by Yubico.
the class RelyingPartyTest method itHasTheseBuilderMethods.
@Test(expected = NullPointerException.class)
public void itHasTheseBuilderMethods() throws InvalidAppIdException {
final AttestationTrustSource attestationTrustSource = new AttestationTrustSource() {
@Override
public TrustRootsResult findTrustRoots(List<X509Certificate> attestationCertificateChain, Optional<ByteArray> aaguid) {
return null;
}
};
RelyingParty.builder().identity(null).credentialRepository(null).origins(Collections.emptySet()).appId(new AppId("https://example.com")).appId(Optional.of(new AppId("https://example.com"))).attestationConveyancePreference(AttestationConveyancePreference.DIRECT).attestationConveyancePreference(Optional.of(AttestationConveyancePreference.DIRECT)).attestationTrustSource(attestationTrustSource).attestationTrustSource(Optional.of(attestationTrustSource)).preferredPubkeyParams(Collections.emptyList()).allowUntrustedAttestation(true).validateSignatureCounter(true);
}
Aggregations