T
- the encoded typepublic interface SecureTicketCodec<T>
Encode/decode a secure ticket from/to H.Session
, or part of the session info
Modifier and Type | Interface and Description |
---|---|
static class |
SecureTicketCodec.Base<T> |
Modifier and Type | Method and Description |
---|---|
T |
createTicket(org.osgl.http.H.Session session)
Generate a secure ticket from a session data
|
org.osgl.http.H.Session |
parseTicket(T ticket)
Parse a secure ticket and construct a session data.
|
boolean |
probeTicket(java.lang.Object ticket)
Do sanity check on an object to quickly probe if it is a ticket that can be processed by this codec
|
T createTicket(org.osgl.http.H.Session session)
Generate a secure ticket from a session data
session
- the session dataorg.osgl.http.H.Session parseTicket(T ticket)
Parse a secure ticket and construct a session data. Note if the ticket
specified is invalid then it shall return a null
session
ticket
- the secure ticketnull
if the ticket is invalid to this codecboolean probeTicket(java.lang.Object ticket)
Do sanity check on an object to quickly probe if it is a ticket that can be processed by this codec
ticket
- the object to be testedtrue
if the codec believe it can process the ticket or false
if not sureCopyright © 2014–2017 ActFramework. All rights reserved.