Interface SessionIdentifierCodec

All Known Implementing Classes:
SimpleSessionIdentifierCodec

public interface SessionIdentifierCodec
Encapsulates logic to encode/decode additional information in/from a session identifier. Both the encode(CharSequence) and decode(CharSequence) methods should be idempotent. The codec methods should also be symmetrical. i.e. the result of decode(encode(x)) should yield x, just as the result of encode(decode(y)) should yield y.
Author:
Paul Ferraro
  • Method Details

    • encode

      CharSequence encode(CharSequence sessionId)
      Encodes the specified session identifier
      Parameters:
      sessionId - a session identifier
      Returns:
      an encoded session identifier
    • decode

      CharSequence decode(CharSequence encodedSessionId)
      Decodes the specified session identifier encoded via encode(CharSequence).
      Parameters:
      encodedSessionId - an encoded session identifier
      Returns:
      the decoded session identifier