Package org.jboss.as.web.session
Interface SessionIdentifierCodec
-
- All Known Implementing Classes:
SimpleSessionIdentifierCodec
public interface SessionIdentifierCodecEncapsulates logic to encode/decode additional information in/from a session identifier. Both theencode(CharSequence)anddecode(CharSequence)methods should be idempotent. The codec methods should also be symmetrical. i.e. the result ofdecode(encode(x))should yieldx, just as the result ofencode(decode(y))should yieldy.- Author:
- Paul Ferraro
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description CharSequencedecode(CharSequence encodedSessionId)Decodes the specified session identifier encoded viaencode(CharSequence).CharSequenceencode(CharSequence sessionId)Encodes the specified session identifier
-
-
-
Method Detail
-
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 viaencode(CharSequence).- Parameters:
encodedSessionId- an encoded session identifier- Returns:
- the decoded session identifier
-
-