Class AuthenticatedClientSessionAdapter
java.lang.Object
org.keycloak.models.sessions.infinispan.AuthenticatedClientSessionAdapter
- All Implemented Interfaces:
AuthenticatedClientSessionModel,CommonClientSessionModel
public class AuthenticatedClientSessionAdapter
extends Object
implements AuthenticatedClientSessionModel
- Author:
- Marek Posolda
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.keycloak.sessions.CommonClientSessionModel
CommonClientSessionModel.Action, CommonClientSessionModel.ExecutionStatus -
Field Summary
Fields inherited from interface org.keycloak.models.AuthenticatedClientSessionModel
STARTED_AT_NOTE, USER_SESSION_REMEMBER_ME_NOTE, USER_SESSION_STARTED_AT_NOTE -
Constructor Summary
ConstructorsConstructorDescriptionAuthenticatedClientSessionAdapter(KeycloakSession kcSession, InfinispanUserSessionProvider provider, AuthenticatedClientSessionEntity entity, ClientModel client, UserSessionModel userSession, InfinispanChangelogBasedTransaction<UUID, AuthenticatedClientSessionEntity> clientSessionUpdateTx, boolean offline) -
Method Summary
Modifier and TypeMethodDescriptionvoidDetaches the client session from its user session.intgetId()getNotes()getRealm()intvoidremoveNote(String name) voidvoidsetCurrentRefreshToken(String currentRefreshToken) voidsetCurrentRefreshTokenUseCount(int currentRefreshTokenUseCount) voidvoidsetProtocol(String method) voidsetRedirectUri(String uri) voidsetTimestamp(int timestamp) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.keycloak.models.AuthenticatedClientSessionModel
getStarted, getUserSessionStarted, isUserSessionRememberMe
-
Constructor Details
-
AuthenticatedClientSessionAdapter
public AuthenticatedClientSessionAdapter(KeycloakSession kcSession, InfinispanUserSessionProvider provider, AuthenticatedClientSessionEntity entity, ClientModel client, UserSessionModel userSession, InfinispanChangelogBasedTransaction<UUID, AuthenticatedClientSessionEntity> clientSessionUpdateTx, boolean offline)
-
-
Method Details
-
detachFromUserSession
public void detachFromUserSession()Detaches the client session from its user session.This method does not delete the client session from user session records, it only removes the client session. The list of client sessions within user session is updated lazily for performance reasons.
- Specified by:
detachFromUserSessionin interfaceAuthenticatedClientSessionModel
-
getUserSession
- Specified by:
getUserSessionin interfaceAuthenticatedClientSessionModel
-
getRedirectUri
- Specified by:
getRedirectUriin interfaceCommonClientSessionModel
-
setRedirectUri
- Specified by:
setRedirectUriin interfaceCommonClientSessionModel
-
getId
- Specified by:
getIdin interfaceAuthenticatedClientSessionModel
-
getRealm
- Specified by:
getRealmin interfaceCommonClientSessionModel
-
getClient
- Specified by:
getClientin interfaceCommonClientSessionModel
-
getTimestamp
public int getTimestamp()- Specified by:
getTimestampin interfaceAuthenticatedClientSessionModel
-
setTimestamp
public void setTimestamp(int timestamp) - Specified by:
setTimestampin interfaceAuthenticatedClientSessionModel
-
getCurrentRefreshTokenUseCount
public int getCurrentRefreshTokenUseCount()- Specified by:
getCurrentRefreshTokenUseCountin interfaceAuthenticatedClientSessionModel
-
setCurrentRefreshTokenUseCount
public void setCurrentRefreshTokenUseCount(int currentRefreshTokenUseCount) - Specified by:
setCurrentRefreshTokenUseCountin interfaceAuthenticatedClientSessionModel
-
getCurrentRefreshToken
- Specified by:
getCurrentRefreshTokenin interfaceAuthenticatedClientSessionModel
-
setCurrentRefreshToken
- Specified by:
setCurrentRefreshTokenin interfaceAuthenticatedClientSessionModel
-
getAction
- Specified by:
getActionin interfaceCommonClientSessionModel
-
setAction
- Specified by:
setActionin interfaceCommonClientSessionModel
-
getProtocol
- Specified by:
getProtocolin interfaceCommonClientSessionModel
-
setProtocol
- Specified by:
setProtocolin interfaceCommonClientSessionModel
-
getNote
- Specified by:
getNotein interfaceAuthenticatedClientSessionModel
-
setNote
- Specified by:
setNotein interfaceAuthenticatedClientSessionModel
-
removeNote
- Specified by:
removeNotein interfaceAuthenticatedClientSessionModel
-
getNotes
- Specified by:
getNotesin interfaceAuthenticatedClientSessionModel
-