Class SessionSigner
java.lang.Object
dev.voidframework.web.server.http.SessionSigner
Signs and verifies the session.
-
Constructor Summary
ConstructorsConstructorDescriptionSessionSigner(com.typesafe.config.Config configuration) Build a new instance. -
Method Summary
-
Constructor Details
-
SessionSigner
public SessionSigner(com.typesafe.config.Config configuration) Build a new instance.- Parameters:
configuration- The application configuration
-
-
Method Details
-
verify
Verifies the signed session.- Parameters:
signedSession- The signed session to verify- Returns:
- The session retrieved from the signed session, otherwise, an empty session
-
sign
Signs the session.- Parameters:
session- The session to sign- Returns:
- The signed session
-