Uses of Interface
org.apache.shiro.session.mgt.SessionKey
Packages that use SessionKey
Package
Description
Provides the master
SecurityManager interface and a default implementation
hierarchy for managing all aspects of Shiro's functionality in an application.SessionManager components supporting enterprise session management.-
Uses of SessionKey in org.apache.shiro.mgt
Methods in org.apache.shiro.mgt that return SessionKeyModifier and TypeMethodDescriptionprotected SessionKeyDefaultSecurityManager.getSessionKey(SubjectContext context) Methods in org.apache.shiro.mgt with parameters of type SessionKey -
Uses of SessionKey in org.apache.shiro.session.mgt
Classes in org.apache.shiro.session.mgt that implement SessionKeyModifier and TypeClassDescriptionclassDefault implementation of theSessionKeyinterface, which allows setting and retrieval of a concretesessionIdthat theSessionManagerimplementation can use to look up aSessioninstance.Methods in org.apache.shiro.session.mgt with parameters of type SessionKeyModifier and TypeMethodDescriptionvoidAbstractNativeSessionManager.checkValid(SessionKey key) voidNativeSessionManager.checkValid(SessionKey key) Returns quietly if the associated session is valid (it exists and is not stopped or expired) or throws anInvalidSessionExceptionindicating that the session id is invalid.protected SessionAbstractNativeSessionManager.createExposedSession(Session session, SessionKey key) protected abstract SessionAbstractNativeSessionManager.doGetSession(SessionKey key) protected final SessionAbstractValidatingSessionManager.doGetSession(SessionKey key) AbstractNativeSessionManager.getAttribute(SessionKey sessionKey, Object attributeKey) NativeSessionManager.getAttribute(SessionKey sessionKey, Object attributeKey) Returns the object bound to the associated session identified by the specified attribute key.AbstractNativeSessionManager.getAttributeKeys(SessionKey key) NativeSessionManager.getAttributeKeys(SessionKey sessionKey) Returns all attribute keys maintained by the target session or an empty collection if there are no attributes.AbstractNativeSessionManager.getHost(SessionKey key) NativeSessionManager.getHost(SessionKey key) Returns the host name or IP string of the host where the session was started, if known.AbstractNativeSessionManager.getLastAccessTime(SessionKey key) NativeSessionManager.getLastAccessTime(SessionKey key) Returns the time the associatedSessionlast interacted with the system.AbstractNativeSessionManager.getSession(SessionKey key) SessionManager.getSession(SessionKey key) Retrieves the session corresponding to the specified contextual data (such as a session ID if applicable), ornullif no Session could be found.protected SerializableDefaultSessionManager.getSessionId(SessionKey sessionKey) AbstractNativeSessionManager.getStartTimestamp(SessionKey key) NativeSessionManager.getStartTimestamp(SessionKey key) Returns the time the associatedSessionstarted (was created).longAbstractNativeSessionManager.getTimeout(SessionKey key) longNativeSessionManager.getTimeout(SessionKey key) Returns the time in milliseconds that the associated session may remain idle before expiring.booleanAbstractNativeSessionManager.isValid(SessionKey key) booleanNativeSessionManager.isValid(SessionKey key) Returnstrueif the associated session is valid (it exists and is not stopped nor expired),falseotherwise.protected voidAbstractValidatingSessionManager.onExpiration(Session s, ExpiredSessionException ese, SessionKey key) protected voidAbstractValidatingSessionManager.onInvalidation(Session s, InvalidSessionException ise, SessionKey key) protected voidAbstractNativeSessionManager.onStop(Session session, SessionKey key) AbstractNativeSessionManager.removeAttribute(SessionKey sessionKey, Object attributeKey) NativeSessionManager.removeAttribute(SessionKey sessionKey, Object attributeKey) Removes (unbinds) the object bound to associatedSessionunder the givenattributeKey.protected abstract SessionAbstractValidatingSessionManager.retrieveSession(SessionKey key) Looks up a session from the underlying data store based on the specified session key.protected SessionDefaultSessionManager.retrieveSession(SessionKey sessionKey) voidAbstractNativeSessionManager.setAttribute(SessionKey sessionKey, Object attributeKey, Object value) voidNativeSessionManager.setAttribute(SessionKey sessionKey, Object attributeKey, Object value) Binds the specifiedvalueto the associated session uniquely identified by theattributeKey.voidAbstractNativeSessionManager.setTimeout(SessionKey key, long maxIdleTimeInMillis) voidNativeSessionManager.setTimeout(SessionKey key, long maxIdleTimeInMillis) Sets the time in milliseconds that the associated session may remain idle before expiring.voidAbstractNativeSessionManager.stop(SessionKey key) voidNativeSessionManager.stop(SessionKey key) Explicitly stops the associated session, thereby releasing all of its resources.voidAbstractNativeSessionManager.touch(SessionKey key) voidNativeSessionManager.touch(SessionKey key) Updates the last accessed time of the session identified bysessionId.protected voidAbstractValidatingSessionManager.validate(Session session, SessionKey key) Constructors in org.apache.shiro.session.mgt with parameters of type SessionKeyModifierConstructorDescriptionDelegatingSession(NativeSessionManager sessionManager, SessionKey key)