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.CommonClientSessionModelCommonClientSessionModel.Action, CommonClientSessionModel.ExecutionStatus
 
- 
 - 
Field Summary- 
Fields inherited from interface org.keycloak.models.AuthenticatedClientSessionModelSTARTED_AT_NOTE
 
- 
 - 
Constructor SummaryConstructors Constructor Description AuthenticatedClientSessionAdapter(KeycloakSession kcSession, InfinispanUserSessionProvider provider, AuthenticatedClientSessionEntity entity, ClientModel client, UserSessionModel userSession, InfinispanChangelogBasedTransaction<UUID,AuthenticatedClientSessionEntity> clientSessionUpdateTx, boolean offline)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddetachFromUserSession()Detaches the client session from its user session.StringgetAction()ClientModelgetClient()StringgetCurrentRefreshToken()intgetCurrentRefreshTokenUseCount()StringgetId()StringgetNote(String name)Map<String,String>getNotes()StringgetProtocol()RealmModelgetRealm()StringgetRedirectUri()intgetTimestamp()UserSessionModelgetUserSession()voidremoveNote(String name)voidsetAction(String action)voidsetCurrentRefreshToken(String currentRefreshToken)voidsetCurrentRefreshTokenUseCount(int currentRefreshTokenUseCount)voidsetNote(String name, String value)voidsetProtocol(String method)voidsetRedirectUri(String uri)voidsetTimestamp(int timestamp)- 
Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 - 
Methods inherited from interface org.keycloak.models.AuthenticatedClientSessionModelgetStarted
 
- 
 
- 
- 
- 
Constructor Detail- 
AuthenticatedClientSessionAdapterpublic AuthenticatedClientSessionAdapter(KeycloakSession kcSession, InfinispanUserSessionProvider provider, AuthenticatedClientSessionEntity entity, ClientModel client, UserSessionModel userSession, InfinispanChangelogBasedTransaction<UUID,AuthenticatedClientSessionEntity> clientSessionUpdateTx, boolean offline) 
 
- 
 - 
Method Detail- 
detachFromUserSessionpublic 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 interface- AuthenticatedClientSessionModel
 
 - 
getUserSessionpublic UserSessionModel getUserSession() - Specified by:
- getUserSessionin interface- AuthenticatedClientSessionModel
 
 - 
getRedirectUripublic String getRedirectUri() - Specified by:
- getRedirectUriin interface- CommonClientSessionModel
 
 - 
setRedirectUripublic void setRedirectUri(String uri) - Specified by:
- setRedirectUriin interface- CommonClientSessionModel
 
 - 
getIdpublic String getId() - Specified by:
- getIdin interface- AuthenticatedClientSessionModel
 
 - 
getRealmpublic RealmModel getRealm() - Specified by:
- getRealmin interface- CommonClientSessionModel
 
 - 
getClientpublic ClientModel getClient() - Specified by:
- getClientin interface- CommonClientSessionModel
 
 - 
getTimestamppublic int getTimestamp() - Specified by:
- getTimestampin interface- AuthenticatedClientSessionModel
 
 - 
setTimestamppublic void setTimestamp(int timestamp) - Specified by:
- setTimestampin interface- AuthenticatedClientSessionModel
 
 - 
getCurrentRefreshTokenUseCountpublic int getCurrentRefreshTokenUseCount() - Specified by:
- getCurrentRefreshTokenUseCountin interface- AuthenticatedClientSessionModel
 
 - 
setCurrentRefreshTokenUseCountpublic void setCurrentRefreshTokenUseCount(int currentRefreshTokenUseCount) - Specified by:
- setCurrentRefreshTokenUseCountin interface- AuthenticatedClientSessionModel
 
 - 
getCurrentRefreshTokenpublic String getCurrentRefreshToken() - Specified by:
- getCurrentRefreshTokenin interface- AuthenticatedClientSessionModel
 
 - 
setCurrentRefreshTokenpublic void setCurrentRefreshToken(String currentRefreshToken) - Specified by:
- setCurrentRefreshTokenin interface- AuthenticatedClientSessionModel
 
 - 
getActionpublic String getAction() - Specified by:
- getActionin interface- CommonClientSessionModel
 
 - 
setActionpublic void setAction(String action) - Specified by:
- setActionin interface- CommonClientSessionModel
 
 - 
getProtocolpublic String getProtocol() - Specified by:
- getProtocolin interface- CommonClientSessionModel
 
 - 
setProtocolpublic void setProtocol(String method) - Specified by:
- setProtocolin interface- CommonClientSessionModel
 
 - 
getNotepublic String getNote(String name) - Specified by:
- getNotein interface- AuthenticatedClientSessionModel
 
 - 
setNotepublic void setNote(String name, String value) - Specified by:
- setNotein interface- AuthenticatedClientSessionModel
 
 - 
removeNotepublic void removeNote(String name) - Specified by:
- removeNotein interface- AuthenticatedClientSessionModel
 
 - 
getNotespublic Map<String,String> getNotes() - Specified by:
- getNotesin interface- AuthenticatedClientSessionModel
 
 
- 
 
-