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 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
public static Optional<Session> asSession(org.eclipse.microprofile.jwt.JsonWebToken jwt, Function<String, Session> mapping) 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
 
 
 -