Class JwtCookie<V>
java.lang.Object
ch.tocco.nice2.web.core.api.servlet.AbstractNiceCookie
ch.tocco.nice2.web.core.api.servlet.JwtCookie<V>
- Direct Known Subclasses:
InformationCookie
,RolesCookie
allows cookies to use JWT to sign their content
-
Field Summary
Fields inherited from class ch.tocco.nice2.web.core.api.servlet.AbstractNiceCookie
addedToResponse, content, expires, sameSiteMode, secure
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected String
generateJwt
(V content) getSpecificTokens
(jakarta.servlet.http.HttpServletRequest request) protected abstract void
setClaims
(V content, BiConsumer<String, Object> claimConsumer) Methods inherited from class ch.tocco.nice2.web.core.api.servlet.AbstractNiceCookie
addToResponse, getName, setExpires, verifyConfiguration
-
Field Details
-
SECURE
-
-
Constructor Details
-
JwtCookie
-
-
Method Details
-
getSpecificTokens
- Specified by:
getSpecificTokens
in classAbstractNiceCookie
-
generateJwt
-
setClaims
-