diff --git a/api/src/main/java/com/inrupt/client/auth/package-info.java b/api/src/main/java/com/inrupt/client/auth/package-info.java index a87639a7e28..902642b3657 100644 --- a/api/src/main/java/com/inrupt/client/auth/package-info.java +++ b/api/src/main/java/com/inrupt/client/auth/package-info.java @@ -36,9 +36,9 @@ * for each implementation. Some examples: * *
{@code
- Session session = OpenIdSession.ofIdToken(token);
- Session sessionWithConfig = OpenIdSession.ofIdToken(token, config);
- Session umaSession = UmaSession.of(session);
+ Session openidSession = OpenIdSession.ofIdToken(token);
+ Session openidSessionWithConfig = OpenIdSession.ofIdToken(token, config);
+ Session accessGrantSession = AccessGrantSession.ofAccessGrant(openidSession, accessGrant);
* }
*
* UMA builds on the OAuth 2.0 authorization framework, defining a mechanism by which * a client can iteratively negotiate for an access token. - * + * *
{@code UmaClient} helps in the interaction with different endpoints, to construct helper * requests for authentication and to negotiate for a token. - * - *
This module has a session implementation, {@code UmaSession}, for use with UMA Authorization Servers. * - *
This session implementation can be used to wrap other session objects, such as - * ones that use OpenID Connect tokens. - * - *
{@code
- * Client client = ClientProvider.getClient();
- * Session session = client.session(UmaSession.ofSession(OpenIdSession.ofIdToken(jwt)));
- * Response res = session.send(req, bodyHandler);
- * }
- *
* {@code