Class SessionSigner

java.lang.Object
dev.voidframework.web.server.http.SessionSigner

public final class SessionSigner extends Object
Signs and verifies the session.
  • Constructor Details

    • SessionSigner

      public SessionSigner(com.typesafe.config.Config configuration)
      Build a new instance.
      Parameters:
      configuration - The application configuration
  • Method Details

    • verify

      public Session verify(String signedSession)
      Verifies the signed session.
      Parameters:
      signedSession - The signed session to verify
      Returns:
      The session retrieved from the signed session, otherwise, an empty session
    • sign

      public String sign(Session session)
      Signs the session.
      Parameters:
      session - The session to sign
      Returns:
      The signed session