3636import com .inrupt .client .jena .JenaBodyPublishers ;
3737import com .inrupt .client .openid .OpenIdConfig ;
3838import com .inrupt .client .openid .OpenIdSession ;
39- import com .inrupt .client .uma .UmaSession ;
4039
4140import java .io .IOException ;
4241import java .io .InputStream ;
@@ -206,10 +205,10 @@ void testOfModelPublisherBearer() throws IOException, InterruptedException {
206205 claims .put ("azp" , AZP );
207206 claims .put ("cnf" , Collections .singletonMap ("jkt" , ecJwk .calculateBase64urlEncodedThumbprint (SHA_256 )));
208207 final String token = generateIdToken (claims );
209- final Session session = UmaSession . of ( OpenIdSession .ofIdToken (token , config ) );
208+ final Session session = OpenIdSession .ofIdToken (token , config );
210209 assertEquals (Optional .of (URI .create (WEBID )), session .getPrincipal ());
211210
212- final Session session2 = UmaSession . of ();
211+ final Session session2 = Session . anonymous ();
213212 assertFalse (session2 .getPrincipal ().isPresent ());
214213 assertNotEquals (session2 .getId (), session .getId ());
215214 assertFalse (session2 .generateProof (null , null ).isPresent ());
@@ -327,7 +326,7 @@ void testPutRDF() throws Exception {
327326 }
328327
329328 @ Test
330- void testOfStringPublisherUmaSession () throws IOException , InterruptedException {
329+ void testOfStringPublisherOpenidSession () throws IOException , InterruptedException {
331330 final Map <String , Object > claims = new HashMap <>();
332331 claims .put ("webid" , WEBID );
333332 claims .put ("sub" , SUB );
@@ -346,7 +345,7 @@ void testOfStringPublisherUmaSession() throws IOException, InterruptedException
346345 config .setProofKeyPairs (Collections .singletonMap ("RS256" ,
347346 new KeyPair (jwk .getPublicKey (), jwk .getPrivateKey ())));
348347
349- final Response <Void > response = client .session (UmaSession . of ( OpenIdSession .ofIdToken (token , config ) ))
348+ final Response <Void > response = client .session (OpenIdSession .ofIdToken (token , config ))
350349 .send (request , Response .BodyHandlers .discarding ())
351350 .toCompletableFuture ().join ();
352351
@@ -361,7 +360,7 @@ void testOfStringPublisherUmaAnonSession() throws IOException, InterruptedExcept
361360 .POST (Request .BodyPublishers .ofString ("Test String 1" ))
362361 .build ();
363362
364- final Response <Void > response = client .session (UmaSession . of ())
363+ final Response <Void > response = client .session (Session . anonymous ())
365364 .send (request , Response .BodyHandlers .discarding ())
366365 .toCompletableFuture ().join ();
367366
@@ -375,7 +374,7 @@ void testNullSession() {
375374 }
376375
377376 @ Test
378- void testUmaSessionExpiredIdToken () throws Exception {
377+ void testSessionExpiredIdToken () throws Exception {
379378 final Map <String , Object > claims = new HashMap <>();
380379 claims .put ("webid" , WEBID );
381380 claims .put ("sub" , SUB );
@@ -398,7 +397,7 @@ void testUmaSessionExpiredIdToken() throws Exception {
398397 .POST (Request .BodyPublishers .ofString ("Test String 1" ))
399398 .build ();
400399
401- final Response <Void > response = client .session (UmaSession . of ( s ) )
400+ final Response <Void > response = client .session (s )
402401 .send (request , Response .BodyHandlers .discarding ())
403402 .toCompletableFuture ().join ();
404403
0 commit comments