Module io.jooby.jwt
Package io.jooby.jwt

Class JwtSessionStore

java.lang.Object
io.jooby.jwt.JwtSessionStore
All Implemented Interfaces:
SessionStore

public class JwtSessionStore extends Object implements SessionStore
A HTTP cookie session store using JSON Web Token. Usage:

 {
   String key = "256 bit key"
   setSessionStore(new JwtSession(key));
 }
 
It uses HMAC-SHA-256 for signing the cookie. Secret key and cookie option can be specify programmatically or in your application configuration file.

This session store delegates to SessionStore.signed(SessionToken, Function, Function) using JSON Web Token library.

Since:
2.2.0
Author:
edgar