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 |
Components related to managing sessions, the time-based data contexts in which a Subject
interacts with an application.
|
org.apache.shiro.session.mgt |
SessionManager components supporting enterprise session management. |
org.apache.shiro.web.session |
Components supporting Session management in web-enabled applications.
|
org.apache.shiro.web.session.mgt |
Modifier and Type | Method and Description |
---|---|
protected Session |
DefaultSecurityManager.resolveContextSession(SubjectContext context) |
Modifier and Type | Class and Description |
---|---|
class |
ExpiredSessionException
A special case of a StoppedSessionException.
|
class |
StoppedSessionException
Exception thrown when attempting to interact with the system under a session that has been
stopped.
|
class |
UnknownSessionException
Exception thrown when attempting to interact with the system under the pretense of a
particular session (e.g.
|
Modifier and Type | Method and Description |
---|---|
Object |
Session.getAttribute(Object key)
Returns the object bound to this session identified by the specified key.
|
Object |
ProxiedSession.getAttribute(Object key)
Immediately delegates to the underlying proxied session.
|
Collection<Object> |
Session.getAttributeKeys()
Returns the keys of all the attributes stored under this session.
|
Collection<Object> |
ProxiedSession.getAttributeKeys()
Immediately delegates to the underlying proxied session.
|
long |
Session.getTimeout()
Returns the time in milliseconds that the session session may remain idle before expiring.
|
long |
ProxiedSession.getTimeout()
Immediately delegates to the underlying proxied session.
|
Object |
Session.removeAttribute(Object key)
Removes (unbinds) the object bound to this session under the specified
key name. |
Object |
ProxiedSession.removeAttribute(Object key)
Immediately delegates to the underlying proxied session.
|
void |
Session.setAttribute(Object key,
Object value)
Binds the specified
value to this session, uniquely identified by the specifed
key name. |
void |
ProxiedSession.setAttribute(Object key,
Object value)
Immediately delegates to the underlying proxied session.
|
void |
Session.setTimeout(long maxIdleTimeInMillis)
Sets the time in milliseconds that the session may remain idle before expiring.
|
void |
ProxiedSession.setTimeout(long maxIdleTimeInMillis)
Immediately delegates to the underlying proxied session.
|
void |
Session.stop()
Explicitly stops (invalidates) this session and releases all associated resources.
|
void |
ProxiedSession.stop()
Immediately delegates to the underlying proxied session.
|
void |
Session.touch()
Explicitly updates the
lastAccessTime of this session to the current time when
this method is invoked. |
void |
ProxiedSession.touch()
Immediately delegates to the underlying proxied session.
|
Modifier and Type | Method and Description |
---|---|
protected void |
AbstractValidatingSessionManager.onInvalidation(Session s,
InvalidSessionException ise,
SessionKey key) |
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 |
AbstractValidatingSessionManager.doGetSession(SessionKey key) |
protected abstract Session |
AbstractNativeSessionManager.doGetSession(SessionKey key) |
protected void |
AbstractValidatingSessionManager.doValidate(Session session) |
Object |
DelegatingSession.getAttribute(Object attributeKey) |
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> |
DelegatingSession.getAttributeKeys() |
Collection<Object> |
SimpleSession.getAttributeKeys() |
long |
DelegatingSession.getTimeout() |
long |
NativeSessionManager.getTimeout(SessionKey key)
Returns the time in milliseconds that the associated session may remain idle before expiring.
|
long |
AbstractNativeSessionManager.getTimeout(SessionKey key) |
Object |
DelegatingSession.removeAttribute(Object attributeKey) |
Object |
ImmutableProxiedSession.removeAttribute(Object key)
Immediately
throws an InvalidSessionException in all
cases because this proxy is immutable. |
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) |
void |
DelegatingSession.setAttribute(Object attributeKey,
Object value) |
void |
ImmutableProxiedSession.setAttribute(Object key,
Object value)
Immediately
throws an InvalidSessionException in all
cases because this proxy is immutable. |
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 |
DelegatingSession.setTimeout(long maxIdleTimeInMillis) |
void |
ImmutableProxiedSession.setTimeout(long maxIdleTimeInMillis)
Immediately
throws an InvalidSessionException in all
cases because this proxy is immutable. |
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 |
DelegatingSession.stop() |
void |
ImmutableProxiedSession.stop()
Immediately
throws an InvalidSessionException in all
cases because this proxy is immutable. |
void |
NativeSessionManager.stop(SessionKey key)
Explicitly stops the associated session, thereby releasing all of its resources.
|
void |
AbstractNativeSessionManager.stop(SessionKey key) |
protected void |
ImmutableProxiedSession.throwImmutableException()
Simply throws an
InvalidSessionException indicating that this proxy is immutable. |
void |
DelegatingSession.touch() |
void |
ImmutableProxiedSession.touch()
Immediately
throws an InvalidSessionException in all
cases because this proxy is immutable. |
void |
NativeSessionManager.touch(SessionKey key)
Updates the last accessed time of the session identified by
sessionId . |
void |
AbstractNativeSessionManager.touch(SessionKey key) |
void |
ValidatingSession.validate() |
void |
SimpleSession.validate() |
protected void |
AbstractValidatingSessionManager.validate(Session session,
SessionKey key) |
Modifier and Type | Method and Description |
---|---|
Object |
HttpServletSession.getAttribute(Object key) |
Collection<Object> |
HttpServletSession.getAttributeKeys() |
long |
HttpServletSession.getTimeout() |
Object |
HttpServletSession.removeAttribute(Object key) |
void |
HttpServletSession.setAttribute(Object key,
Object value) |
void |
HttpServletSession.setTimeout(long maxIdleTimeInMillis) |
void |
HttpServletSession.stop() |
void |
HttpServletSession.touch() |
Modifier and Type | Method and Description |
---|---|
protected void |
DefaultWebSessionManager.onInvalidation(Session session,
InvalidSessionException ise,
SessionKey key) |
Copyright © 2004–2016 The Apache Software Foundation. All rights reserved.