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)JsonWebTokento aSessionobject.asSession(JsonWebToken jwt, Function<String, Session> mapping) Convert a Quarkus (Microprofile)JsonWebTokento aSessionobject.
-
Method Details
-
asSession
Convert a Quarkus (Microprofile)JsonWebTokento aSessionobject.This method uses the
OpenIdSessionlibrary to create a Session- Parameters:
jwt- a JSON Web Token object- Returns:
- the session, if present and unexpired
-
asSession
Convert a Quarkus (Microprofile)JsonWebTokento aSessionobject.- 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
-