@@ -96,7 +96,7 @@ public void resetDatabase() {
9696 database .clear ();
9797 }
9898
99-
99+
100100 @ Test
101101 public void testMetadata (TestContext should ) {
102102 final Async test = should .async ();
@@ -111,11 +111,11 @@ public void testMetadata(TestContext should) {
111111 }
112112 FidoMDS3MetadataBLOBAsyncProvider blobAsyncProvider = new FidoMDS3MetadataBLOBAsyncProvider (objectConverter , FidoMDS3MetadataBLOBAsyncProvider .DEFAULT_BLOB_ENDPOINT , httpClient , trustAnchors );
113113 MetadataBLOBBasedTrustAnchorAsyncRepository something = new MetadataBLOBBasedTrustAnchorAsyncRepository (blobAsyncProvider );
114- blobAsyncProvider .provide ()
114+ blobAsyncProvider .provide ()
115115 .thenCompose (metadataBLOB -> {
116116 Assert .assertNotEquals (0 , metadataBLOB .getPayload ().getEntries ().size ());
117117 for (MetadataBLOBPayloadEntry entry : metadataBLOB .getPayload ().getEntries ()) {
118- if (entry .getAaguid () != null
118+ if (entry .getAaguid () != null
119119 // the following are things that are in the implementation of webauthn4j that will filter what find() returns, so make sure
120120 // they pass
121121 && !entry .getMetadataStatement ().getAttestationRootCertificates ().isEmpty ()
@@ -137,7 +137,7 @@ public void testMetadata(TestContext should) {
137137 return null ;
138138 });
139139 }
140-
140+
141141 @ Test
142142 public void testDefaults (TestContext should ) throws DataConversionException , InterruptedException , ExecutionException {
143143 final Async test = should .async ();
@@ -149,48 +149,48 @@ public void testDefaults(TestContext should) throws DataConversionException, Int
149149
150150 WebAuthnAuthenticatorAdaptor webAuthnAuthenticatorAdaptor = new WebAuthnAuthenticatorAdaptor (EmulatorUtil .PACKED_AUTHENTICATOR );
151151 ClientPlatform clientPlatform = new ClientPlatform (origin , webAuthnAuthenticatorAdaptor );
152-
152+
153153 testRegistration (webAuthN , clientPlatform , should )
154154 .flatMap (v -> testAuthentication (webAuthN , clientPlatform , should ))
155155 .onFailure (should ::fail )
156156 .onSuccess (v -> test .complete ());
157157 }
158158
159159 @ Test
160- public void testEnterprise (TestContext should ) throws DataConversionException , InterruptedException , ExecutionException {
160+ public void testDirect (TestContext should ) throws DataConversionException , InterruptedException , ExecutionException {
161161 final Async test = should .async ();
162162
163163 X509Certificate rootCA = TestAttestationUtil .load3tierTestRootCACertificate ();
164-
164+
165165 WebAuthn4J webAuthN = WebAuthn4J .create (
166166 rule .vertx (),
167167 new WebAuthn4JOptions ().setRelyingParty (new RelyingParty ().setName (rpName ))
168- .setAttestation (Attestation .ENTERPRISE )
168+ .setAttestation (Attestation .DIRECT )
169169 .addRootCertificate (rootCA ))
170170 .credentialStorage (database );
171171
172172 WebAuthnAuthenticatorAdaptor webAuthnAuthenticatorAdaptor = new WebAuthnAuthenticatorAdaptor (EmulatorUtil .PACKED_AUTHENTICATOR );
173173 ClientPlatform clientPlatform = new ClientPlatform (origin , webAuthnAuthenticatorAdaptor );
174-
174+
175175 testRegistration (webAuthN , clientPlatform , should )
176176 .flatMap (v -> testAuthentication (webAuthN , clientPlatform , should ))
177177 .onFailure (should ::fail )
178178 .onSuccess (v -> test .complete ());
179179 }
180180
181181 @ Test
182- public void testEnterpriseWithoutCA (TestContext should ) throws DataConversionException , InterruptedException , ExecutionException {
182+ public void testDirectWithoutCA (TestContext should ) throws DataConversionException , InterruptedException , ExecutionException {
183183 final Async test = should .async ();
184184
185185 WebAuthn4J webAuthN = WebAuthn4J .create (
186186 rule .vertx (),
187187 new WebAuthn4JOptions ().setRelyingParty (new RelyingParty ().setName (rpName ))
188- .setAttestation (Attestation .ENTERPRISE ))
188+ .setAttestation (Attestation .DIRECT ))
189189 .credentialStorage (database );
190190
191191 WebAuthnAuthenticatorAdaptor webAuthnAuthenticatorAdaptor = new WebAuthnAuthenticatorAdaptor (EmulatorUtil .PACKED_AUTHENTICATOR );
192192 ClientPlatform clientPlatform = new ClientPlatform (origin , webAuthnAuthenticatorAdaptor );
193-
193+
194194 testRegistration (webAuthN , clientPlatform , should )
195195 .flatMap (v -> testAuthentication (webAuthN , clientPlatform , should ))
196196 .onFailure (x -> {
@@ -242,7 +242,7 @@ private Future<?> testRegistration(WebAuthn4J webAuthN, ClientPlatform clientPla
242242 });
243243
244244 }
245-
245+
246246 private RegistrationRequest createRegistrationRequest (ClientPlatform clientPlatform , String rpId , Challenge challenge , String username , String displayName , TestContext should ){
247247 AuthenticatorSelectionCriteria authenticatorSelectionCriteria =
248248 new AuthenticatorSelectionCriteria (
@@ -353,5 +353,5 @@ private AuthenticationRequest createAuthenticationRequest(ClientPlatform clientP
353353 );
354354
355355 }
356-
356+
357357}
0 commit comments