Package com.inrupt.client.quarkus
Class SessionUtils
java.lang.Object
com.inrupt.client.quarkus.SessionUtils
A utility class for converting a Quarkus (Microprofile)
JsonWebToken
to session objects
for use with the Java Client libraries.-
Method Summary
Modifier and TypeMethodDescriptionasSession
(JsonWebToken jwt) Convert a Quarkus (Microprofile)JsonWebToken
to aSession
object.asSession
(JsonWebToken jwt, Function<String, Session> mapping) Convert a Quarkus (Microprofile)JsonWebToken
to aSession
object.
-
Method Details
-
asSession
Convert a Quarkus (Microprofile)JsonWebToken
to aSession
object.This method uses the
OpenIdSession
library to create a Session- Parameters:
jwt
- a JSON Web Token object- Returns:
- the session, if present and unexpired
-
asSession
Convert a Quarkus (Microprofile)JsonWebToken
to aSession
object.- Parameters:
jwt
- a JSON Web Token objectmapping
- a mapping function for creating a Session from an ID token- Returns:
- the session, if present and unexpired
-