Search in sources :

Example 1 with AttestationTrustSource

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);
}
Also used : Optional(java.util.Optional) AppId(com.yubico.webauthn.extension.appid.AppId) AttestationTrustSource(com.yubico.webauthn.attestation.AttestationTrustSource) List(java.util.List) Test(org.junit.Test)

Aggregations

AttestationTrustSource (com.yubico.webauthn.attestation.AttestationTrustSource)1 AppId (com.yubico.webauthn.extension.appid.AppId)1 List (java.util.List)1 Optional (java.util.Optional)1 Test (org.junit.Test)1