Package | Description |
---|---|
org.apache.shiro.mgt |
Provides the master
SecurityManager interface and a default implementation
hierarchy for managing all aspects of Shiro's functionality in an application. |
org.apache.shiro.session.mgt |
SessionManager components supporting enterprise session management. |
org.apache.shiro.web.mgt |
Components supporting web-specific
SecurityManager implementations. |
org.apache.shiro.web.session.mgt |
Modifier and Type | Method and Description |
---|---|
protected SessionKey |
DefaultSecurityManager.getSessionKey(SubjectContext context) |
Modifier and Type | Method and Description |
---|---|
Session |
SessionsSecurityManager.getSession(SessionKey key) |
Modifier and Type | Class and Description |
---|---|
class |
DefaultSessionKey
Default implementation of the
SessionKey interface, which allows setting and retrieval of a concrete
sessionId that the SessionManager implementation can use to look up a
Session instance. |
Modifier and Type | Method and Description |
---|---|
void |
NativeSessionManager.checkValid(SessionKey key)
Returns quietly if the associated session is valid (it exists and is not stopped or expired) or throws
an
InvalidSessionException indicating that the session id is invalid. |
void |
AbstractNativeSessionManager.checkValid(SessionKey key) |
protected Session |
AbstractNativeSessionManager.createExposedSession(Session session,
SessionKey key) |
protected Session |
AbstractValidatingSessionManager.doGetSession(SessionKey key) |
protected abstract Session |
AbstractNativeSessionManager.doGetSession(SessionKey key) |
Object |
NativeSessionManager.getAttribute(SessionKey sessionKey,
Object attributeKey)
Returns the object bound to the associated session identified by the specified attribute key.
|
Object |
AbstractNativeSessionManager.getAttribute(SessionKey sessionKey,
Object attributeKey) |
Collection<Object> |
NativeSessionManager.getAttributeKeys(SessionKey sessionKey)
Returns all attribute keys maintained by the target session or an empty collection if there are no attributes.
|
Collection<Object> |
AbstractNativeSessionManager.getAttributeKeys(SessionKey key) |
String |
NativeSessionManager.getHost(SessionKey key)
Returns the host name or IP string of the host where the session was started, if known.
|
String |
AbstractNativeSessionManager.getHost(SessionKey key) |
Date |
NativeSessionManager.getLastAccessTime(SessionKey key)
Returns the time the associated
Session last interacted with the system. |
Date |
AbstractNativeSessionManager.getLastAccessTime(SessionKey key) |
Session |
AbstractNativeSessionManager.getSession(SessionKey key) |
Session |
SessionManager.getSession(SessionKey key)
Retrieves the session corresponding to the specified contextual data (such as a session ID if applicable), or
null if no Session could be found. |
protected Serializable |
DefaultSessionManager.getSessionId(SessionKey sessionKey) |
Date |
NativeSessionManager.getStartTimestamp(SessionKey key)
Returns the time the associated
Session started (was created). |
Date |
AbstractNativeSessionManager.getStartTimestamp(SessionKey key) |
long |
NativeSessionManager.getTimeout(SessionKey key)
Returns the time in milliseconds that the associated session may remain idle before expiring.
|
long |
AbstractNativeSessionManager.getTimeout(SessionKey key) |
boolean |
NativeSessionManager.isValid(SessionKey key)
Returns
true if the associated session is valid (it exists and is not stopped nor expired),
false otherwise. |
boolean |
AbstractNativeSessionManager.isValid(SessionKey key) |
protected void |
AbstractValidatingSessionManager.onExpiration(Session s,
ExpiredSessionException ese,
SessionKey key) |
protected void |
AbstractValidatingSessionManager.onInvalidation(Session s,
InvalidSessionException ise,
SessionKey key) |
protected void |
AbstractNativeSessionManager.onStop(Session session,
SessionKey key) |
Object |
NativeSessionManager.removeAttribute(SessionKey sessionKey,
Object attributeKey)
Removes (unbinds) the object bound to associated
Session under the given attributeKey . |
Object |
AbstractNativeSessionManager.removeAttribute(SessionKey sessionKey,
Object attributeKey) |
protected abstract Session |
AbstractValidatingSessionManager.retrieveSession(SessionKey key)
Looks up a session from the underlying data store based on the specified session key.
|
protected Session |
DefaultSessionManager.retrieveSession(SessionKey sessionKey) |
void |
NativeSessionManager.setAttribute(SessionKey sessionKey,
Object attributeKey,
Object value)
Binds the specified
value to the associated session uniquely identified by the attributeKey . |
void |
AbstractNativeSessionManager.setAttribute(SessionKey sessionKey,
Object attributeKey,
Object value) |
void |
NativeSessionManager.setTimeout(SessionKey key,
long maxIdleTimeInMillis)
Sets the time in milliseconds that the associated session may remain idle before expiring.
|
void |
AbstractNativeSessionManager.setTimeout(SessionKey key,
long maxIdleTimeInMillis) |
void |
NativeSessionManager.stop(SessionKey key)
Explicitly stops the associated session, thereby releasing all of its resources.
|
void |
AbstractNativeSessionManager.stop(SessionKey key) |
void |
NativeSessionManager.touch(SessionKey key)
Updates the last accessed time of the session identified by
sessionId . |
void |
AbstractNativeSessionManager.touch(SessionKey key) |
protected void |
AbstractValidatingSessionManager.validate(Session session,
SessionKey key) |
Constructor and Description |
---|
DelegatingSession(NativeSessionManager sessionManager,
SessionKey key) |
Modifier and Type | Method and Description |
---|---|
protected SessionKey |
DefaultWebSecurityManager.getSessionKey(SubjectContext context) |
Modifier and Type | Class and Description |
---|---|
class |
WebSessionKey
A
SessionKey implementation that also retains the
ServletRequest and ServletResponse associated with the web request that is performing the
session lookup. |
Modifier and Type | Method and Description |
---|---|
protected Session |
DefaultWebSessionManager.createExposedSession(Session session,
SessionKey key) |
Session |
ServletContainerSessionManager.getSession(SessionKey key) |
Serializable |
DefaultWebSessionManager.getSessionId(SessionKey key) |
protected void |
DefaultWebSessionManager.onExpiration(Session s,
ExpiredSessionException ese,
SessionKey key) |
protected void |
DefaultWebSessionManager.onInvalidation(Session session,
InvalidSessionException ise,
SessionKey key) |
protected void |
DefaultWebSessionManager.onStop(Session session,
SessionKey key) |
Copyright © 2004–2016 The Apache Software Foundation. All rights reserved.