Package com.pingidentity.sdk.session
Class SessionManager
java.lang.Object
com.pingidentity.sdk.session.SessionManager
A utility class for managing sessions.
- Since:
- 12.1
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidRevokes a session identified by the given SRI (Session Reference Identifier).voidrevokeAllSessionsFor(String uniqueUserKey) Revokes all sessions for the user identified by the unique user key.voidrevokeOtherSessionsFor(String uniqueUserKey, javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp) Revokes all sessions for the user identified by the unique user key, except for the current session.
-
Constructor Details
-
SessionManager
public SessionManager()
-
-
Method Details
-
revokeAllSessionsFor
Revokes all sessions for the user identified by the unique user key. Sessions including the current session will be revoked.- Parameters:
uniqueUserKey- the unique user key to revoke sessions for.
-
revokeOtherSessionsFor
public void revokeOtherSessionsFor(String uniqueUserKey, javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp) Revokes all sessions for the user identified by the unique user key, except for the current session.- Parameters:
uniqueUserKey- the unique user key to revoke sessions for.req- the HttpServletRequest passed into the adapters IdpAuthenticationAdapter#lookupAuthN methodresp- the HttpServletResponse passed into the adapters IdpAuthenticationAdapter#lookupAuthN method
-
revoke
Revokes a session identified by the given SRI (Session Reference Identifier).- Parameters:
sri- - The Session Reference Identifier to be revoked.
-