Package org.gcube.portal.oidc.lr62
Class JWTTokenUtil
java.lang.Object
org.gcube.portal.oidc.lr62.JWTTokenUtil
public class JWTTokenUtil extends Object
-
Field Summary
Fields Modifier and Type Field Description static StringOIDC_TOKEN_ATTRIBUTEstatic StringRPT_TOKEN_ATTRIBUTE -
Constructor Summary
Constructors Constructor Description JWTTokenUtil() -
Method Summary
Modifier and Type Method Description static org.gcube.oidc.rest.JWTTokenfromString(String tokenString)static org.gcube.oidc.rest.JWTTokengetOIDCFromRequest(javax.servlet.http.HttpServletRequest request)static org.gcube.oidc.rest.JWTTokengetOIDCFromSession(javax.servlet.http.HttpSession session)static StringgetRawContent(org.gcube.oidc.rest.JWTToken token)static org.gcube.oidc.rest.JWTTokengetUMAFromRequest(javax.servlet.http.HttpServletRequest request)static org.gcube.oidc.rest.JWTTokengetUMAFromSession(javax.servlet.http.HttpSession session)static voidputOIDCInRequest(org.gcube.oidc.rest.JWTToken token, javax.servlet.http.HttpServletRequest request)static voidputOIDCInSession(org.gcube.oidc.rest.JWTToken token, javax.servlet.http.HttpSession session)static voidputUMAInRequest(org.gcube.oidc.rest.JWTToken token, javax.servlet.http.HttpServletRequest request)static voidputUMAInSession(org.gcube.oidc.rest.JWTToken token, javax.servlet.http.HttpSession session)static voidremoveOIDCFromSession(javax.servlet.http.HttpSession session)static voidremoveUMAFromSession(javax.servlet.http.HttpSession session)
-
Field Details
-
OIDC_TOKEN_ATTRIBUTE
-
RPT_TOKEN_ATTRIBUTE
-
-
Constructor Details
-
JWTTokenUtil
public JWTTokenUtil()
-
-
Method Details
-
fromString
-
getRawContent
-
getOIDCFromRequest
public static org.gcube.oidc.rest.JWTToken getOIDCFromRequest(javax.servlet.http.HttpServletRequest request) -
getUMAFromRequest
public static org.gcube.oidc.rest.JWTToken getUMAFromRequest(javax.servlet.http.HttpServletRequest request) -
putOIDCInRequest
public static void putOIDCInRequest(org.gcube.oidc.rest.JWTToken token, javax.servlet.http.HttpServletRequest request) -
putUMAInRequest
public static void putUMAInRequest(org.gcube.oidc.rest.JWTToken token, javax.servlet.http.HttpServletRequest request) -
getOIDCFromSession
public static org.gcube.oidc.rest.JWTToken getOIDCFromSession(javax.servlet.http.HttpSession session) -
getUMAFromSession
public static org.gcube.oidc.rest.JWTToken getUMAFromSession(javax.servlet.http.HttpSession session) -
putOIDCInSession
public static void putOIDCInSession(org.gcube.oidc.rest.JWTToken token, javax.servlet.http.HttpSession session) -
putUMAInSession
public static void putUMAInSession(org.gcube.oidc.rest.JWTToken token, javax.servlet.http.HttpSession session) -
removeOIDCFromSession
public static void removeOIDCFromSession(javax.servlet.http.HttpSession session) -
removeUMAFromSession
public static void removeUMAFromSession(javax.servlet.http.HttpSession session)
-