public interface SessionKey
SessionKey
is a key that allows look-up of any particular Session
instance. This is not to be confused what is probably better recognized as a session attribute key - a key
that is used to acquire a session attribute via the
Session.getAttribute
method. A SessionKey
looks up a Session object directly.
While a SessionKey
allows lookup of any Session that might exist, this is not something in practice
done too often by most Shiro end-users. Instead, it is usually more convenient to acquire the currently executing
Subject
's session via the Subject.getSession()
method. This interface and
its usages are best suited for framework development.Modifier and Type | Method and Description |
---|---|
Serializable |
getSessionId()
Returns the id of the session to acquire.
|
Serializable getSessionId()
Copyright © 2004–2019 The Apache Software Foundation. All rights reserved.